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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffffe
lea edx, [edi*4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], 0
test eax, eax
jle 0x100400ed
lea edx, [esi + esi*2]
add edx, edx
add edx, edx
mov dword [esp + 0x58], edx
lea eax, [esi*8]
lea edx, [eax + ebx]
mov dword [esp + 0x28], edx
lea edx, [ebx + eax*2]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x58]
sub edx, eax
mov dword [esp + 0x60], edx
lea edx, [esi*4]
sub edx, eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x74]
lea edx, [edx - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x6c]
fld qword [eax]
mov edx, dword [esp + 0x54]
fstp dword [esp + 0x48]
fld qword [eax + 8]
fstp dword [esp + 0x44]
fld qword [eax + 0x10]
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x40]
fld dword [ebx]
fstp dword [esp + 0x18]
fld dword [edx + eax]
xor edx, edx
fstp dword [esp + 0x1c]
mov dword [esp + 0x24], edx
fld dword [ecx]
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
fld dword [esp + 0x44]
fld dword [esp + 0x40]
cmp ebp, 4
jl 0x10040020
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x34], edx
lea edx, [edi + edi*2]
lea edx, [ecx + edx*4]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x4c]
add ebx, edx
mov dword [esp + 0x38], ebx
lea ebx, [ecx + edi*8]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x20]
add ebx, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x54]
add ebx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x24]
lea edx, [ebp - 4]
mov eax, edi
shr edx, 2
shl eax, 4
shl esi, 4
sub ebx, ecx
inc edx
lea ebp, [edx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], ebp
fld dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
fmul st(3)
fadd dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [ebp]
mov ebp, dword [esp + 0x3c]
fstp dword [esp + 0x18]
fld dword [ebx + ebp]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(0)
fmul st(3)
fadd dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(0)
fmul st(4)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fstp dword [ebp]
mov ebp, dword [esp + 0x30]
fld dword [esp + 0x18]
fmul st(3)
fadd dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [ebp]
mov ebp, dword [esp + 0x40]
fstp dword [esp + 0x18]
fld dword [ebx + ebp]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(0)
fmul st(3)
fadd dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(0)
fmul st(4)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fstp dword [ebp]
mov ebp, dword [esp + 0x2c]
fld dword [esp + 0x18]
fmul st(3)
fadd dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [ebp]
mov ebp, dword [esp + 0x44]
fstp dword [esp + 0x18]
fld dword [ebx + ebp]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(0)
fmul st(3)
fadd dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(0)
fmul st(4)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fstp dword [ebp]
fld dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
fmul st(3)
add dword [esp + 0x34], esi
add dword [esp + 0x30], esi
add dword [esp + 0x2c], esi
fadd dword [esp + 0x14]
add dword [esp + 0x38], esi
add dword [esp + 0x3c], eax
add dword [esp + 0x40], eax
fstp dword [esp + 0x10]
add dword [esp + 0x44], eax
fld dword [ebp]
mov ebp, dword [esp + 0x48]
fstp dword [esp + 0x18]
add dword [esp + 0x48], eax
dec edx
fld dword [ebx + ebp]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(0)
fmul st(3)
fadd dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(0)
fmul st(4)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fstp dword [ebp]
jne 0x1003fe85
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
cmp edx, ebp
jge 0x100400c2
mov ebx, dword [esp + 0x28]
mov eax, edx
imul edx, esi
lea edx, [ebx + edx*4]
imul eax, edi
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x44]
add edx, ecx
sub edx, ecx
mov dword [esp + 0x40], edx
mov edx, ebp
sub edx, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov dword [esp + 0x48], edx
fld dword [esp + 0x18]
mov edx, dword [esp + 0x40]
fmul st(3)
fadd dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [ebx]
fstp dword [esp + 0x18]
fld dword [eax + edx]
lea edx, [esi*4]
fstp dword [esp + 0x14]
add ebx, edx
fld dword [esp + 0x1c]
fld st(0)
fmul st(3)
fadd dword [esp + 0x10]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fld dword [esp + 0x18]
fld st(0)
fmul st(4)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fstp dword [eax]
add eax, dword [esp + 0x20]
dec dword [esp + 0x48]
jne 0x10040058
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x58]
fstp st(2)
add dword [esp + 0x28], eax
fstp st(0)
add dword [esp + 0x4c], eax
fstp st(0)
add dword [esp + 0x6c], 0x18
add ebx, eax
dec dword [esp + 0x5c]
mov dword [esp + 0x68], ebx
jne 0x1003fdd0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
dec eax
cmp dword [esp + 0x50], eax
jge 0x1004035b
lea eax, [ebx + esi*8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
fld qword [eax]
fstp dword [esp + 0x74]
fld qword [eax + 8]
lea eax, [esi*4]
fstp dword [esp + 0x60]
mov dword [esp + 0x28], eax
fld dword [ebx]
fstp dword [esp + 0x18]
fld dword [eax + ebx]
xor ebx, ebx
fstp dword [esp + 0x14]
fld dword [ecx]
fstp dword [esp + 0x1c]
fld dword [esp + 0x74]
fld dword [esp + 0x60]
cmp ebp, 4
jl 0x100402f2
mov ebx, dword [esp + 0x58]
lea ebp, [edi + edi*2]
lea ebp, [ecx + ebp*4]
mov dword [esp + 0x34], ebp
lea ebp, [esi + esi*2]
lea ebp, [ebx + ebp*4]
mov dword [esp + 0x40], ebp
lea ebp, [ecx + edi*8]
mov dword [esp + 0x30], ebp
lea ebp, [ebx + esi*8]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x20]
add ebp, ecx
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x28]
add ebp, ebx
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x70]
add ebp, 0xfffffffc
shr ebp, 2
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x20]
inc ebp
add ebx, ecx
mov dword [esp + 0x5c], ebp
mov eax, edi
mov edx, esi
add ebp, ebp
shl eax, 4
shl edx, 4
sub ebx, ecx
add ebp, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ebp
fld dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
fmul st(2)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x74]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x4c]
fstp dword [esp + 0x1c]
add dword [esp + 0x4c], edx
fld dword [esp + 0x14]
fld st(0)
fmul st(2)
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fstp dword [esp + 0x18]
fld dword [ebp]
mov ebp, dword [esp + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fstp dword [ebp]
mov ebp, dword [esp + 0x2c]
fld dword [esp + 0x18]
fmul st(2)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x74]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x48]
fstp dword [esp + 0x1c]
add dword [esp + 0x48], edx
fld dword [esp + 0x14]
fld st(0)
fmul st(2)
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fstp dword [esp + 0x18]
fld dword [ebp]
mov ebp, dword [esp + 0x2c]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fstp dword [ebp]
mov ebp, dword [esp + 0x30]
fld dword [esp + 0x18]
fmul st(2)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x74]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x44]
fstp dword [esp + 0x1c]
add dword [esp + 0x44], edx
fld dword [esp + 0x14]
fld st(0)
fmul st(2)
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fstp dword [esp + 0x18]
fld dword [ebp]
mov ebp, dword [esp + 0x30]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fstp dword [ebp]
mov ebp, dword [esp + 0x34]
fld dword [esp + 0x18]
fmul st(2)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x74]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x40]
add dword [esp + 0x40], edx
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
add dword [esp + 0x10], eax
fld st(0)
fmul st(2)
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fstp dword [esp + 0x18]
fld dword [ebp]
mov ebp, dword [esp + 0x34]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fstp dword [ebp]
add dword [esp + 0x2c], eax
add dword [esp + 0x30], eax
add dword [esp + 0x34], eax
dec dword [esp + 0x5c]
jne 0x100401b0
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp ebx, ebp
jge 0x1004034f
mov eax, ebx
imul eax, edi
mov edi, ebx
imul edi, esi
mov esi, dword [esp + 0x58]
lea esi, [esi + edi*4]
lea edi, [edx + ecx]
sub edi, ecx
lea eax, [ecx + eax*4]
sub ebp, ebx
fld dword [esp + 0x18]
fmul st(2)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x74]
fld dword [edi + eax]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fld st(0)
fmul st(2)
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fstp dword [esp + 0x18]
fld dword [esi]
add esi, dword [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fstp dword [eax]
add eax, edx
dec ebp
jne 0x10040311
fstp st(1)
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x50], eax
jge 0x10040353
lea eax, [ebx + esi*8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
fld qword [eax]
lea eax, [esi*4]
fstp dword [esp + 0x60]
mov dword [esp + 0x28], eax
fld dword [ebx]
fstp dword [esp + 0x1c]
fld dword [eax + ebx]
xor ebx, ebx
fstp dword [esp + 0x18]
fld dword [ecx]
fstp dword [esp + 0x74]
fld dword [esp + 0x60]
cmp ebp, 4
jl 0x10040520
mov ebx, dword [esp + 0x58]
lea ebp, [edi + edi*2]
lea ebp, [ecx + ebp*4]
mov dword [esp + 0x10], ebp
lea ebp, [esi + esi*2]
lea ebp, [ebx + ebp*4]
mov dword [esp + 0x44], ebp
lea ebp, [ecx + edi*8]
mov dword [esp + 0x2c], ebp
lea ebp, [ebx + esi*8]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x20]
add ebp, ecx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x28]
add ebp, ebx
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x70]
add ebp, 0xfffffffc
shr ebp, 2
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x20]
inc ebp
add ebx, ecx
mov dword [esp + 0x5c], ebp
mov eax, edi
mov edx, esi
add ebp, ebp
shl eax, 4
shl edx, 4
sub ebx, ecx
add ebp, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ebp
fld dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
fmul st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x50]
fstp dword [esp + 0x74]
add dword [esp + 0x50], edx
fld dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [ebp]
mov ebp, dword [esp + 0x34]
fstp dword [esp + 0x18]
add dword [esp + 0x34], eax
fld dword [esp + 0x14]
fstp dword [ebp]
mov ebp, dword [esp + 0x30]
fld dword [esp + 0x1c]
fmul st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x4c]
fstp dword [esp + 0x74]
add dword [esp + 0x4c], edx
fld dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [ebp]
mov ebp, dword [esp + 0x30]
fstp dword [esp + 0x18]
add dword [esp + 0x30], eax
fld dword [esp + 0x14]
fstp dword [ebp]
mov ebp, dword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x48]
fstp dword [esp + 0x74]
add dword [esp + 0x48], edx
fld dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [ebp]
mov ebp, dword [esp + 0x2c]
fstp dword [esp + 0x18]
add dword [esp + 0x2c], eax
fld dword [esp + 0x14]
fstp dword [ebp]
mov ebp, dword [esp + 0x10]
fld dword [esp + 0x1c]
fmul st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [ebx + ebp]
mov ebp, dword [esp + 0x44]
add dword [esp + 0x44], edx
fstp dword [esp + 0x74]
fld dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [ebp]
mov ebp, dword [esp + 0x10]
add dword [esp + 0x10], eax
fstp dword [esp + 0x18]
dec dword [esp + 0x5c]
fld dword [esp + 0x14]
fstp dword [ebp]
jne 0x1004040e
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp ebx, ebp
jge 0x10040351
mov eax, ebx
imul eax, edi
mov edi, ebx
imul edi, esi
mov esi, dword [esp + 0x58]
lea esi, [esi + edi*4]
lea edi, [edx + ecx]
sub edi, ecx
lea eax, [ecx + eax*4]
sub ebp, ebx
fld dword [esp + 0x1c]
fmul st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [edi + eax]
fstp dword [esp + 0x74]
fld dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esi]
add esi, dword [esp + 0x28]
fstp dword [esp + 0x18]
fld dword [esp + 0x14]
fstp dword [eax]
add eax, edx
dec ebp
jne 0x10040543
pop edi
fstp st(0)
pop esi
pop ebp
pop ebx
add esp, 0x54
ret