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

Disassembly:
xor edi, edi
cmp eax, edi
jl 0x4586be
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
inc eax
push edx
lea ebp, [edi + 1]
push eax
mov eax, dword [esp + 0xc0]
push ebp
push eax
lea eax, [ecx + 1]
push eax
lea edx, [esp + 0x30]
push 0x4d2f94
push edx
call fcn.00477967
mov eax, dword [esp + 0x38]
add esp, 0x1c
lea ecx, [esi + 0x5c]
push eax
call fcn.0047dcff
mov ecx, dword [esi + 0x78]
mov ebx, dword [0x4804c8]
push ecx
call ebx
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
push edx
push 0x64
push eax
call dword [0x480300]
mov ecx, dword [esi + 0xb4]
push 0
push eax
push 0x402
push ecx
call dword [0x4804f4]
mov edx, dword [esi + 0xb4]
push edx
call ebx
mov eax, dword [0x4e3f60]
mov ebx, 1
cmp eax, ebx
je 0x458770
mov eax, dword [esp + 0x2c]
push eax
call dword [0x480070]
test eax, eax
jl 0x4587a7
push 0x3e8
lea ecx, [esp + 0x2c]
push 0x3e8
push ecx
call fcn.004567d0
add esp, 0xc
lea edx, [esp + 0x88]
push edx
call dword [0x4804ac]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x104], eax
je 0x4585f1
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
cmp ebx, 0x3e8
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
je 0x45854f
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push 1
push edx
push eax
call dword [0x480084]
push ebx
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.004567d0
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea edx, [esp + 0x50]
push 1
push edx
push eax
call dword [0x480088]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
add edx, ecx
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x44]
dec edx
cmp edi, edx
jne 0x458588
cmp dword [esp + 0xc8], 1
jne 0x458588
mov edx, dword [esp + 0xfc]
test edx, edx
jg 0x458588
mov edx, dword [esp + 0x84]
jmp 0x45858a
xchg esp, eax
and al, 0x84
add byte [eax], al
add bl, ch
add dh, byte [ebx]
shr byte [ebx], cl
rcl dword [edx + 0x40], 0x8d
push esp
and al, 0x2c
xor edx, edx
sub eax, ecx
push edx
inc eax
lea edx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esi + 0xd4]
push edx
call fcn.0044b370
cmp dword [esp + 0x20], 0x3e8
je 0x4585cb
push 0x3e8
lea eax, [esp + 0x2c]
push 0x3e8
push eax
call fcn.004567d0
add esp, 0xc
mov ecx, dword [esp + 0xb4]
push ebx
lea edx, [esp + 0x8c]
push ecx
mov ecx, dword [esi + 0xd4]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0044b180
mov ebx, 1
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x480060]
test eax, eax
jl 0x458696
mov edi, dword [0x4803b8]
push 0
push 0
push 0
lea edx, [esp + 0x114]
push 0
push edx
call edi
test eax, eax
je 0x458672
push 0
push 0
lea eax, [esp + 0x110]
push 0
push eax
call dword [0x480540]
lea ecx, [esp + 0x108]
push ecx
call dword [0x480554]
lea edx, [esp + 0x108]
push edx
call dword [0x48053c]
cmp dword [0x4e3f60], ebx
je 0x4587cd
push 0
push 0
push 0
lea eax, [esp + 0x114]
push 0
push eax
call edi
test eax, eax
jne 0x458620
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov edi, ebp
inc edx
add ecx, 0xc
cmp edi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], ecx
jle 0x458425
jmp 0x4586be
push 0x4d2f88
lea ecx, [esi + 0xe0]
call fcn.00479b36
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x480064]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047ac37
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
lea ecx, [eax + 1]
inc edx
add edi, ecx
mov ecx, dword [esp + 0xb8]
cmp edx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], edi
jl 0x45840f
mov edx, dword [esp + 0x2c]
push edx
call dword [0x480064]
push 0
mov ecx, esi
call fcn.0047ac37
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 4
call fcn.004799f9
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 3
call fcn.0047fba8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45872a
push eax
call fcn.00479763
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call fcn.004799f9
lea ecx, [esp + 0xa4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004443e0
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
mov edx, dword [esp + 0x2c]
push edx
call dword [0x480064]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 4
call fcn.004799f9
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 3
call fcn.0047fba8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45880b
jmp 0x458802
push 0x4d2f88
lea ecx, [esi + 0xe0]
call fcn.00479b36
mov eax, dword [esp + 0x2c]
push eax
call dword [0x480064]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047ac37
jmp 0x45877b
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x480064]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 4
call fcn.004799f9
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 3
call fcn.0047fba8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45880b
push eax
call fcn.00479763
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call fcn.004799f9
lea ecx, [esp + 0xa4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004443e0
mov eax, ebx
jmp 0x458757