Function at 0x460f20
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 0x460f8e
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 0x460fa1
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 0x460fb6
mov ecx, eax
mov dword [edi + 4], ecx
mov ecx, 0xfffffff0
sub ecx, ebx
add ecx, ecx
cmp eax, ecx
jg 0x460fc8
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 0x46100f
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 0x461017
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 0x461092
mov esi, dword [esp + 0x4c]
lea eax, [ecx + 1]
cmp esi, eax
je 0x461090
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 0x461078
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x46109a
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
xor eax, eax
jmp 0x46109a
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x4610de
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 0x4610c6
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x4610e6
mov esi, dword [eax + 0x160]
mov eax, dword [eax + 0x164]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
xor eax, eax
jmp 0x4610e6
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], eax
je 0x461141
cmp ebp, 3
jne 0x4610ff
mov eax, dword [edx - 0x1b4]
mov esi, dword [edx - 0x1b0]
jmp 0x461105
mov eax, dword [edx - 0x54]
mov esi, dword [edx - 0x50]
test ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
je 0x46116d
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 0x46114b
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 0x461185
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x46116f
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 0x461185
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 0x461185
xor eax, eax
test esi, esi
jbe 0x4611a4
mov ecx, dword [esp + esi + 0x10]
cmp ecx, dword [esp + eax*8 + 0x10]
jne 0x46119f
mov edx, dword [esp + esi + 0x14]
mov ebx, dword [esp + eax*8 + 0x14]
cmp edx, ebx
je 0x4611b8
inc eax
cmp eax, ebp
jb 0x46118d
mov eax, dword [esp + esi + 0x14]
mov ecx, dword [esp + esi + 0x10]
push ebp
push edi
push eax
push ecx
call fcn.00460470
add esp, 0x10
add esi, 8
inc ebp
cmp esi, 0x38
jl 0x461183
cmp dword [edi + 0x10], 0x200
jle 0x46125a
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 0x461207
mov ecx, dword [esp + edx*8 + 0x14]
lea ebp, [ecx + 2]
cmp ebx, ebp
jne 0x4611fb
and esi, 0xfffffffb
jmp 0x461223
add ecx, 0xfffffffe
cmp ebx, ecx
jne 0x461223
and esi, 0xfffffff7
jmp 0x461223
cmp ebx, dword [esp + edx*8 + 0x14]
jne 0x461223
lea ebp, [ecx + 2]
cmp eax, ebp
jne 0x461219
and esi, 0xfffffffe
jmp 0x461223
add ecx, 0xfffffffe
cmp eax, ecx
jne 0x461223
and esi, 0xfffffffd
inc edx
cmp edx, 7
jb 0x4611e3
mov al, byte [esp + 0x54]
test al, 4
je 0x461238
mov eax, fcn.00458f60
jmp 0x461246
test al, 1
mov eax, 0x458cc0
jne 0x461246
mov eax, fcn.00459060
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push fcn.00460470
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 0x461267
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret