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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebx, edx
movq xmm1, qword [esp + 0x88]
mov edx, dword [esp + 0x88]
mov ebp, edx
sub ebp, dword [esp + 0x68]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x8c]
mov eax, ecx
sbb eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, edx
sub eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, ecx
sbb eax, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x94]
neg esi
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x40], ebp
push edi
xor edi, edi
mov dword [esp + 0x28], esi
bts edi, eax
movd xmm0, esi
xor ebp, ebp
cmp eax, 0x20
psrlq xmm1, xmm0
cmovae ebp, edi
xor edi, ebp
cmp eax, 0x40
mov dword [esp + 0x2c], edi
mov eax, ebp
mov ebp, dword [esp + 0x2c]
cmovae eax, edi
add ebp, 0xffffffff
mov dword [esp + 0x24], eax
mov esi, eax
movd edi, xmm1
adc esi, 0xffffffff
mov dword [esp + 0x50], ebp
mov eax, ebp
mov dword [esp + 0x54], esi
and eax, edx
mov edx, esi
and edx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp edi, 0x3b9aca00
jb 0x4118b1
mov ecx, 0x3b9aca00
mov esi, 0xa
jmp 0x411951
cmp edi, 0x5f5e100
jb 0x4118c8
mov ecx, 0x5f5e100
mov esi, 9
jmp 0x411951
cmp edi, 0x989680
jb 0x4118dc
mov ecx, 0x989680
mov esi, 8
jmp 0x411951
cmp edi, 0xf4240
jb 0x4118f0
mov ecx, 0xf4240
mov esi, 7
jmp 0x411951
cmp edi, 0x186a0
jb 0x411904
mov ecx, 0x186a0
mov esi, 6
jmp 0x411951
cmp edi, 0x2710
jb 0x411918
mov ecx, 0x2710
mov esi, 5
jmp 0x411951
cmp edi, 0x3e8
jb 0x41192c
mov ecx, 0x3e8
mov esi, 4
jmp 0x411951
cmp edi, 0x64
jb 0x41193b
mov ecx, 0x64
lea esi, [ecx - 0x61]
jmp 0x411951
cmp edi, 0xa
jb 0x41194a
mov ecx, 0xa
lea esi, [ecx - 8]
jmp 0x411951
mov ecx, 1
mov esi, ecx
mov dword [esp + 0x10], ecx
xor edx, edx
movd xmm0, dword [esp + 0x28]
mov eax, edi
mov ebp, dword [esp + 0x1c]
div ecx
dec esi
mov edi, edx
add al, 0x30
mov edx, dword [ebx]
mov dword [esp + 0x60], edi
movd xmm1, dword [esp + 0x60]
psllq xmm1, xmm0
movq xmm0, qword [esp + 0x38]
mov byte [edx + ebp], al
paddq xmm1, xmm0
inc dword [ebx]
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x44]
movq qword [esp + 0x58], xmm1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x5c], edx
jb 0x411a95
ja 0x4119b5
cmp eax, ebp
jbe 0x411a95
mov eax, 0xcccccccd
mul ecx
mov ecx, edx
shr ecx, 3
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x411955
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x10], 0
nop dword [eax]
mov eax, esi
mov ecx, edi
shld ecx, eax, 2
shl eax, 2
add esi, eax
adc edi, ecx
mov ecx, dword [esp + 0x28]
shld edi, esi, 1
add esi, esi
mov edx, edi
mov eax, esi
call fcn.005349c0
mov edx, dword [esp + 0x30]
add al, 0x30
mov ecx, dword [esp + 0x1c]
and esi, dword [esp + 0x50]
and edi, dword [esp + 0x54]
inc dword [esp + 0x10]
mov byte [edx + ecx], al
inc dword [ebx]
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ecx, edx
mov dword [esp + 0x30], eax
mov eax, ebp
shld ecx, eax, 2
shl eax, 2
add ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
adc edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
shld ecx, eax, 2
shld edx, ebp, 1
shl eax, 2
add ebp, ebp
mov dword [esp + 0x20], edx
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
adc eax, ecx
mov ecx, dword [esp + 0x14]
shld eax, ecx, 1
add ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp edi, edx
ja 0x4119e0
jb 0x411a85
cmp esi, ebp
ja 0x4119e0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
sub dword [ecx], edx
mov edx, dword [esp + 0x20]
jmp 0x411adb
mov ecx, dword [esp + 0x34]
movd xmm1, dword [esp + 0x10]
movd xmm0, dword [esp + 0x28]
mov edi, dword [esp + 0x5c]
add dword [ecx], esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
psllq xmm1, xmm0
mov dword [esp + 0x18], esi
mov esi, eax
movq qword [esp + 0x38], xmm1
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x30]
push edi
push esi
push edx
mov edx, dword [ebx]
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00411720
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret