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

Disassembly:
sub esp, 0x60
mov eax, dword [0x4c8048]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
xor ebx, ebx
or ebp, 0xffffffff
lea edx, [esp + 0x14]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov edi, eax
mov dword [esp + 0x10], edx
cmp ecx, ebx
je 0x4016eb
cmp eax, ebx
je 0x4016eb
push esi
push 0x74
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401601
push ebx
push ebx
push ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x44], ebx
mov dword [esi], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebp
call fcn.004033d0
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401518
sub eax, edx
inc eax
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esi + 0x54], eax
cmp eax, ebx
je 0x4015fc
mov ecx, dword [esp + 0x18]
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x401540
mov byte [esi + 0x5c], bl
mov cl, 0x72
nop
cmp byte [edi], cl
jne 0x401557
mov byte [esi + 0x5c], cl
mov al, byte [edi]
cmp al, 0x77
je 0x401561
cmp al, 0x61
jne 0x401565
mov byte [esi + 0x5c], 0x77
mov al, byte [edi]
cmp al, 0x30
jl 0x401577
cmp al, 0x39
jg 0x401577
movsx ebp, al
sub ebp, 0x30
jmp 0x4015ac
cmp al, 0x66
jne 0x401585
mov dword [esp + 0x10], 1
jmp 0x4015ac
cmp al, 0x68
jne 0x401593
mov dword [esp + 0x10], 2
jmp 0x4015ac
cmp al, 0x52
jne 0x4015a1
mov dword [esp + 0x10], 3
jmp 0x4015ac
mov edx, dword [esp + 0x14]
mov byte [edx], al
inc edx
mov dword [esp + 0x14], edx
inc edi
cmp al, bl
je 0x4015bb
lea eax, [esp + 0x6c]
cmp dword [esp + 0x14], eax
jne 0x401550
mov al, byte [esi + 0x5c]
cmp al, bl
je 0x4015fc
cmp al, 0x77
jne 0x401616
mov ecx, dword [esp + 0x10]
push 0x38
push 0x4a8944
push ecx
push 8
push 0xfffffffffffffff1
push 8
push ebp
push esi
call fcn.00402d50
push 0x4000
mov edi, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 0x24
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
cmp edi, ebx
jne 0x4015fc
cmp eax, ebx
jne 0x401640
call fcn.004011d0
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00488240
add esp, 0x60
ret
push 0x4000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
push 0x38
push 0x4a8944
push 0xfffffffffffffff1
push esi
mov dword [esi + 0x44], eax
mov dword [esi], eax
call fcn.00402fd0
add esp, 0x14
test eax, eax
jne 0x4015fc
cmp dword [esi + 0x44], ebx
je 0x4015fc
mov dword [esi + 0x10], 0x4000
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], ebx
mov eax, dword [esp + 0x78]
cmp eax, ebx
jge 0x401667
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
jmp 0x401672
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.api_ms_win_crt_math_l1_1_0.dll__fdopen
add esp, 8
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x4015fc
cmp byte [esi + 0x5c], 0x77
jne 0x4016bd
push 0xb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 8
push 0x8b
push 0x1f
push str._c_c_c_c_c_c_c_c_c_c
push eax
call fcn.00464fbb
add esp, 0x30
mov dword [esi + 0x60], 0xa
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00488240
add esp, 0x60
ret
mov eax, esi
call fcn.00401070
mov edx, dword [esi + 0x40]
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
sub eax, dword [esi + 4]
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00488240
add esp, 0x60
ret
mov ecx, dword [esp + 0x68]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00488240
add esp, 0x60
ret