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

Disassembly:
push 0xffffffffffffffff
push 0x4dd189
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5114a8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5114a8]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov edi, ecx
mov esi, edx
xor ebp, ebp
push 0x4f4170
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebp
call fcn.00401f00
mov ebx, 1
mov dword [esp + 0x84], ebx
cmp esi, ebp
jne 0x4582a8
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00406030
mov byte [esp + 0x84], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x20], ebx
jb 0x458289
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045f220
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
call fcn.00401050
jmp 0x4584de
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4582b0
sub eax, edx
mov ebx, eax
mov byte [esp + 0x14], cl
xor eax, eax
mov ecx, ebx
and ecx, 0x8000000f
mov dword [esp + 0x2c], ebx
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
jns 0x4582dd
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
mov ebp, eax
sar ebp, 4
mov dword [esp + 0x28], ecx
test ebp, ebp
jle 0x45839c
mov ebx, esi
mov dword [esp + 0x24], ebp
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], eax
push ecx
lea eax, [esp + 0x68]
mov dword [esp + 0x70], edx
call fcn.004576c0
xor edi, edi
lea ecx, [ecx]
movzx edx, byte [esp + edi + 0x54]
push edx
lea eax, [esp + 0x18]
push str._02X
push eax
call fcn.00461c40
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458360
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
call fcn.0040d080
inc edi
cmp edi, 0x10
jl 0x458340
add ebx, 0x10
sub dword [esp + 0x24], 1
jne 0x4582fc
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
test ecx, ecx
jg 0x4583a8
test ebx, ebx
jne 0x45842f
xor eax, eax
push ecx
shl ebp, 4
add ebp, esi
lea edx, [esp + 0x68]
push ebp
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.0046ee00
mov esi, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
call fcn.004576c0
xor esi, esi
movzx ecx, byte [esp + esi + 0x54]
push ecx
lea edx, [esp + 0x18]
push str._02X
push edx
call fcn.00461c40
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458411
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
call fcn.0040d080
inc esi
cmp esi, 0x10
jl 0x4583f2
cmp dword [esp + 0x34], 0xfffffffd
mov dword [edi], 0
jne 0x458442
mov dword [edi], 0xfffffffd
push 0xffffffffffffffff
mov byte [esp + 0x88], 2
push 0
lea ecx, [esp + 0x3c]
mov esi, 0xf
push ecx
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], 0
mov ecx, edi
mov byte [edi + 8], 0
call fcn.00401fb0
mov byte [esp + 0x84], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x20], 1
jb 0x458491
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045f220
add esp, 4
mov dword [esp + 0x50], esi
xor esi, esi
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
call fcn.0045cad0
mov eax, dword [esp + 0x34]
cmp eax, 0xfffffffd
je 0x4584d5
cmp eax, esi
je 0x4584d1
jmp 0x4584c0
mov dword [eax], esi
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
cmp eax, esi
jne 0x4584c0
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x18]
call fcn.0045cb10
mov eax, edi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0045ef20
add esp, 0x74
ret 4