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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, eax
shr eax, 0x14
push esi
and ebp, 0xfffff
push edi
and eax, 0x7ff
je 0x1005e731
lea edi, [eax - 0x433]
mov eax, ebx
or eax, ebp
mov dword [esp + 0x28], edi
jne 0x1005e729
imul eax, edi, 0x9a209
sub eax, 0x3fe1f
sar eax, 0x15
mov dword [esp + 0x14], eax
neg eax
imul ebx, eax, 0x1a934f
push eax
lea eax, [esp + 0x44]
push eax
sar ebx, 0x13
add ebx, edi
mov dword [esp + 0x34], ebx
call fcn.10066860
movq xmm0, qword [esp + 0x50]
mov eax, 0xb
movq xmm1, qword [esp + 0x50]
sub eax, ebx
psrlq xmm0, 0x36
add esp, 8
psubq xmm1, xmm0
movd xmm0, eax
psrlq xmm1, xmm0
movq xmm0, qword [esp + 0x48]
movq qword [esp + 0x30], xmm1
movq xmm1, qword [esp + 0x48]
psrlq xmm1, 0x35
paddq xmm1, xmm0
movd xmm0, eax
psrlq xmm1, xmm0
lea eax, [edi - 2]
movq qword [esp + 0x20], xmm1
cmp eax, 1
jbe 0x1005e5e7
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
adc eax, 0
mov dword [esp + 0x10], eax
jmp 0x1005e5f7
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x20]
mov ebx, 0xcccccccd
mul ebx
lea ebp, [ebx - 1]
mov dword [esp + 0x30], eax
mov esi, edx
mov eax, dword [esp + 0x20]
mul ebp
mov edi, eax
mov ebp, edx
mov eax, dword [esp + 0x24]
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x24]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov dword [esp + 0x30], eax
adc ebx, 0
add edi, ecx
mov edi, dword [esp + 0x10]
adc ebp, 0
xor eax, eax
add ebx, ebp
mov ebp, dword [esp + 0x30]
adc eax, eax
add ebp, ebx
adc edx, eax
shrd ebp, edx, 3
shr edx, 3
mov eax, ebp
mov ecx, edx
mov dword [esp + 0x30], ebp
shld ecx, eax, 2
mov dword [esp + 0x34], edx
shl eax, 2
add ebp, eax
adc edx, ecx
shld edx, ebp, 1
add ebp, ebp
cmp edx, edi
jb 0x1005e6aa
ja 0x1005e67c
mov esi, dword [esp + 0x68]
cmp ebp, esi
jb 0x1005e6ae
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
call fcn.100670e0
add esp, 4
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax], xmm0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
mov ecx, 0xa
sub ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
call fcn.101947f0
mov ecx, eax
mov eax, dword [esp + 0x14]
add ecx, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
adc edx, 0
shrd ecx, edx, 1
shr edx, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
add eax, 0x4d
jne 0x1005e6fd
mov eax, ecx
and eax, 1
or eax, 0
je 0x1005e715
add ecx, 0xffffffff
adc edx, 0xffffffff
jmp 0x1005e70d
cmp edx, edi
ja 0x1005e715
jb 0x1005e707
cmp ecx, esi
jae 0x1005e715
add ecx, 1
adc edx, 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x64]
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax], xmm0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
or ebp, 0x100000
jmp 0x1005e75c
mov eax, ebx
or eax, ebp
jne 0x1005e757
mov eax, dword [esp + 0x64]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edi, 0xfffffbce
mov eax, ebx
and eax, 1
or eax, 0
jne 0x1005e771
mov byte [esp + 0x68], 1
mov dword [esp + 0x1c], eax
jmp 0x1005e77e
mov byte [esp + 0x68], 0
mov dword [esp + 0x1c], 1
imul eax, edi, 0x4d105
mov esi, 2
sar eax, 0x14
sub esi, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x50]
push esi
push eax
call fcn.10066860
movq xmm1, qword [esp + 0x60]
mov eax, 0x3f
imul ecx, esi, 0x1a934f
sub esp, 8
shld ebp, ebx, 1
add ebx, ebx
mov edx, ebp
mov dword [esp + 0x40], ebx
sar ecx, 0x13
add ecx, edi
sub eax, ecx
mov dword [esp + 0x3c], ecx
movd xmm0, eax
mov eax, esp
psrlq xmm1, xmm0
movups xmm0, xmmword [esp + 0x60]
movd dword [esp + 0x30], xmm1
movups xmmword [eax], xmm0
mov eax, ebx
or eax, 1
call fcn.101947d0
push edx
push eax
lea eax, [esp + 0x58]
push eax
call fcn.10067880
mov eax, dword [esp + 0x5c]
add esp, 0x1c
or eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
je 0x1005e821
mov dword [esp + 0x14], 0
push 0x20c49ba5
push 0xe353f7cf
push edx
push ecx
lea eax, [esp + 0x50]
push eax
call fcn.100677e0
mov edi, dword [esp + 0x78]
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
shrd esi, ebx, 7
imul eax, esi, 0x3e8
shr ebx, 7
mov dword [edi], esi
mov dword [edi + 4], ebx
sub ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jae 0x1005e883
test ecx, ecx
jne 0x1005e8b1
mov ecx, dword [esp + 0x14]
test dword [esp + 0x1c], ecx
je 0x1005e8b1
add esi, 0xffffffff
mov ecx, 0x3e8
adc ebx, 0xffffffff
jmp 0x1005e8d7
ja 0x1005e8d7
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x54]
push eax
add ecx, 0xffffffff
mov eax, ebp
adc eax, 0xffffffff
push eax
push ecx
call fcn.10065560
mov ecx, eax
add esp, 0x10
shr ecx, 8
and cl, byte [esp + 0x68]
or cl, al
je 0x1005e8cf
mov ecx, dword [esp + 0x28]
inc ecx
push edi
mov dword [edi + 8], ecx
call fcn.100670e0
add esp, 4
add dword [edi + 8], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
shr eax, 1
sub ecx, eax
mov dword [edi + 8], edx
add ecx, 0x32
imul edx, ecx, 0x290
mov al, cl
and al, 1
mov ecx, ebx
mov byte [esp + 0x64], al
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x68], eax
mov eax, esi
shld ecx, eax, 2
shl eax, 2
add esi, eax
adc ebx, ecx
shld ebx, esi, 1
add esi, esi
add dword [esp + 0x68], esi
mov esi, 0
adc esi, ebx
mov ebx, dword [esp + 0x68]
mov dword [edi], ebx
mov dword [edi + 4], esi
cmp dx, 0x290
jae 0x1005e974
push dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
push ebp
push dword [esp + 0x3c]
call fcn.10065560
mov cx, ax
add esp, 0x10
shr cx, 8
movzx edx, cx
cmp al, byte [esp + 0x64]
jne 0x1005e969
mov eax, ebx
and eax, 1
or eax, 0
je 0x1005e963
mov ecx, 1
jmp 0x1005e965
xor ecx, ecx
test ecx, edx
je 0x1005e974
add ebx, 0xffffffff
mov dword [edi], ebx
adc esi, 0xffffffff
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret