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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x80
mov dword [esp + 0x48], ecx
mov edi, edx
mov esi, eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [edi*4 + 0x100a159c]
mov ebx, edi
sub ebx, ebp
cmp ebx, 0xa
jle 0x1005d78f
mov edx, dword [ebx*4 + 0x100a159c]
test edx, edx
je 0x1005d691
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], eax
lea edx, [edx + 1]
mov dword [esp + 0x10], edx
mov eax, esi
mov edx, ebx
call fcn.1005d298
mov ecx, ebx
mov edx, 1
shl edx, cl
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xa4]
mov dword [esi + edx*4 + 0x3c], eax
push eax
mov eax, dword [esp + 0xa4]
push eax
mov ecx, dword [esp + 0x50]
push ecx
push ebp
call fcn.1005cf50
mov dword [esp + 0x40], eax
mov ecx, edi
mov ebx, 1
shl ebx, cl
mov ecx, ebp
mov edx, 1
shl edx, cl
lea ecx, [eax + ebx*8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esi + ecx*4 + 0x48], eax
mov eax, edx
shl eax, 5
add eax, dword [esp + 0xbc]
mov dword [esp + 0x60], eax
push eax
push ebp
mov dword [esp + 0x90], edx
call fcn.1005ce94
mov edx, dword [esp + 0x90]
add esp, 0x18
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x34]
sub ecx, edi
mov eax, 1
shl eax, cl
test ebp, ebp
jle 0x1005d664
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x1c], esi
xor ecx, ecx
lea edi, [ebp + edx*8]
mov dword [esp + 0x24], edi
lea edi, [edx + edx]
lea edi, [ebp + edi*8]
mov dword [esp + 0x28], edi
lea edi, [edx + edx*2]
lea ebp, [ebp + edi*8]
mov dword [esp + 0x2c], ebp
mov edi, ebx
sar edi, 1
shr edi, 0x1e
add edi, ebx
sar edi, 2
mov dword [esp + 0x70], edi
mov ebp, edi
neg ebp
imul ebp, eax
mov dword [esp + 0x58], ebp
mov ebp, eax
imul ebp, edi
mov edi, ebx
mov dword [esp + 0x60], ebp
shr edi, 0x1f
add edi, ebx
sar edi, 1
mov dword [esp + 0x64], edi
mov ebp, eax
imul ebp, edi
mov dword [esp + 0x54], ebp
neg edi
imul edi, eax
mov dword [esp + 0x40], edi
lea edi, [ebx + ebx*2]
imul ebx, eax
mov dword [esp + 0x44], ebx
mov ebp, edi
sar ebp, 1
shr ebp, 0x1e
add ebp, edi
sar ebp, 2
mov dword [esp + 0x5c], ebp
mov edi, eax
imul edi, ebp
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x34]
neg ebp
imul ebp, eax
mov dword [esp + 0x3c], ebp
mov ebx, edx
mov edx, ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x6c], eax
xor esi, esi
xor ebp, ebp
test ebx, ebx
jle 0x1005d682
mov eax, dword [esp + 0xac]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x78], ebx
xor edi, edi
mov ebx, dword [esp + 0x48]
lea edx, [eax + ebp*8]
mov dword [esp + 0x7c], edx
xor ecx, ecx
xor eax, eax
mov ebp, dword [esp + 0x70]
lea edx, [ecx + eax]
cmp edx, ebp
jg 0x1005d49c
mov ebp, dword [esp + 0x74]
lea ebp, [esi + ebp]
neg ebp
imul ebp, dword [esp + 0x6c]
imul ebp, edi
add ebp, dword [esp + 0x60]
fld dword [ebx + ebp*4]
jmp 0x1005d4f6
mov ebp, dword [esp + 0x64]
cmp edx, ebp
jg 0x1005d4bd
mov ebp, esi
imul ebp, dword [esp + 0x6c]
add ebp, dword [esp + 0x68]
imul ebp, edi
add ebp, dword [esp + 0x58]
fld dword [ebx + ebp*4]
fchs
jmp 0x1005d4f6
mov ebp, dword [esp + 0x5c]
cmp edx, ebp
jg 0x1005d4e1
mov ebp, dword [esp + 0x74]
lea ebp, [esi + ebp]
neg ebp
imul ebp, dword [esp + 0x6c]
imul ebp, edi
add ebp, dword [esp + 0x38]
fld dword [ebx + ebp*4]
fchs
jmp 0x1005d4f6
mov ebp, esi
imul ebp, dword [esp + 0x6c]
add ebp, dword [esp + 0x68]
imul ebp, edi
add ebp, dword [esp + 0x3c]
fld dword [ebx + ebp*4]
mov ebp, dword [esp + 0x7c]
fstp dword [ebp + edi*8]
mov ebp, dword [esp + 0x70]
cmp edx, ebp
jg 0x1005d51b
mov edx, esi
imul edx, dword [esp + 0x6c]
add edx, dword [esp + 0x68]
imul edx, edi
fld dword [ebx + edx*4]
fchs
jmp 0x1005d576
mov ebp, dword [esp + 0x64]
cmp edx, ebp
jg 0x1005d53f
mov edx, dword [esp + 0x74]
lea ebp, [esi + edx]
neg ebp
imul ebp, dword [esp + 0x6c]
imul ebp, edi
add ebp, dword [esp + 0x54]
fld dword [ebx + ebp*4]
fchs
jmp 0x1005d576
mov ebp, dword [esp + 0x5c]
cmp edx, ebp
jg 0x1005d55e
mov edx, esi
imul edx, dword [esp + 0x6c]
add edx, dword [esp + 0x68]
imul edx, edi
add edx, dword [esp + 0x40]
fld dword [ebx + edx*4]
jmp 0x1005d576
mov edx, dword [esp + 0x74]
lea ebp, [esi + edx]
neg ebp
imul ebp, dword [esp + 0x6c]
imul ebp, edi
add ebp, dword [esp + 0x44]
fld dword [ebx + ebp*4]
add ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
fstp dword [edx + edi*8 + 4]
add eax, esi
add edi, 1
cmp edi, ebp
jl 0x1005d477
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x50]
push eax
push ebx
push edx
call fcn.1004ee18
add esp, 0xc
add ebp, ebx
add esi, 1
cmp esi, 4
jl 0x1005d44f
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x34]
test ebx, ebx
jle 0x1005d650
mov esi, dword [esp + 0xac]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x24]
mov edi, dword [esi + ebp*8]
mov dword [eax], edi
mov edi, dword [esi + ebp*8 + 4]
mov dword [eax + 4], edi
mov edi, dword [ebx + ebp*8]
mov dword [eax + 8], edi
mov edi, dword [ebx + ebp*8 + 4]
mov dword [eax + 0xc], edi
mov edi, dword [ecx + ebp*8]
mov dword [eax + 0x10], edi
mov edi, dword [ecx + ebp*8 + 4]
mov dword [eax + 0x14], edi
mov edi, dword [edx + ebp*8]
mov dword [eax + 0x18], edi
mov edi, dword [edx + ebp*8 + 4]
mov dword [eax + 0x1c], edi
add eax, 0x20
add ebp, 1
mov edi, dword [esp + 0x78]
cmp ebp, edi
jl 0x1005d5f9
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov ebx, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
lea edx, [edx + eax*4]
add ecx, 4
cmp ecx, edi
jl 0x1005d43f
mov esi, dword [esp + 0x1c]
mov edx, ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x18]
shl edx, 5
cmp edx, ecx
jge 0x1005d674
mov edx, ecx
mov dword [esi + 0x18], edx
add esp, 0x80
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0xac]
lea edx, [eax + ebp*8]
jmp 0x1005d59b
push eax
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0xa4]
push eax
mov edx, ecx
push edx
push 0xa
call fcn.1005cf50
add esp, 0x10
mov dword [esp + 0x64], eax
mov edx, eax
mov dword [esi + 0x2c], edx
mov ecx, ebx
mov eax, 1
shl eax, cl
mov dword [esp + 0x34], eax
neg ebx
add ebx, dword [esp + 0xa0]
mov ecx, eax
sar ecx, 1
shr ecx, 0x1e
add ecx, eax
sar ecx, 2
mov dword [esp + 0x20], ecx
lea eax, [edx + ecx*8]
and eax, 0x1f
neg eax
and eax, 0x1f
lea eax, [eax + ecx*8]
add eax, edx
mov ecx, ebx
mov ebx, 1
shl ebx, cl
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
test edx, edx
jle 0x1005d783
mov ecx, ebx
mov dword [esp + 0x38], eax
imul ecx, edx
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, ebx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x28], edi
lea edx, [ecx + edx*8]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x64]
jmp 0x1005d74f
fstp dword [edx - 4]
mov edi, ebp
imul edi, eax
add eax, 0xffffffff
add edi, ebx
mov edi, dword [esi + edi*4]
mov dword [edx], edi
fld dword [ecx]
fchs
mov edi, dword [esp + 0x2c]
lea ecx, [ecx + ebp*4]
add edx, 8
cmp edx, edi
jb 0x1005d74c
fstp dword [edx - 4]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov dword [esi + 0x18], 0
jmp 0x1005d312
push eax
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0xa4]
push eax
mov edx, ecx
push edx
push ebx
call fcn.1005cf50
add esp, 0x10
mov dword [esi + 0x18], 0
mov ecx, ebx
mov edx, 1
shl edx, cl
mov dword [esp + 0x34], edx
jmp 0x1005d312