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

Disassembly:
sub esp, 0x4c
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov ebx, eax
push esi
add ebp, 1
mov dword [esp + 0x1c], eax
push edi
adc ecx, 0
mov dword [esp + 0x14], 1
mov edi, ebp
mov dword [esp + 0x18], ecx
sub edi, dword [esp + 0x60]
mov esi, ecx
mov dword [esp + 0x10], 0
sbb esi, dword [esp + 0x64]
add edi, 1
mov dword [esp + 0x34], ebp
adc esi, 0
neg ebx
xor edx, edx
mov dword [esp + 0x1c], esi
mov eax, ebx
mov dword [esp + 0x30], ebx
bts edx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
mov eax, esi
mov dword [esp + 0x38], edx
cmovae eax, edx
mov edx, ecx
mov dword [esp + 0x24], eax
mov ecx, ebx
mov eax, ebp
call fcn.101b0c20
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x38]
add eax, 0xffffffff
mov dword [esp + 0x28], ecx
mov ebx, eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
adc edx, 0xffffffff
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x54], edx
and edx, dword [esp + 0x1c]
and ebx, ebp
push eax
mov eax, dword [esp + 0x28]
add eax, 0x40
mov dword [esp + 0x34], edx
push eax
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edx
call fcn.1014a6f0
mov ecx, dword [esp + 0xac]
add esp, 0x10
mov ebp, dword [esp + 0x98]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [ebp], 0
cmp dword [ecx], 0
jle 0x1014b2f6
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
xor edx, edx
div esi
mov ecx, dword [esp + 0x90]
movd xmm0, dword [esp + 0x30]
add al, 0x30
mov dword [esp + 0x28], edx
mov edx, dword [ebp]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x9c]
inc dword [ebp]
mov dword [esp + 0x3c], eax
movd xmm1, dword [esp + 0x3c]
mov ecx, dword [edx]
psllq xmm1, xmm0
movq xmm0, qword [esp + 0x54]
dec ecx
paddq xmm1, xmm0
mov dword [edx], ecx
movq qword [esp + 0x44], xmm1
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x1c]
jb 0x1014b3fa
ja 0x1014b2e2
cmp dword [esp + 0x44], edi
jb 0x1014b3fa
mov eax, 0xcccccccd
mul esi
mov esi, edx
shr esi, 3
test ecx, ecx
jg 0x1014b276
mov esi, dword [esp + 0x1c]
neg dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
nop
mov eax, ebx
mov ecx, edx
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 + 0x10]
mov dword [esp + 0x10], ecx
shld ecx, eax, 2
shld edx, ebx, 1
shl eax, 2
add ebx, ebx
mov dword [esp + 0x2c], edx
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
adc dword [esp + 0x10], ecx
mov ecx, esi
shld dword [esp + 0x10], eax, 1
add eax, eax
mov dword [esp + 0x14], eax
mov eax, edi
shld ecx, eax, 2
shl eax, 2
add edi, eax
mov eax, ebx
adc esi, ecx
mov ecx, dword [esp + 0x20]
shld esi, edi, 1
add edi, edi
call fcn.101b0c20
mov edx, dword [ebp]
add al, 0x30
mov ecx, dword [esp + 0x90]
and ebx, dword [esp + 0x4c]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x2c]
inc dword [ebp]
and edx, dword [esp + 0x50]
dec dword [eax]
cmp edx, esi
ja 0x1014b300
jb 0x1014b3a1
cmp ebx, edi
jae 0x1014b300
push dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push dword [esp + 0x18]
sub eax, dword [esp + 0x78]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x44]
sbb ecx, dword [esp + 0x84]
push edx
push ebx
push esi
push edi
push dword [esp + 0x30]
push dword [esp + 0x38]
push ecx
push eax
call fcn.101b0580
push edx
push eax
push dword [ebp]
push dword [esp + 0xc0]
push dword [esp + 0xc0]
call fcn.1014d900
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x34]
sub ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
sbb eax, dword [esp + 0x74]
xor edx, edx
mov ecx, dword [esp + 0x30]
push 0
mov dword [esp + 0x1c], eax
mov eax, esi
push 1
call fcn.101b0b30
push edx
push eax
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x34]
push edi
push dword [esp + 0x38]
push ebx
jmp 0x1014b3d9