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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x74]
test eax, eax
jns 0x402ce6
jmp 0x402cd1
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
jmp 0x403346
mov dword [esp + 0x6c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
add ecx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, str.methods
mov dword [esp + 8], eax
call fcn.00402670
mov dword [esp + 0x64], eax
cmp dword [esp + 0x64], 0
jge 0x402d63
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
jmp 0x403346
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004025d0
mov dword [esp + 0x60], eax
cmp dword [esp + 0x60], 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, dword [esp + 0x60]
mov edx, esp
mov dword [edx + 8], ecx
mov dword [edx], eax
mov dword [edx + 4], str.ERROR:_failed_while_reading_methods__found__d__n
call fcn.0040aea0
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
jmp 0x403346
mov eax, dword [esp + 0x60]
add eax, 2
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov ecx, 0x68
mul ecx
seto cl
mov esi, 0xffffffff
cmovo eax, esi
mov dword [esp], eax
mov byte [esp + 0x37], cl
call fcn.0040b130
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x402e30
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
jmp 0x403346
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], str._toplevel_
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0xfffffffe
call fcn.004016e0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
add eax, 0x68
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], str._unknown_
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0xffffffff
call fcn.004016e0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x5c], 2
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x60]
jge 0x403324
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
call fcn.00402560
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov byte [eax + ecx], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
call fcn.00402560
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
add ecx, 1
add eax, ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
add edx, 1
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
call fcn.00402560
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x54]
add ecx, 2
add eax, ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
add edx, dword [esp + 0x54]
add edx, 2
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
call fcn.00402560
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x54]
add ecx, dword [esp + 0x50]
add ecx, 3
add eax, ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
add edx, dword [esp + 0x54]
add edx, dword [esp + 0x50]
add edx, 3
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
call fcn.00402560
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x54]
add ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x4c]
add ecx, 4
add eax, ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
add edx, dword [esp + 0x54]
add edx, dword [esp + 0x50]
add edx, dword [esp + 0x4c]
add edx, 4
sub ecx, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
call fcn.00402560
mov dword [esp + 0x48], eax
cmp dword [esp + 0x58], 0
jge 0x403089
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, dword [esp + 0x6c]
mov edx, esp
mov dword [edx + 8], ecx
mov dword [edx], eax
mov dword [edx + 4], str.ERROR:_missing_field_on_method_line:__s_n
call fcn.0040aea0
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
jmp 0x403346
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
mov byte [eax + ecx], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x6c]
mov ecx, esp
lea edx, [esp + 0x44]
mov dword [ecx + 4], edx
mov dword [ecx], eax
mov dword [ecx + 8], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x44]
movsx eax, byte [eax]
cmp eax, 0
je 0x40311f
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, dword [esp + 0x6c]
mov edx, esp
mov dword [edx + 8], ecx
mov dword [edx], eax
mov dword [edx + 4], str.ERROR:_bad_method_ID__s_n
call fcn.0040aea0
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
jmp 0x403346
cmp dword [esp + 0x54], 0
jle 0x4032b5
cmp dword [esp + 0x50], 0
jle 0x4032b5
mov eax, dword [esp + 0x58]
add eax, 1
add eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
add eax, 1
add eax, dword [esp + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
mov byte [eax + ecx], 0
cmp dword [esp + 0x4c], 0
jle 0x40324a
cmp dword [esp + 0x48], 0
jle 0x40324a
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x48]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x5c]
imul ecx, ecx, 0x68
add eax, ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
add esi, dword [esp + 0x58]
add esi, 1
mov edi, dword [esp + 0x6c]
add edi, dword [esp + 0x54]
add edi, 1
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0x50]
add ebx, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x4c]
add eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x48]
add eax, 1
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], esi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov esi, dword [esp + 0x30]
mov dword [eax], esi
call fcn.004016e0
jmp 0x4032b0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x5c]
imul ecx, ecx, 0x68
add eax, ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
add esi, dword [esp + 0x58]
add esi, 1
mov edi, dword [esp + 0x6c]
add edi, dword [esp + 0x54]
add edi, 1
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0x50]
add ebx, 1
mov dword [esp + 0x20], eax
mov eax, esp
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], esi
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
call fcn.004016e0
jmp 0x403305
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x5c]
imul ecx, ecx, 0x68
add eax, ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
add esi, dword [esp + 0x58]
add esi, 1
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
call fcn.004016e0
mov eax, dword [esp + 0x64]
add eax, 1
add eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0x5c], eax
jmp 0x402ec3
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
sub eax, ecx
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret