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

Disassembly:
sub esp, 0x38
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, ecx
push ebx
mov ebx, edx
movq xmm1, qword [esp + 0x6c]
sub ebx, dword [esp + 0x4c]
push ebp
sbb eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, edx
sub eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, ecx
sbb eax, dword [esp + 0x64]
xor ebp, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
push esi
mov esi, eax
mov dword [esp + 0x20], eax
neg esi
mov eax, esi
mov dword [esp + 0x28], esi
push edi
xor edi, edi
bts edi, eax
movd xmm0, esi
cmp eax, 0x20
psrlq xmm1, xmm0
cmovae ebp, edi
xor edi, ebp
cmp eax, 0x40
mov dword [esp + 0x28], edi
mov eax, ebp
mov ebp, dword [esp + 0x28]
cmovae eax, edi
add ebp, 0xffffffff
mov dword [esp + 0x20], eax
mov esi, eax
movd edi, xmm1
adc esi, 0xffffffff
mov dword [esp + 0x38], ebp
mov eax, ebp
mov dword [esp + 0x3c], esi
and eax, edx
mov edx, esi
and edx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
cmp edi, 0x3b9aca00
jb 0x40c3a9
mov ecx, 0x3b9aca00
mov esi, 0xa
jmp 0x40c449
cmp edi, 0x5f5e100
jb 0x40c3c0
mov ecx, 0x5f5e100
mov esi, 9
jmp 0x40c449
cmp edi, 0x989680
jb 0x40c3d4
mov ecx, 0x989680
mov esi, 8
jmp 0x40c449
cmp edi, 0xf4240
jb 0x40c3e8
mov ecx, 0xf4240
mov esi, 7
jmp 0x40c449
cmp edi, 0x186a0
jb 0x40c3fc
mov ecx, 0x186a0
mov esi, 6
jmp 0x40c449
cmp edi, 0x2710
jb 0x40c410
mov ecx, 0x2710
mov esi, 5
jmp 0x40c449
cmp edi, 0x3e8
jb 0x40c424
mov ecx, 0x3e8
mov esi, 4
jmp 0x40c449
cmp edi, 0x64
jb 0x40c433
mov ecx, 0x64
lea esi, [ecx - 0x61]
jmp 0x40c449
cmp edi, 0xa
jb 0x40c442
mov ecx, 0xa
lea esi, [ecx - 8]
jmp 0x40c449
mov ecx, 1
mov esi, ecx
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
xor edx, edx
movd xmm0, dword [esp + 0x2c]
mov eax, edi
dec esi
div ecx
mov edi, edx
add al, 0x30
mov edx, dword [ebp]
mov ebp, dword [esp + 0x4c]
mov byte [edx + ebp], al
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], edi
movd xmm1, dword [esp + 0x58]
inc dword [ebp]
mov eax, dword [ebp]
psllq xmm1, xmm0
movq xmm0, qword [esp + 0x40]
paddq xmm1, xmm0
mov dword [esp + 0x78], eax
movq qword [esp + 0x58], xmm1
cmp dword [esp + 0x5c], edx
jb 0x40c597
ja 0x40c4b2
cmp dword [esp + 0x58], ebx
jbe 0x40c597
mov eax, 0xcccccccd
mul ecx
mov ecx, edx
shr ecx, 3
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x40c451
neg dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], 0
nop word [eax + eax]
mov eax, esi
mov ecx, edi
shld ecx, eax, 2
shl eax, 2
add esi, eax
adc edi, ecx
mov ecx, dword [esp + 0x24]
shld edi, esi, 1
add esi, esi
mov edx, edi
mov eax, esi
call fcn.00448260
mov edx, dword [esp + 0x78]
add al, 0x30
mov ecx, dword [esp + 0x4c]
and esi, dword [esp + 0x38]
and edi, dword [esp + 0x3c]
inc dword [esp + 0x10]
mov byte [edx + ecx], al
inc dword [ebp]
mov eax, dword [ebp]
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov dword [esp + 0x78], eax
mov eax, ebx
shld ecx, eax, 2
shl eax, 2
add ebx, 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, ebx, 1
shl eax, 2
add ebx, ebx
mov dword [esp + 0x1c], 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 0x40c4e0
jb 0x40c587
cmp esi, ebx
ja 0x40c4e0
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
sub dword [eax], edx
mov edx, dword [esp + 0x1c]
jmp 0x40c5d3
movd xmm1, dword [esp + 0x10]
movd xmm0, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
psllq xmm1, xmm0
add dword [eax], esi
mov esi, dword [esp + 0x58]
movq qword [esp + 0x78], xmm1
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x50]
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push edi
push esi
push edx
push ebx
push eax
mov eax, dword [ebp]
push ecx
push eax
push dword [esp + 0x70]
call fcn.0040c600
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret