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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [edi + 0xd8]
mov dword [edi + 0x10], 0x100000
mov dword [edi + 0xdc], 0
mov ecx, dword [eax]
mov dword [edi + 0x98], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [eax + 4]
sub ecx, ebp
add ecx, 4
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0x9c], edx
mov edx, dword [ebx + 4]
shl ecx, 4
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx]
mov ebx, dword [esp + 0x70]
lea esi, [eax - 1]
sub ecx, ebx
add ecx, ecx
neg eax
cmp esi, ecx
jge 0x4587ae
mov ecx, esi
mov ebx, dword [esp + 0x50]
mov dword [edi], ecx
shl ebx, 4
sub edx, ebx
add edx, edx
cmp esi, edx
jge 0x4587c1
mov edx, esi
mov dword [edi + 8], edx
mov edx, dword [esp + 0x4c]
or ecx, 0xffffffff
sub ecx, edx
shl ecx, 5
cmp eax, ecx
jle 0x4587d6
mov ecx, eax
mov dword [edi + 4], ecx
mov ecx, 0xfffffff0
sub ecx, ebx
add ecx, ecx
cmp eax, ecx
jg 0x4587e8
mov eax, ecx
mov ecx, dword [edi + 0x9c]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x98]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
je 0x45882f
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x78]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
jmp 0x458837
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x50]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], esi
cmp ebx, eax
je 0x4588b2
mov esi, dword [esp + 0x4c]
lea eax, [ecx + 1]
cmp esi, eax
je 0x4588b0
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*8]
lea eax, [ecx + eax*4]
shl eax, 2
mov esi, eax
mov eax, edx
sub eax, esi
add eax, 0x1b4
cmp ebp, 3
jne 0x458898
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x4588ba
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x4588ba
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x4588fe
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*8]
lea eax, [ecx + eax*4]
shl eax, 2
mov esi, eax
mov eax, edx
sub eax, esi
cmp ebp, 3
jne 0x4588e6
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x458906
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x458906
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], eax
je 0x458961
cmp ebp, 3
jne 0x45891f
mov eax, dword [edx - 0x1b4]
mov esi, dword [edx - 0x1b0]
jmp 0x458925
mov eax, dword [edx - 0x54]
mov esi, dword [edx - 0x50]
test ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
je 0x45898d
lea eax, [ecx + ecx*2 + 3]
lea eax, [eax + eax*8]
lea ecx, [ecx + eax*4 + 1]
shl ecx, 2
sub edx, ecx
cmp ebp, 3
jne 0x45896b
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x40], eax
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x44], edx
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
xor esi, esi
jmp 0x4589a5
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x45898f
mov eax, dword [edx + 0x160]
mov edx, dword [edx + 0x164]
mov dword [esp + 0x40], eax
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x44], edx
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
xor esi, esi
jmp 0x4589a5
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
xor esi, esi
jmp 0x4589a5
xor eax, eax
test esi, esi
jbe 0x4589c4
mov ecx, dword [esp + esi + 0x10]
cmp ecx, dword [esp + eax*8 + 0x10]
jne 0x4589bf
mov edx, dword [esp + esi + 0x14]
mov ebx, dword [esp + eax*8 + 0x14]
cmp edx, ebx
je 0x4589d8
inc eax
cmp eax, ebp
jb 0x4589ad
mov eax, dword [esp + esi + 0x14]
mov ecx, dword [esp + esi + 0x10]
push ebp
push edi
push eax
push ecx
call fcn.00457c90
add esp, 0x10
add esi, 8
inc ebp
cmp esi, 0x38
jl 0x4589a3
cmp dword [edi + 0x10], 0x200
jle 0x458a7a
mov eax, dword [edi + 0x84]
mov esi, 0xff
xor edx, edx
mov ebx, dword [esp + eax*8 + 0x14]
mov eax, dword [esp + eax*8 + 0x10]
mov ecx, dword [esp + edx*8 + 0x10]
cmp eax, ecx
jne 0x458a27
mov ecx, dword [esp + edx*8 + 0x14]
lea ebp, [ecx + 2]
cmp ebx, ebp
jne 0x458a1b
and esi, 0xfffffffb
jmp 0x458a43
add ecx, 0xfffffffe
cmp ebx, ecx
jne 0x458a43
and esi, 0xfffffff7
jmp 0x458a43
cmp ebx, dword [esp + edx*8 + 0x14]
jne 0x458a43
lea ebp, [ecx + 2]
cmp eax, ebp
jne 0x458a39
and esi, 0xfffffffe
jmp 0x458a43
add ecx, 0xfffffffe
cmp eax, ecx
jne 0x458a43
and esi, 0xfffffffd
inc edx
cmp edx, 7
jb 0x458a03
mov al, byte [esp + 0x54]
test al, 4
je 0x458a58
mov eax, fcn.00450780
jmp 0x458a66
test al, 1
mov eax, 0x4504e0
jne 0x458a66
mov eax, fcn.00450880
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push fcn.00457c90
push esi
push edi
push edx
push ecx
call eax
add esp, 0x14
mov eax, dword [esp + 0x68]
mov edi, dword [edi + 0x10]
cmp edi, dword [eax]
jge 0x458a87
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret