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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov eax, esi
push edi
mov edi, dword [esp + 0x78]
mov ebp, edi
sub ebp, dword [esp + 0x58]
movq xmm1, qword [esp + 0x78]
sbb eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, edi
sub eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, esi
sbb eax, dword [esp + 0x6c]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x20], eax
mov eax, ecx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x34], ecx
bts edx, eax
cmp eax, 0x20
movd xmm0, ecx
cmovae ebx, edx
xor edx, ebx
cmp eax, 0x40
mov eax, edx
mov dword [esp + 0x38], edx
cmovae ebx, edx
add eax, 0xffffffff
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
psrlq xmm1, xmm0
adc ecx, 0xffffffff
mov dword [esp + 0x40], eax
movd ebx, xmm1
and eax, edi
mov dword [esp + 0x44], ecx
and ecx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
cmp ebx, 0x3b9aca00
jb 0x1000489e
mov ecx, 0x3b9aca00
mov esi, 0xa
jmp 0x1000493e
cmp ebx, 0x5f5e100
jb 0x100048b5
mov ecx, 0x5f5e100
mov esi, 9
jmp 0x1000493e
cmp ebx, 0x989680
jb 0x100048c9
mov ecx, 0x989680
mov esi, 8
jmp 0x1000493e
cmp ebx, 0xf4240
jb 0x100048dd
mov ecx, 0xf4240
mov esi, 7
jmp 0x1000493e
cmp ebx, 0x186a0
jb 0x100048f1
mov ecx, 0x186a0
mov esi, 6
jmp 0x1000493e
cmp ebx, 0x2710
jb 0x10004905
mov ecx, 0x2710
mov esi, 5
jmp 0x1000493e
cmp ebx, 0x3e8
jb 0x10004919
mov ecx, 0x3e8
mov esi, 4
jmp 0x1000493e
cmp ebx, 0x64
jb 0x10004928
mov ecx, 0x64
lea esi, [ecx - 0x61]
jmp 0x1000493e
cmp ebx, 0xa
jb 0x10004937
mov ecx, 0xa
lea esi, [ecx - 8]
jmp 0x1000493e
mov ecx, 1
mov esi, ecx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
xor edx, edx
movd xmm0, dword [esp + 0x34]
mov eax, ebx
dec esi
div ecx
mov ebx, edx
add al, 0x30
mov edx, dword [edi]
mov edi, dword [esp + 0x30]
mov byte [edi + edx], al
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x58], ebx
movd xmm1, dword [esp + 0x58]
psllq xmm1, xmm0
movq xmm0, qword [esp + 0x48]
inc dword [edi]
paddq xmm1, xmm0
mov eax, dword [edi]
movq qword [esp + 0x58], xmm1
mov edx, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x28]
jb 0x10004a81
ja 0x100049a6
cmp edx, ebp
jbe 0x10004a81
mov eax, 0xcccccccd
mul ecx
mov ecx, edx
shr ecx, 3
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x10004946
neg dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov eax, ebx
mov ecx, edx
shld ecx, eax, 2
shl eax, 2
add ebx, eax
adc edx, ecx
mov ecx, dword [esp + 0x20]
shld edx, ebx, 1
add ebx, ebx
mov dword [esp + 0x24], edx
mov eax, ebx
call fcn.101423a0
mov edx, dword [esp + 0x78]
add al, 0x30
mov ecx, dword [esp + 0x30]
and ebx, dword [esp + 0x40]
inc dword [esp + 0x10]
mov byte [edx + ecx], al
mov ecx, esi
inc dword [edi]
mov eax, dword [edi]
mov edx, dword [esp + 0x24]
and edx, dword [esp + 0x44]
mov dword [esp + 0x78], 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 esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
shld ecx, eax, 2
shld esi, ebp, 1
shl eax, 2
add ebp, ebp
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 edx, esi
ja 0x100049d2
jb 0x10004a75
cmp ebx, ebp
ja 0x100049d2
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
sub dword [eax], edi
jmp 0x10004abb
movd xmm1, dword [esp + 0x10]
mov ebx, edx
movd xmm0, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
psllq xmm1, xmm0
add dword [eax], esi
mov esi, dword [esp + 0x28]
movq qword [esp + 0x78], xmm1
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x38], edi
push dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
push dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [edi]
push ebx
push esi
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x50]
call fcn.10004720
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x34