Function at 0x402c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
test eax, eax
jns 0x402cd5
jmp 0x402cba
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
jmp 0x40336f
mov dword [esp + 0x7c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x80]
add eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
add eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 0
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
sub ecx, eax
lea eax, str.methods
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00402650
mov dword [esp + 0x74], eax
cmp dword [esp + 0x74], 0
jge 0x402d5b
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
jmp 0x40336f
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
sub eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004025b0
mov dword [esp + 0x70], eax
cmp dword [esp + 0x70], 0
jg 0x402ddb
mov eax, esp
mov dword [eax], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov ecx, eax
mov edx, dword [esp + 0x70]
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], str.ERROR:_failed_while_reading_methods__found__d__n
call fcn.0040a8e0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
jmp 0x40336f
mov eax, dword [esp + 0x70]
add eax, 2
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
mov ecx, 0x68
mul ecx
seto dl
mov ecx, 0xffffffff
test dl, 1
cmovne eax, ecx
mov dword [esp], eax
call fcn.0040ab40
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x402e37
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
jmp 0x40336f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, esp
mov dword [esp + 0x40], eax
mov dword [eax], ecx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], str._toplevel_
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xfffffffe
call fcn.004016e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
add ecx, 0x68
mov eax, esp
mov dword [esp + 0x44], eax
mov dword [eax], ecx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], str._unknown_
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
call fcn.004016e0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x6c], 2
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x70]
jge 0x403347
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
sub eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.00402540
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
mov byte [eax + ecx], 0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402540
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
add eax, 1
add ecx, eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
add edx, 1
sub eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402540
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x64]
add eax, 2
add ecx, eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
add edx, dword [esp + 0x64]
add edx, 2
sub eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402540
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x64]
add eax, dword [esp + 0x60]
add eax, 3
add ecx, eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
add edx, dword [esp + 0x64]
add edx, dword [esp + 0x60]
add edx, 3
sub eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402540
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x64]
add eax, dword [esp + 0x60]
add eax, dword [esp + 0x5c]
add eax, 4
add ecx, eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
add edx, dword [esp + 0x64]
add edx, dword [esp + 0x60]
add edx, dword [esp + 0x5c]
add edx, 4
sub eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402540
mov dword [esp + 0x58], eax
cmp dword [esp + 0x68], 0
jge 0x4030a0
mov eax, esp
mov dword [eax], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov ecx, eax
mov edx, dword [esp + 0x7c]
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], str.ERROR:_missing_field_on_method_line:__s_n
call fcn.0040a8e0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
jmp 0x40336f
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
mov byte [eax + ecx], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x7c]
mov eax, esp
lea edx, [esp + 0x54]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 8], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x54]
movsx eax, byte [eax]
cmp eax, 0
je 0x40313e
mov eax, esp
mov dword [eax], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov ecx, eax
mov edx, dword [esp + 0x7c]
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], str.ERROR:_bad_method_ID__s_n
call fcn.0040a8e0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
jmp 0x40336f
cmp dword [esp + 0x64], 0
jle 0x4032d4
cmp dword [esp + 0x60], 0
jle 0x4032d4
mov eax, dword [esp + 0x68]
add eax, 1
add eax, dword [esp + 0x64]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
add eax, 1
add eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x60]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x64]
mov byte [eax + ecx], 0
cmp dword [esp + 0x5c], 0
jle 0x403265
cmp dword [esp + 0x58], 0
jle 0x403265
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x58]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x6c]
imul ecx, ecx, 0x68
add eax, ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x7c]
add edi, dword [esp + 0x68]
add edi, 1
mov ebx, dword [esp + 0x7c]
add ebx, dword [esp + 0x64]
add ebx, 1
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x60]
add eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x58]
add ecx, 1
mov eax, esp
mov dword [esp + 0x30], eax
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004016e0
jmp 0x4032cf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x6c]
imul ecx, ecx, 0x68
add eax, ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x7c]
add edi, dword [esp + 0x68]
add edi, 1
mov ebx, dword [esp + 0x7c]
add ebx, dword [esp + 0x64]
add ebx, 1
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x60]
add ecx, 1
mov eax, esp
mov dword [esp + 0x28], eax
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
call fcn.004016e0
jmp 0x403328
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x6c]
imul eax, eax, 0x68
add ecx, eax
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x7c]
add edi, dword [esp + 0x68]
add edi, 1
mov eax, esp
mov dword [esp + 0x24], eax
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
call fcn.004016e0
mov eax, dword [esp + 0x74]
add eax, 1
add eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x6c], eax
jmp 0x402ed2
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x7c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub ecx, eax
mov eax, ecx
sar eax, 0x1f
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret