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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a0
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x8c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0x80
lea eax, [esp + 0x120]
mov ebx, eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0x80
mov word [esp + 0x28], 0x105
mov edi, dword [esp + 0x1b8]
mov esi, dword [esp + 0x1bc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
lea ebp, [esp + 0x18]
push 0
push ebp
call fcn.0041ca9a
add esp, 8
test al, al
je 0x4086e9
mov word [esp + 0x28], 0x105
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov word [esp + 0x6c], 0
sub esp, 0x18
mov dword [esp + 4], ebp
lea eax, [esp + 0x18]
mov dword [esp], eax
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.0041c9c8
add esp, 0x18
test byte [esp + 8], 1
jne 0x408743
call fcn.0041cbcc
mov eax, dword [esp]
mov esi, ebx
jmp 0x408b32
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
lea eax, [esp + 0x114]
push eax
call fcn.0041ca6a
add esp, 4
mov edi, dword [esp + 0x114]
mov esi, dword [esp + 0x118]
mov dword [esp + 0x84], 0
cmp dword [esp + 0x88], esi
jae 0x408759
lea ecx, [esp + 0x80]
push 1
push esi
lea eax, [esp + 0x94]
push eax
call fcn.0041c9ec
mov eax, dword [esp + 0x84]
jmp 0x40875f
mov eax, dword [esp]
test eax, eax
mov esi, ebx
mov edi, dword [esp + 0x14]
jne 0x408bbb
jmp 0x408c79
xor eax, eax
test esi, esi
je 0x408778
add eax, dword [esp + 0x80]
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x84]
add eax, esi
mov dword [esp + 0x84], eax
mov word [esp + 0x28], 0x105
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 0x101
mov word [esp + 0x3c], 0x101
mov word [esp + 0x58], 0x101
lea eax, [esp + 0x48]
lea ecx, [esp + 0x2c]
mov esi, esp
lea edx, [esp + 0x80]
push eax
push ecx
push esi
push ebp
push edx
call fcn.0041caa6
add esp, 0x14
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push 0
push ebp
call fcn.0041ca82
add esp, 8
test eax, eax
je 0x408ac3
mov eax, dword [esp + 0x1b4]
mov eax, dword [eax + 0x6c]
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x10c], xmm0
sub esp, 0xc
movsd qword [esp], xmm0
mov dword [esp + 8], 0
call fcn.0041ca8e
add esp, 0xc
mov ebx, edx
mov dword [esp + 0x84], 0
xor ecx, ecx
cmp dword [esp + 0x88], edx
lea esi, [esp + 0x120]
jae 0x408873
mov esi, eax
lea ecx, [esp + 0x80]
push 1
push ebx
lea eax, [esp + 0x94]
push eax
call fcn.0041c9ec
mov eax, esi
lea esi, [esp + 0x120]
mov ecx, dword [esp + 0x84]
test ebx, ebx
je 0x408890
add ecx, dword [esp + 0x80]
push ebx
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x84]
add ecx, ebx
mov dword [esp + 0x84], ecx
mov word [esp + 0x28], 0x105
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x1c], ebx
mov word [esp + 0x10], 0x101
mov word [esp + 0x3c], 0x101
mov word [esp + 0x58], 0x101
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
push eax
lea edi, [esp + 8]
push edi
push ebp
lea eax, [esp + 0x90]
push eax
call fcn.0041caa6
add esp, 0x14
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push 0
push ebp
call fcn.0041ca82
add esp, 8
test eax, eax
je 0x408b3b
mov eax, dword [esp + 0x1b4]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
cmp eax, edi
je 0x408a56
nop dword [eax + eax]
movzx ebx, byte [eax]
lea esi, [eax + 1]
test bl, 1
je 0x408960
mov ebp, dword [eax + 8]
mov ebx, dword [eax + 4]
mov dword [esp + 0x84], 0
cmp dword [esp + 0x88], ebx
jb 0x408978
xor eax, eax
test ebx, ebx
jne 0x408996
jmp 0x4089af
shr ebx, 1
mov ebp, esi
mov dword [esp + 0x84], 0
cmp dword [esp + 0x88], ebx
jae 0x408955
lea ecx, [esp + 0x80]
push 1
push ebx
lea eax, [esp + 0x94]
push eax
call fcn.0041c9ec
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x80]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x84]
add eax, ebx
mov dword [esp + 0x84], eax
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x1c], ebx
mov word [esp + 0x10], 0x101
mov word [esp + 0x3c], 0x101
mov word [esp + 0x58], 0x101
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 8]
push eax
lea ebp, [esp + 0x24]
push ebp
lea eax, [esp + 0x90]
push eax
call fcn.0041caa6
add esp, 0x14
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push 0
push ebp
call fcn.0041ca82
add esp, 8
test eax, eax
je 0x408bff
add esi, 0xb
mov eax, esi
cmp esi, edi
jne 0x408930
mov eax, dword [esp + 0x1b4]
mov ecx, dword [eax + 0x6c]
lea esi, [esp + 0x120]
cmp byte [ecx + 0xc], 0
je 0x408cde
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], str.error_:_file_not_found_:
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], 0x503
call fcn.0041ca2e
mov edi, eax
mov ebx, edx
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
sub esp, 0xc
movsd xmm0, qword [esp + 0xc]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x24]
mov dword [esp], eax
mov ecx, ebp
call fcn.0041c9a4
mov edi, dword [esp + 0x14]
or byte [edi + 4], 1
mov dword [edi], ebp
jmp 0x408ca0
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x68], 0
sub esp, 0x18
mov dword [esp + 4], ebp
mov dword [esp], esi
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.0041c9c8
add esp, 0x18
test byte [esp + 8], 1
lea esi, [esp + 0x120]
jne 0x408bac
call fcn.0041cbcc
mov eax, dword [esp]
mov edi, dword [esp + 0x14]
jmp 0x408c79
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x64], 0
sub esp, 0x18
mov dword [esp + 4], ebp
mov dword [esp], edi
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.0041c9c8
add esp, 0x18
test byte [esp + 8], 1
mov edi, dword [esp + 0x14]
jne 0x408c6e
call fcn.0041cbcc
mov eax, dword [esp]
jmp 0x408c79
mov eax, dword [esp]
test eax, eax
mov edi, dword [esp + 0x14]
je 0x408c79
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x54]
mov dword [esp], eax
call fcn.0041c9fe
add esp, 0xc
or byte [edi + 4], 1
mov eax, dword [esp + 0x48]
mov dword [edi], eax
test byte [esp + 8], 1
je 0x408c8d
jmp 0x408ca0
mov word [esp + 0x28], 0x105
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x60], 0
sub esp, 0x18
mov dword [esp + 4], ebp
lea eax, [esp + 0x18]
mov dword [esp], eax
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.0041c9c8
add esp, 0x18
test byte [esp + 8], 1
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x120]
je 0x408b9f
mov eax, dword [esp]
test eax, eax
jne 0x408bbb
and byte [edi + 4], 0xfe
mov dword [esp], 0
mov dword [edi], eax
test byte [esp + 8], 1
jne 0x408ca0
mov ecx, dword [esp]
mov dword [esp], 0
test ecx, ecx
je 0x408ca0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x114]
cmp eax, esi
je 0x408cb4
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x8c]
cmp eax, ecx
je 0x408ccf
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, edi
add esp, 0x1a0
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [esp + 0x1b8]
mov dword [esp + 0x78], str.INCLUDE
mov dword [esp + 0x7c], 7
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
sub esp, 0x18
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 0x14], 0x3b
call fcn.0041cab2
add esp, 0x18
cmp byte [esp + 0xc], 0
je 0x408a64
mov word [esp + 0x28], 0x104
mov eax, esp
mov dword [esp + 0x18], eax
mov word [esp + 0x5c], 0
sub esp, 0x18
mov dword [esp + 4], ebp
lea edi, [esp + 0x44]
mov dword [esp], edi
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.0041c9c8
add esp, 0x18
push edi
mov edi, dword [esp + 0x18]
push edi
call fcn.0040d770
add esp, 8
test byte [esp + 0x34], 1
jne 0x408db8
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x408db8
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xc], 0
je 0x408ca0
test byte [esp], 1
je 0x408ca0
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x408ca0