Function at 0x410603
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x28], 0
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4107fc
cmp esi, dword [0x45379c]
je 0x4107fc
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4107fc
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
jne 0x4107fc
mov edi, dword [ebx + 0x78]
mov eax, dword [ebx + 0x7c]
lea ecx, [eax + edi]
mov dword [ebp - 0x34], ecx
test edi, edi
je 0x4107fc
test eax, eax
je 0x4107fc
mov eax, dword [edi + esi + 0x1c]
mov ecx, dword [edi + esi + 0x20]
add eax, esi
add ecx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [edi + esi + 0x24]
mov dword [ebp - 0x2c], ecx
add eax, esi
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + esi + 0x18], ecx
jbe 0x4107f7
add edx, 8
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x24], edx
mov edx, dword [edx]
mov dword [ebp - 0x20], edx
test edx, edx
je 0x4107a6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov ecx, dword [eax - 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4106f6
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + eax*4]
add eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4106e6
test dl, dl
je 0x4106e2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4106e6
add eax, 2
add ecx, 2
test dl, dl
jne 0x4106c6
xor eax, eax
jmp 0x4106eb
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x41078d
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [edi + esi + 0x14], edx
jbe 0x41078d
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
cmp eax, edx
jne 0x41075c
cmp dword [ecx], 0
je 0x41078a
cmp dword [ecx], edi
jb 0x410725
mov eax, dword [ebp - 0x34]
cmp dword [ecx], eax
jb 0x41078a
push dword [ebp - 0x1c]
mov edx, esi
push dword [ebp - 0x20]
call fcn.00410324
pop ecx
pop ecx
test eax, eax
je 0x410756
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
or dword [eax + 0x68], edx
mov dword [eax + 0x64], ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0x20
push 0x6c
push eax
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
jne 0x41077a
lea ecx, [ebx + 8]
mov edx, dword [ecx]
inc edx
call fcn.0041024e
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], 1
inc edx
add ecx, 4
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
cmp edx, dword [edi + esi + 0x14]
jb 0x41070b
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x4106ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
inc ecx
add eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [edi + esi + 0x18]
jb 0x41069b
cmp dword [ebp - 0x18], 0
je 0x4107f7
mov ecx, dword [0x4557dc]
test ecx, ecx
je 0x4107f7
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov eax, dword [ecx]
jmp 0x4107e6
lea edx, [eax]
mov eax, dword [eax]
cmp dword [edx + 8], 0
je 0x4107e6
cmp esi, dword [edx + 0x18]
je 0x4107ec
cmp eax, ecx
jne 0x4107d7
jmp 0x4107f7
lea ecx, [edx + 0x44]
mov edx, dword [ecx]
inc edx
call fcn.0041024e
mov eax, dword [ebp - 0x28]
jmp 0x4107fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret