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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x417cae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [0x420628]
xor eax, dword [ebp + 4]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0xc]
test ah, 0x40
jne 0x404a00
movzx edx, byte [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push edi
push edx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [eax + 0x1c]
mov eax, esi
jmp 0x404c0e
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00403560
mov dword [esp + 0x8c], ebx
push eax
call fcn.00404d90
add esp, 4
mov esi, eax
mov dword [esp + 0x8c], 0xffffffff
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x404a42
call fcn.00403440
cmp eax, ebx
je 0x404a42
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov al, byte [ebp + 0x1c]
test al, al
je 0x404a5c
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00404d40
mov ebx, 1
jmp 0x404a6d
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00404cf0
mov ebx, 2
mov dword [esp + 0x8c], ebx
push 0xffffffffffffffff
push 0
mov esi, 0xf
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00401430
mov dword [esp + 0x8c], 5
test bl, 2
je 0x404ada
mov eax, dword [esp + 0x5c]
and ebx, 0xfffffffd
cmp eax, 0x10
mov dword [esp + 0x10], ebx
jb 0x404ac9
mov edx, dword [esp + 0x48]
push edx
call fcn.00407bbd
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x8c], 4
test bl, 1
je 0x404b0f
cmp dword [esp + 0x78], 0x10
jb 0x404afe
mov eax, dword [esp + 0x64]
push eax
call fcn.00407bbd
add esp, 4
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
mov eax, dword [edi + 0x14]
test eax, eax
mov edx, dword [esp + 0x3c]
jle 0x404b24
cmp eax, edx
jbe 0x404b24
sub eax, edx
mov ebx, eax
jmp 0x404b26
xor ebx, ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0xc]
and eax, 0x1c0
cmp eax, 0x40
mov eax, dword [ebp + 0x10]
je 0x404b63
test ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jbe 0x404b59
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404c90
dec ebx
jne 0x404b45
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [esp + 0x40], 0x10
mov esi, dword [esp + 0x2c]
jae 0x404b72
lea esi, [esp + 0x2c]
test edx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jbe 0x404b95
mov edi, edx
xor edx, edx
mov dl, byte [esi]
lea ecx, [esp + 0x18]
push edx
call fcn.00404c90
inc esi
dec edi
jne 0x404b80
mov edi, dword [ebp + 0x14]
test ebx, ebx
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x14], 0
mov dword [esp + 0x20], eax
jbe 0x404bcc
lea esp, [esp]
test esi, esi
je 0x404bc4
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, esi
call fcn.00404c40
cmp eax, 0xffffffff
jne 0x404bc9
mov byte [esp + 0x20], 1
dec ebx
jne 0x404bb0
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov dword [ebx], edx
mov dword [ebx + 4], esi
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x40], 0x10
jb 0x404bf7
mov eax, dword [esp + 0x2c]
push eax
call fcn.00407bbd
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov eax, ebx
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x7c]
xor ecx, dword [ebp + 4]
call fcn.00408241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18