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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [esp + 0x28], edx
mov edi, ecx
nop
test eax, eax
nop
nop
test eax, eax
nop
mov eax, dword [ecx + 0x3c]
nop
test eax, eax
nop
mov esi, dword [ecx + eax + 0x78]
nop
test eax, eax
nop
mov eax, dword [ecx + esi + 0x1c]
add eax, ecx
mov dword [esp + 0x30], eax
nop
test eax, eax
nop
mov eax, dword [ecx + esi + 0x20]
add eax, ecx
mov dword [esp + 0x38], eax
nop
test eax, eax
nop
mov eax, dword [ecx + esi + 0x24]
add eax, ecx
mov dword [esp + 0x2c], eax
nop
test eax, eax
nop
nop
test eax, eax
nop
nop
test eax, eax
nop
mov word [esp + 4], 0x30
lea eax, [esp + 4]
push eax
call sub.msvcrt.dll_atoi
add esp, 4
mov dword [esp + 0x34], esi
cmp eax, dword [edi + esi + 0x18]
jae 0x4034b0
mov ecx, eax
mov dword [esp + 0x20], edi
nop word [eax + eax]
nop
test eax, eax
nop
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov esi, dword [eax + ecx*4]
add esi, edi
nop
test eax, eax
nop
push dword [esp + 0x28]
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x4034d6
mov ebx, eax
cmp eax, 0xa
ja 0x4032d0
mov eax, ebx
add al, bl
mov byte [esp + 4], al
lea ebp, [esp + 5]
jmp 0x4032f2
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0040ade0
add esp, 4
mov ebp, eax
mov dword [esp + 0xc], eax
add edi, 2
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
push ebx
push dword [esp + 0x2c]
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx], 0
push esi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x4034df
mov ebx, eax
cmp eax, 0xa
ja 0x403330
mov eax, ebx
add al, bl
mov byte [esp + 0x14], al
lea ebp, [esp + 0x15]
jmp 0x403350
mov edi, ebx
or edi, 0xf
inc edi
push edi
call fcn.0040ade0
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], eax
or edi, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push ebx
push esi
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx], 0
nop
test eax, eax
nop
movzx eax, byte [esp + 4]
mov edx, eax
lea ebp, [esp + 5]
and dl, 1
je 0x403379
mov ebp, dword [esp + 0xc]
movzx ebx, byte [esp + 0x14]
mov esi, dword [esp + 0x1c]
test bl, 1
je 0x403410
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
test edi, edi
mov dword [esp + 0x44], ebx
je 0x403428
test dl, dl
mov dword [esp + 0x40], esi
je 0x403440
mov eax, dword [esp + 8]
lea esi, [eax + ebp]
cmp eax, edi
mov dword [esp + 0x3c], ebp
jl 0x403451
mov byte [esp + 3], dl
mov ecx, dword [esp + 0x10]
movsx ebx, byte [ecx]
nop dword [eax]
sub eax, edi
inc eax
je 0x403401
push eax
push ebx
push ebp
call sub.msvcrt.dll_memchr
add esp, 0xc
test eax, eax
je 0x403401
mov ebp, eax
push edi
push dword [esp + 0x14]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x403403
inc ebp
mov eax, esi
sub eax, ebp
cmp eax, edi
jge 0x4033d0
mov ebp, esi
movzx edx, byte [esp + 3]
jmp 0x403453
mov edi, ebx
shr edi, 1
lea ecx, [esp + 0x15]
mov dword [esp + 0x10], ecx
test edi, edi
mov dword [esp + 0x44], ebx
jne 0x40339f
mov bl, 1
mov edi, dword [esp + 0x20]
test byte [esp + 0x44], 1
jne 0x403473
jmp 0x403484
shr eax, 1
lea esi, [eax + ebp]
cmp eax, edi
mov dword [esp + 0x3c], ebp
jge 0x4033be
mov ebp, esi
cmp ebp, esi
setne al
sub ebp, dword [esp + 0x3c]
cmp ebp, 0xffffffff
setne bl
and bl, al
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
test byte [esp + 0x44], 1
je 0x403484
push esi
call fcn.0040ae50
add esp, 4
movzx edx, byte [esp + 4]
and dl, 1
test dl, dl
je 0x403494
push dword [esp + 0xc]
call fcn.0040ae50
add esp, 4
nop
test eax, eax
nop
test bl, bl
jne 0x4034b9
mov ecx, dword [esp + 0x24]
inc ecx
mov eax, dword [esp + 0x34]
cmp ecx, dword [edi + eax + 0x18]
jb 0x403280
nop
test eax, eax
nop
xor edi, edi
jmp 0x4034cc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x30]
add edi, dword [ecx + eax*4]
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 4]
call fcn.00407aa0
lea ecx, [esp + 0x14]
call fcn.00407aa0
jmp 0x4034ea
mov esi, eax
test byte [esp + 4], 1
je 0x4034ff
push dword [esp + 0xc]
call fcn.0040ae50
add esp, 4
push esi
call fcn.0042fe90
int3