Function at 0x458d10
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 0x458d7e
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 0x458d91
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 0x458da6
mov ecx, eax
mov dword [edi + 4], ecx
mov ecx, 0xfffffff0
sub ecx, ebx
add ecx, ecx
cmp eax, ecx
jg 0x458db8
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 0x458dff
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 0x458e07
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 0x458e82
mov esi, dword [esp + 0x4c]
lea eax, [ecx + 1]
cmp esi, eax
je 0x458e80
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 0x458e68
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x458e8a
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x458e8a
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x458ece
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 0x458eb6
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x458ed6
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x458ed6
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], eax
je 0x458f31
cmp ebp, 3
jne 0x458eef
mov eax, dword [edx - 0x1b4]
mov esi, dword [edx - 0x1b0]
jmp 0x458ef5
mov eax, dword [edx - 0x54]
mov esi, dword [edx - 0x50]
test ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
je 0x458f5d
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 0x458f3b
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 0x458f75
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x458f5f
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 0x458f75
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 0x458f75
xor eax, eax
test esi, esi
jbe 0x458f94
mov ecx, dword [esp + esi + 0x10]
cmp ecx, dword [esp + eax*8 + 0x10]
jne 0x458f8f
mov edx, dword [esp + esi + 0x14]
mov ebx, dword [esp + eax*8 + 0x14]
cmp edx, ebx
je 0x458fa8
inc eax
cmp eax, ebp
jb 0x458f7d
mov eax, dword [esp + esi + 0x14]
mov ecx, dword [esp + esi + 0x10]
push ebp
push edi
push eax
push ecx
call fcn.00458260
add esp, 0x10
add esi, 8
inc ebp
cmp esi, 0x38
jl 0x458f73
cmp dword [edi + 0x10], 0x200
jle 0x45904a
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 0x458ff7
mov ecx, dword [esp + edx*8 + 0x14]
lea ebp, [ecx + 2]
cmp ebx, ebp
jne 0x458feb
and esi, 0xfffffffb
jmp 0x459013
add ecx, 0xfffffffe
cmp ebx, ecx
jne 0x459013
and esi, 0xfffffff7
jmp 0x459013
cmp ebx, dword [esp + edx*8 + 0x14]
jne 0x459013
lea ebp, [ecx + 2]
cmp eax, ebp
jne 0x459009
and esi, 0xfffffffe
jmp 0x459013
add ecx, 0xfffffffe
cmp eax, ecx
jne 0x459013
and esi, 0xfffffffd
inc edx
cmp edx, 7
jb 0x458fd3
mov al, byte [esp + 0x54]
test al, 4
je 0x459028
mov eax, fcn.00450d50
jmp 0x459036
test al, 1
mov eax, 0x450ab0
jne 0x459036
mov eax, fcn.00450e50
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push fcn.00458260
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 0x459057
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret