Function at 0x459070
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 0x4590de
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 0x4590f1
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 0x459106
mov ecx, eax
mov dword [edi + 4], ecx
mov ecx, 0xfffffff0
sub ecx, ebx
add ecx, ecx
cmp eax, ecx
jg 0x459118
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 0x45915f
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 0x459167
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 0x4591e2
mov esi, dword [esp + 0x4c]
lea eax, [ecx + 1]
cmp esi, eax
je 0x4591e0
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 0x4591c8
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x4591ea
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x4591ea
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x45922e
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 0x459216
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x459236
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x459236
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], eax
je 0x459291
cmp ebp, 3
jne 0x45924f
mov eax, dword [edx - 0x1b4]
mov esi, dword [edx - 0x1b0]
jmp 0x459255
mov eax, dword [edx - 0x54]
mov esi, dword [edx - 0x50]
test ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
je 0x4592bd
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 0x45929b
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 0x4592d5
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x4592bf
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 0x4592d5
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 0x4592d5
xor eax, eax
test esi, esi
jbe 0x4592f4
mov ecx, dword [esp + esi + 0x10]
cmp ecx, dword [esp + eax*8 + 0x10]
jne 0x4592ef
mov edx, dword [esp + esi + 0x14]
mov ebx, dword [esp + eax*8 + 0x14]
cmp edx, ebx
je 0x459308
inc eax
cmp eax, ebp
jb 0x4592dd
mov eax, dword [esp + esi + 0x14]
mov ecx, dword [esp + esi + 0x10]
push ebp
push edi
push eax
push ecx
call fcn.004585c0
add esp, 0x10
add esi, 8
inc ebp
cmp esi, 0x38
jl 0x4592d3
cmp dword [edi + 0x10], 0x200
jle 0x4593aa
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 0x459357
mov ecx, dword [esp + edx*8 + 0x14]
lea ebp, [ecx + 2]
cmp ebx, ebp
jne 0x45934b
and esi, 0xfffffffb
jmp 0x459373
add ecx, 0xfffffffe
cmp ebx, ecx
jne 0x459373
and esi, 0xfffffff7
jmp 0x459373
cmp ebx, dword [esp + edx*8 + 0x14]
jne 0x459373
lea ebp, [ecx + 2]
cmp eax, ebp
jne 0x459369
and esi, 0xfffffffe
jmp 0x459373
add ecx, 0xfffffffe
cmp eax, ecx
jne 0x459373
and esi, 0xfffffffd
inc edx
cmp edx, 7
jb 0x459333
mov al, byte [esp + 0x54]
test al, 4
je 0x459388
mov eax, fcn.004510b0
jmp 0x459396
test al, 1
mov eax, 0x450e10
jne 0x459396
mov eax, fcn.004511b0
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push fcn.004585c0
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 0x4593b7
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret