Function at 0x1000bd40
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 0x1000bfae
push ebx
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x24], esi
jle 0x1000bf8e
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 [0x100215a0]
fcomp dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x40], ebx
fnstsw ax
test ah, 0x41
je 0x1000bf39
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 0x1000bf39
fld dword [esp + 0x6c]
fcomp dword [0x100215a0]
fnstsw ax
test ah, 1
jne 0x1000bf39
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 0x1000bf39
xor ebp, ebp
test edi, edi
mov dword [esp + 0x30], ebp
jle 0x1000bf69
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 1]
add ecx, 3
cmp eax, ecx
jge 0x1000bef5
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 0x1000bed5
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 0x1000bec2
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 0x1000be96
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.1000b610
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 0x1000be70
jmp 0x1000bf69
xor eax, eax
test edi, edi
jle 0x1000bf69
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 0x1000bf5e
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 0x1000bde5
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 0x1000bdc0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0x1c