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

Disassembly:
sub esp, 0x4c
fild dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
push ebp
cdq
fidiv dword [esp + 0x58]
and edx, 7
push esi
add eax, edx
push edi
mov edi, eax
mov dword [esp + 0x40], ecx
sar edi, 3
mov eax, edi
mov ecx, dword [esp + 0x70]
xor esi, esi
mov dword [esp + 0x24], esi
fstp dword [esp + 0x38]
imul eax, dword [esp + 0x60]
fild dword [esp + 0x74]
fidiv dword [esp + 0x64]
add eax, 3
cdq
and edx, 3
add eax, edx
mov ebp, eax
mov eax, edi
sar ebp, 2
shl ebp, 2
mov dword [esp + 0x14], ebp
imul eax, ecx
fstp dword [esp + 0x34]
add eax, 3
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x74]
sar eax, 2
shl eax, 2
cmp edx, esi
mov dword [esp + 0x44], eax
jle 0x100085be
push ebx
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x24], esi
jle 0x1000859e
fild dword [esp + 0x28]
fdiv dword [esp + 0x38]
fst dword [esp + 0x6c]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
fild dword [esp + 0x24]
fdiv dword [esp + 0x3c]
fst dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
fld dword [0x10013300]
fcomp dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x40], ebx
fnstsw ax
test ah, 0x41
je 0x10008549
mov eax, dword [esp + 0x64]
add eax, 0xfffffffe
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x10008549
fld dword [esp + 0x6c]
fcomp dword [0x10013300]
fnstsw ax
test ah, 1
jne 0x10008549
mov ecx, dword [esp + 0x68]
add ecx, 0xfffffffe
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 0x41
jne 0x10008549
xor ebp, ebp
test edi, edi
mov dword [esp + 0x30], ebp
jle 0x10008579
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 1]
add ecx, 3
cmp eax, ecx
jge 0x10008505
mov esi, eax
lea edx, [eax*4]
imul esi, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ecx
lea edx, [ebx - 1]
lea eax, [ebx + 3]
cmp edx, eax
jge 0x100084e5
mov eax, edx
mov ecx, dword [esp + 0x60]
imul eax, edi
add eax, esi
add eax, ebp
mov ebp, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x20]
shl ebp, 2
sub ecx, ebp
sub ecx, ebx
lea ebp, [esp + ecx + 0x51]
mov cl, byte [eax]
add eax, edi
mov byte [edx + ebp], cl
inc edx
lea ecx, [ebx + 3]
cmp edx, ecx
jl 0x100084d2
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add edx, 4
add esi, ecx
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
jne 0x100084a6
mov esi, dword [esp + 0x34]
fild dword [esp + 0x14]
push ecx
lea edx, [esp + 0x50]
fsubr dword [esp + 0x70]
fstp dword [esp]
fild dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
fsubr dword [esp + 0x18]
fstp dword [esp]
push edx
call fcn.10007c20
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
add ecx, esi
add ecx, ebp
inc ebp
cmp ebp, edi
mov dword [esp + 0x30], ebp
mov byte [ecx + edx], al
jl 0x10008480
jmp 0x10008579
xor eax, eax
test edi, edi
jle 0x10008579
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
imul ecx, ebp
imul ebx, edi
add edx, ecx
mov ecx, dword [esp + 0x1c]
add ebx, edx
mov edx, dword [esp + 0x70]
add ecx, esi
lea ebp, [ecx + edx]
mov cl, byte [ebx + eax]
mov byte [eax + ebp], cl
inc eax
cmp eax, edi
jl 0x1000856e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x18]
inc eax
add esi, edi
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], esi
jl 0x100083f5
mov eax, dword [esp + 0x48]
xor esi, esi
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add ebx, eax
inc edx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x78]
cmp edx, ebx
mov dword [esp + 0x28], edx
jl 0x100083d0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0x1c