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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x60]
add eax, 0xf
mov ecx, dword [esp + 0x54]
cdq
and edx, 0xf
xor ebp, ebp
add eax, edx
mov edx, dword [esp + 0x58]
sar eax, 4
mov dword [esp + 0x2c], eax
lea eax, [ecx - 1]
dec edx
mov esi, dword [esp + 0x48]
imul eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov ecx, dword [eax]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
push ecx
push eax
mov dword [eax], ebx
mov dword [eax + 4], edi
lea edx, [esp + 0x3c]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.1002d1b0
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov ecx, eax
add esp, 0x10
imul ecx, dword [esp + 0x58]
cmp ecx, edx
jl 0x1002d00d
mov ecx, dword [esp + 0x4c]
push ebx
push edi
sub esp, 0x10
mov edx, esp
push esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
push ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 0xc], eax
call fcn.1002d130
mov dword [esp + 0x40], eax
add esp, 0x20
fild dword [esp + 0x20]
fld qword [esi]
fmul qword [0x1008d6a8]
fcompp
fnstsw ax
test ah, 0x41
je 0x1002d017
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1002cd57
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
push ebx
mov dword [esp + 0x14], eax
lea edx, [edi + eax]
push edx
mov edx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0xc]
push eax
call fcn.1002d130
add esp, 0x20
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x10]
mov ecx, edi
mov eax, dword [esp + 0x4c]
sub ecx, edx
push ebx
push ecx
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov edx, esp
push esi
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0xc]
push edx
call fcn.1002d130
mov ecx, dword [esp + 0x38]
add esp, 0x20
cmp eax, ecx
jge 0x1002cda4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
neg eax
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0x1002cde2
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
lea ecx, [ebx + ebp]
push ecx
push edi
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov edx, esp
push esi
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0xc]
push edx
call fcn.1002d130
add esp, 0x20
mov dword [esp + 0x14], eax
mov eax, ebx
mov edx, dword [esp + 0x4c]
sub eax, ebp
push eax
push edi
mov eax, dword [esp + 0x58]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xc]
push ecx
call fcn.1002d130
mov ecx, dword [esp + 0x34]
add esp, 0x20
cmp eax, ecx
jge 0x1002ce23
mov dword [esp + 0x14], eax
neg ebp
mov eax, dword [esp + 0x10]
lea edx, [ebp + ebx]
add eax, edi
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xc]
push ecx
call fcn.1002d130
mov ecx, dword [esp + 0x40]
add esp, 0x20
cmp ecx, eax
mov dword [esp + 0x24], eax
jge 0x1002ce6a
mov eax, ecx
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x14], edx
jge 0x1002ce78
mov edx, dword [esp + 0x14]
cmp eax, edx
jle 0x1002ce7e
mov eax, edx
cmp ecx, eax
je 0x1002d017
cmp dword [esp + 0x18], eax
jne 0x1002cf13
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
mov edx, dword [esp + 0x64]
push eax
push ebx
push edi
mov eax, dword [esp + 0x74]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.1002d030
mov ecx, dword [esp + 0x54]
mov edx, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x48]
imul edx, ecx
add edi, edx
mov edx, dword [esp + 0x80]
imul edx, ecx
add esp, 0x38
cmp eax, 1
mov dword [esp + 0x10], edx
jne 0x1002cf0c
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x1002cc91
xor ebp, ebp
jmp 0x1002cc91
mov edx, dword [esp + 0x14]
cmp edx, eax
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x30]
push edx
push eax
push ecx
push ebp
jne 0x1002cf98
mov ecx, dword [esp + 0x64]
push 0
push ebx
push edi
mov edx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.1002d030
mov ecx, dword [esp + 0x54]
mov edx, eax
imul edx, ebp
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x80]
add esp, 0x38
add ebx, edx
imul ebp, ecx
cmp eax, 1
jne 0x1002cf8b
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
jmp 0x1002cc91
mov dword [esp + 0x10], 0
jmp 0x1002cc91
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x64]
push eax
push ebx
push edi
mov eax, dword [esp + 0x74]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.1002d030
mov ecx, dword [esp + 0x48]
mov edx, eax
imul edx, ecx
add edi, edx
mov edx, eax
imul edx, ebp
add esp, 0x38
add ebx, edx
cmp eax, 1
jne 0x1002d002
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
neg ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
neg ebp
jmp 0x1002cc91
xor ebp, ebp
mov dword [esp + 0x10], ebp
jmp 0x1002cc91
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x5c]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret