Function at 0x458fc0
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 0x45902e
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 0x459041
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 0x459056
mov ecx, eax
mov dword [edi + 4], ecx
mov ecx, 0xfffffff0
sub ecx, ebx
add ecx, ecx
cmp eax, ecx
jg 0x459068
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 0x4590af
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 0x4590b7
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 0x459132
mov esi, dword [esp + 0x4c]
lea eax, [ecx + 1]
cmp esi, eax
je 0x459130
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 0x459118
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x45913a
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x45913a
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x45917e
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 0x459166
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x459186
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x459186
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], eax
je 0x4591e1
cmp ebp, 3
jne 0x45919f
mov eax, dword [edx - 0x1b4]
mov esi, dword [edx - 0x1b0]
jmp 0x4591a5
mov eax, dword [edx - 0x54]
mov esi, dword [edx - 0x50]
test ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
je 0x45920d
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 0x4591eb
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 0x459225
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x45920f
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 0x459225
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 0x459225
xor eax, eax
test esi, esi
jbe 0x459244
mov ecx, dword [esp + esi + 0x10]
cmp ecx, dword [esp + eax*8 + 0x10]
jne 0x45923f
mov edx, dword [esp + esi + 0x14]
mov ebx, dword [esp + eax*8 + 0x14]
cmp edx, ebx
je 0x459258
inc eax
cmp eax, ebp
jb 0x45922d
mov eax, dword [esp + esi + 0x14]
mov ecx, dword [esp + esi + 0x10]
push ebp
push edi
push eax
push ecx
call fcn.00458510
add esp, 0x10
add esi, 8
inc ebp
cmp esi, 0x38
jl 0x459223
cmp dword [edi + 0x10], 0x200
jle 0x4592fa
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 0x4592a7
mov ecx, dword [esp + edx*8 + 0x14]
lea ebp, [ecx + 2]
cmp ebx, ebp
jne 0x45929b
and esi, 0xfffffffb
jmp 0x4592c3
add ecx, 0xfffffffe
cmp ebx, ecx
jne 0x4592c3
and esi, 0xfffffff7
jmp 0x4592c3
cmp ebx, dword [esp + edx*8 + 0x14]
jne 0x4592c3
lea ebp, [ecx + 2]
cmp eax, ebp
jne 0x4592b9
and esi, 0xfffffffe
jmp 0x4592c3
add ecx, 0xfffffffe
cmp eax, ecx
jne 0x4592c3
and esi, 0xfffffffd
inc edx
cmp edx, 7
jb 0x459283
mov al, byte [esp + 0x54]
test al, 4
je 0x4592d8
mov eax, fcn.00451000
jmp 0x4592e6
test al, 1
mov eax, 0x450d60
jne 0x4592e6
mov eax, fcn.00451100
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push fcn.00458510
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 0x459307
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret