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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov ecx, dword [ebp + 0x10]
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
mov ebx, 1
mov eax, 0x2aaaaaab
jge 0x10003d05
imul esi
jmp 0x10003d07
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jle 0x10003d23
sar eax, 1
add ebx, ebx
cmp eax, 1
jg 0x10003d15
cmp ebx, 2
jge 0x10003d37
mov eax, dword [ebp + 8]
fld qword [0x757f090]
fstp qword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
imul ecx, ebx
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x60], eax
call fcn.10018430
mov dword [esp + 0x38], eax
lea ecx, [esi*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
lea edi, [ebx*4]
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + edi - 1]
cdq
idiv edi
mov edx, dword [ebp + 0x10]
add edx, edx
add edx, edx
add edx, edx
add esp, 4
mov dword [esp + 0x70], edi
mov esi, eax
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x6c], eax
lea eax, [eax + edi - 1]
cdq
idiv edi
cmp esi, 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x3c], eax
jle 0x100042ec
cmp eax, 1
jle 0x100042ec
test esi, esi
jle 0x1000422f
lea edx, [esi - 1]
mov dword [esp + 0x84], edx
mov eax, 0x66666667
imul dword [ebp + 0xc]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x60], esi
mov edi, edi
mov eax, dword [esp + 0x4c]
cdq
idiv dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
lea eax, [eax + ecx + 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x64], eax
jle 0x1000421c
mov ecx, dword [esp + 0x44]
imul ecx, dword [esp + 0x40]
mov eax, 0x66666667
imul dword [ebp + 0x10]
mov eax, dword [esp + 0x6c]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x3c]
sub eax, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x58], edx
jmp 0x10003e90
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x74]
lea esp, [esp]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
cdq
add edi, 0xffffffff
idiv edi
mov edi, dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
add edx, esi
mov esi, ecx
shr ecx, 2
mov dword [esp + 0x38], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x10003f52
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x34]
imul edx, edi
add edx, dword [esp + 0x64]
mov dword [esp + 0x20], eax
add edx, dword [ebp + 0x18]
mov esi, edx
mov dword [esp + 0x1c], esi
lea ecx, [ecx]
mov dword [esp + 0x14], 4
xor eax, eax
cmp dword [esp + 0x5c], eax
jle 0x10003f2f
mov dl, byte [eax + esi]
add eax, 1
and edx, 0xf
movzx edx, byte [edx*4 + 0x7581100]
add byte [ecx + eax*2 - 1], dl
movzx edx, byte [eax + esi - 1]
shr edx, 4
movzx edx, byte [edx*4 + 0x7581100]
add byte [ecx + eax*2 - 2], dl
cmp eax, dword [esp + 0x5c]
jl 0x10003f00
add esi, edi
sub dword [esp + 0x14], 1
jne 0x10003ef8
mov esi, dword [esp + 0x1c]
lea eax, [edi*4]
add esi, eax
add ecx, ebx
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], esi
jne 0x10003ef0
cmp dword [esp + 0x44], 8
fld qword [0x757f070]
fstp qword [esp + 0x50]
fld qword [0x757f088]
fstp qword [esp + 0x90]
jle 0x100041ad
mov ecx, dword [esp + 0x38]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
jle 0x10003fdc
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x30]
cmp edi, 1
jle 0x10003fcf
mov esi, dword [esp + 0x14]
add edi, 0xffffffff
movzx ecx, byte [esi - 1]
movzx edx, byte [esi]
sub edx, ecx
push edx
call fcn.10018409
add dword [esp + 0x24], eax
add esp, 4
add esi, 1
sub edi, 1
jne 0x10003fa5
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x14], ebx
sub dword [esp + 0x18], 1
jne 0x10003f95
jmp 0x10003fe0
mov edi, dword [esp + 0x30]
cmp ecx, 1
jle 0x10004055
mov eax, dword [esp + 0x34]
lea edx, [eax + ebx]
mov dword [esp + 0x14], edx
lea edx, [ecx - 1]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jmp 0x10004000
test edi, edi
jle 0x10004040
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov esi, eax
mov edi, edi
movzx eax, byte [edi]
movzx ecx, byte [esi]
sub eax, ecx
push eax
call fcn.10018409
add dword [esp + 0x20], eax
add esp, 4
add esi, 1
add edi, 1
sub ebx, 1
jne 0x10004010
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], ebx
add eax, ebx
sub dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
jne 0x10004000
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x20]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fld st(1)
fadd st(0), st(0)
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x100041c8
fld st(0)
fadd st(1)
fcomp st(2)
fnstsw ax
test ah, 5
jnp 0x100041e2
fld qword [esp + 0x50]
fmul st(1)
fld st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x100040d3
fxch st(1)
neg esi
fdiv st(1)
shl esi, 4
mov edx, ecx
mov dword [esp + 0x10], esi
fstp qword [esp + 0x50]
imul edx, edi
fstp st(0)
fild dword [esp + 0x10]
fld qword [esp + 0x50]
fsub qword [0x757f070]
mov dword [esp + 0x10], edx
fmulp st(1)
fild dword [esp + 0x10]
fdivp st(1)
fstp qword [esp + 0x90]
jmp 0x1000411f
fld st(1)
fmul qword [esp + 0x50]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x1000411b
fdiv st(1)
shl edx, 4
mov eax, ecx
mov dword [esp + 0x10], edx
fstp qword [esp + 0x50]
imul eax, edi
fstp st(0)
fild dword [esp + 0x10]
fld qword [esp + 0x50]
fsub qword [0x757f070]
mov dword [esp + 0x10], eax
fmulp st(1)
fild dword [esp + 0x10]
fdivp st(1)
fstp qword [esp + 0x90]
jmp 0x1000411f
fstp st(0)
fstp st(0)
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
jle 0x100041a4
mov ecx, dword [esp + 0x34]
mov esi, ecx
add ecx, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test edi, edi
jle 0x10004186
movzx eax, byte [ebx + ecx]
movzx edx, byte [ebx + ecx - 1]
add edx, eax
movzx eax, byte [ecx - 1]
add edx, eax
movzx eax, byte [ecx]
lea eax, [edx + eax + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi], al
add ecx, 2
add esi, 1
sub edi, 1
jne 0x10004154
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
add esi, ebx
add ecx, eax
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
jne 0x10004150
cmp edi, 8
jg 0x10003f74
fld qword [esp + 0x90]
call fcn.10001036
add dword [esp + 0x2c], eax
test eax, eax
jle 0x100041fe
add dword [esp + 0x24], 1
jmp 0x10004205
imul ecx, edi
fstp st(0)
fstp st(0)
mov eax, edx
shl eax, 4
cdq
idiv ecx
add dword [esp + 0x2c], eax
add dword [esp + 0x24], 2
jmp 0x10004205
imul ecx, edi
fstp st(0)
fstp st(0)
mov eax, esi
neg eax
shl eax, 4
cdq
idiv ecx
add dword [esp + 0x2c], eax
add dword [esp + 0x28], 2
jmp 0x10004205
jge 0x10004205
add dword [esp + 0x28], 1
mov ecx, dword [esp + 0x68]
add dword [esp + 0x48], ecx
sub dword [esp + 0x58], 1
jne 0x10003e81
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
add dword [esp + 0x4c], edx
sub dword [esp + 0x60], 1
jne 0x10003e10
mov eax, dword [esp + 0x34]
push eax
call fcn.10018490
add esp, 4
cmp dword [esp + 0x2c], 0
jge 0x1000425a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov ecx, 1
jmp 0x1000425c
xor ecx, ecx
fild dword [esp + 0x24]
mov edx, dword [ebp + 8]
fild dword [esp + 0x28]
fmul qword [0x757f090]
fsubp st(1)
fld st(0)
fstp qword [edx]
fild dword [esp + 0x3c]
fimul dword [esp + 0x80]
fmul qword [0x757f080]
fld qword [0x757f088]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x100042b9
fdivp st(1)
fcom qword [0x757f070]
fst qword [edx]
fnstsw ax
test ah, 0x41
jne 0x100042ce
fstp st(0)
mov eax, ecx
fld qword [0x757f070]
fstp qword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov eax, ecx
fstp st(0)
fld qword [0x757f090]
fstp qword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fcomp qword [0x757f090]
fnstsw ax
test ah, 5
jp 0x100042e3
fld qword [0x757f090]
fstp qword [edx]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [0x757f090]
mov edx, dword [ebp + 8]
pop edi
fstp qword [edx]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret