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

Disassembly:
pop dword [ebp - 0x86c]
lea edi, [ebp - 0x810]
mov eax, dword fs:[0]
mov dword [edi + 8], eax
mov dword fs:[0], edi
mov dword [ebp - 0x810], 0xffffffff
mov eax, dword [ebp - 0x86c]
sub eax, 7
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x878], 0x77e00000
call fcn.00403db2
cmp dword [ebp - 0x85c], 0
jne 0x402d2b
mov ecx, dword [ebp - 0x878]
add ecx, 0x10000
mov dword [ebp - 0x878], ecx
cmp dword [ebp - 0x878], 0x78000000
jne 0x402b76
mov dword [ebp - 0x878], 0xbff00000
mov edx, dword [ebp - 0x878]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
jne 0x402d26
mov ecx, dword [ebp - 0x878]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x878]
xor ecx, ecx
mov cx, word [eax + edx]
cmp ecx, 0x4550
jne 0x402d26
mov edx, dword [ebp - 0x878]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x878]
mov edx, dword [ecx + eax + 0x78]
add edx, dword [ebp - 0x878]
mov dword [ebp - 0x87c], edx
mov eax, dword [ebp - 0x87c]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x878]
mov dword [ebp - 0x884], ecx
mov edx, dword [ebp - 0x884]
cmp dword [edx], 0x4e52454b
jne 0x402d26
mov eax, dword [ebp - 0x884]
cmp dword [eax + 4], 0x32334c45
jne 0x402d26
mov ecx, dword [ebp - 0x878]
mov dword [ebp - 0x890], ecx
mov edx, dword [ebp - 0x87c]
mov eax, dword [ebp - 0x878]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x888], 0
jmp 0x402c51
mov ecx, dword [ebp - 0x888]
add ecx, 1
mov dword [ebp - 0x888], ecx
mov edx, dword [ebp - 0x884]
add edx, 4
mov dword [ebp - 0x884], edx
mov eax, dword [ebp - 0x87c]
mov ecx, dword [ebp - 0x888]
cmp ecx, dword [eax + 0x18]
jge 0x402d26
mov edx, dword [ebp - 0x884]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x878]
cmp dword [ecx + eax], 0x50746547
jne 0x402d21
mov edx, dword [ebp - 0x884]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x878]
cmp dword [ecx + eax + 4], 0x41636f72
jne 0x402d21
mov edx, dword [ebp - 0x888]
add edx, dword [ebp - 0x888]
add edx, dword [ebp - 0x878]
mov eax, dword [ebp - 0x87c]
mov ecx, dword [eax + 0x24]
xor eax, eax
mov ax, word [edx + ecx]
mov dword [ebp - 0x884], eax
mov ecx, dword [ebp - 0x87c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x884]
lea ecx, [eax + edx - 1]
mov dword [ebp - 0x884], ecx
mov edx, dword [ebp - 0x884]
add edx, dword [ebp - 0x884]
add edx, dword [ebp - 0x884]
add edx, dword [ebp - 0x884]
add edx, dword [ebp - 0x878]
mov eax, dword [ebp - 0x87c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edx + ecx]
mov dword [ebp - 0x884], edx
mov eax, dword [ebp - 0x884]
add eax, dword [ebp - 0x878]
mov dword [ebp - 0x85c], eax
jmp 0x402d26
jmp 0x402c33
jmp 0x402b41
cmp dword [ebp - 0x85c], 0
jne 0x402d39
jmp 0x403d81
mov ecx, dword [ebp - 0x86c]
mov dword [ebp - 0x880], ecx
mov dword [ebp - 0x884], 1
jmp 0x402d60
mov edx, dword [ebp - 0x884]
add edx, 1
mov dword [ebp - 0x884], edx
mov eax, dword [ebp - 0x86c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402dfe
mov edx, dword [ebp - 0x86c]
movsx eax, byte [edx]
cmp eax, 9
jne 0x402da0
mov ecx, dword [ebp - 0x86c]
add ecx, 1
mov esi, esp
push ecx
call dword [ebp - 0x854]
cmp esi, esp
call fcn.00405b30
mov dword [ebp - 0x890], eax
jmp 0x402dca
mov esi, esp
mov edx, dword [ebp - 0x86c]
push edx
mov eax, dword [ebp - 0x890]
push eax
call dword [ebp - 0x85c]
cmp esi, esp
call fcn.00405b30
mov ecx, dword [ebp - 0x884]
mov dword [ebp + ecx*4 - 0x858], eax
jmp 0x402ddb
mov edx, dword [ebp - 0x86c]
add edx, 1
mov dword [ebp - 0x86c], edx
mov eax, dword [ebp - 0x86c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402dea
jmp 0x402dcc
mov edx, dword [ebp - 0x86c]
add edx, 1
mov dword [ebp - 0x86c], edx
jmp 0x402d51
mov eax, dword [ebp - 0x86c]
add eax, 1
mov dword [ebp - 0x86c], eax
mov esi, esp
call dword [ebp - 0x81c]
cmp esi, esp
call fcn.00405b30
mov esi, esp
call dword [ebp - 0x81c]
cmp esi, esp
call fcn.00405b30
mov ecx, dword [ebp - 0x86c]
mov dword [ebp - 0x884], ecx
mov edx, dword [ebp - 0x880]
mov dword [ebp - 0x86c], edx
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x880], 0
jmp 0x403dad
call fcn.00402e5c