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

Disassembly:
push 0xffffffffffffffff
push 0x100814f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x58], ebp
mov ebx, dword [esp + 0x9c]
lea ecx, [esp + 0x78]
mov edx, ebx
call fcn.1000a110
mov edi, dword [esp + 0x98]
mov dword [esp + 0x8c], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov eax, 0x4bda12f7
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, dword [esi + 0x18]
imul eax, dword [esi + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, 3
jle 0x1004b1a6
cmp byte [esi + 0x3c], 0
mov byte [esp + 0x16], 1
jne 0x1004b1ab
mov byte [esp + 0x16], 0
cmp eax, 5
mov ebp, 0x1008c970
mov dword [esp + 0x3c], ebp
sete byte [esp + 0x17]
xor ecx, ecx
mov edi, edi
mov ebp, dword [ebp]
cmp ebp, eax
jge 0x1004b4ee
mov eax, dword [ebx]
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, ebx
push ebp
call dword [eax + 0xc]
mov edx, dword [ebx]
mov ecx, ebx
push ebp
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x1004b4e6
mov eax, dword [ebx]
mov ecx, ebx
push ebp
call dword [eax + 8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
cmp esi, 3
jle 0x1004b208
mov ecx, dword [ebp*4 + 0x1008c950]
jmp 0x1004b20f
mov ecx, dword [ebp*4 + 0x1008c9b0]
push ecx
lea ecx, [esp + 0x64]
call fcn.10018f50
mov byte [esp + 0x8c], 1
mov eax, dword [edi]
push dword [eax + 0x18]
push dword [eax + 0x14]
push esi
push dword [esp + 0x2c]
push 0
push 0x64
push dword [0x1009b7a4]
push dword [0x1009b7a0]
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
push eax
push 0x1008c618
push 2
call fcn.10052110
mov edx, dword [esp + 0xb4]
add esp, 0x1c
mov esi, dword [edx]
mov ecx, dword [esi + 0x18]
mov eax, ecx
imul eax, dword [esi + 0x14]
add dword [0x1009b7a0], eax
adc dword [0x1009b7a4], 0
xor edi, edi
mov dword [esp + 0x2c], edi
test ecx, ecx
je 0x1004b453
mov ecx, dword [edx + 4]
mov eax, 0x4bda12f7
sub ecx, esi
xor ebx, ebx
imul ecx
mov dword [esp + 0x18], ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1004b435
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea ecx, [ecx]
add esi, ecx
mov dword [esp + 0x34], esi
cmp dword [esi + 0x58], 0
jge 0x1004b3fe
mov eax, dword [esi + 0x40]
mov ebx, dword [eax + edi*4]
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x54], eax
cmp ebx, eax
jae 0x1004b3fa
cmp byte [esp + 0x16], 0
je 0x1004b306
cmp ebp, 3
jge 0x1004b306
mov ecx, dword [esi + 0xc]
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x1004b3eb
cmp byte [esp + 0x17], 0
je 0x1004b324
cmp ebp, 4
jge 0x1004b324
mov ecx, dword [esi + 0x10]
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jg 0x1004b3eb
push dword [esp + 0x40]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
push ebx
push edi
push ebp
push dword [esi + ebp*4]
lea ecx, [esp + 0x7c]
push esi
call fcn.100215d0
mov ecx, dword [esi + ebp*4]
add esp, 0x20
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
push ebx
push edi
call dword [edx + 0xc]
cmp byte [esp + 0x17], 0
mov dword [esp + 0x4c], eax
je 0x1004b37d
cmp ebp, 4
jne 0x1004b37d
mov edi, dword [esp + 0x24]
cmp edi, dword [esp + 0x18]
cmovg edi, dword [esp + 0x18]
mov dword [esp + 0x24], edi
jmp 0x1004b381
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x30]
sub edi, dword [esp + 0x30]
imul esi, ebp, 0x401c
mov dword [esp + 0x50], eax
add esi, dword [ecx]
mov dword [esp + 0x48], esi
cmp eax, edi
je 0x1004b3e3
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.10020da0
mov ecx, dword [esp + 0x48]
mov esi, dword [esi]
add ecx, 4
mov edx, dword [esp + 0x50]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x70]
push edi
mov dword [esp + 0x78], esi
call fcn.10050000
add esp, 8
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
inc ebx
cmp ebx, dword [esp + 0x54]
jb 0x1004b2e8
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x98]
add ecx, 0x6c
mov dword [esp + 0x28], ecx
inc ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4bda12f7
imul ecx
mov ecx, dword [esp + 0x28]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jl 0x1004b2c0
mov edx, dword [esp + 0x98]
inc edi
mov dword [esp + 0x2c], edi
mov esi, dword [edx]
cmp edi, dword [esi + 0x18]
jb 0x1004b293
mov ebx, dword [esp + 0x9c]
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 0xc]
mov eax, esi
sub eax, dword [esp + 0x38]
test eax, eax
jle 0x1004b4aa
mov ecx, dword [esp + 0x5c]
sub esp, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
mulsd xmm1, qword [0x1008f1d8]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp], xmm1
push ecx
push eax
push esi
push 0x1008c63c
push 3
call fcn.100520e0
push 0x1008c66c
push 4
call fcn.100520e0
add esp, 0x24
mov byte [esp + 0x8c], 0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], esi
test eax, eax
je 0x1004b4df
push eax
call fcn.1006f76a
add esp, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x3c]
add ebp, 4
mov dword [esp + 0x3c], ebp
cmp ebp, 0x1008c984
jl 0x1004b1c0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x1004b516
push eax
call fcn.1006f76a
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret