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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x274
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x34]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], ecx
movzx ecx, byte [eax + 0x10a150f4]
movzx eax, byte [eax + 0x10a15104]
push 0x100
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x17c]
push 0
push eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ecx
call fcn.10513d40
push 0x100
lea eax, [esp + 0x88]
push 0
push eax
call fcn.10513d40
mov eax, dword [ebx + 0x1c]
xor edi, edi
mov edx, dword [ebx + 0x2c]
add esp, 0x18
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 0x28]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x10], 4
shl dword [esp + 0x10], cl
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], eax
jle 0x1048bed2
mov ecx, dword [esp + 0x34]
mov edi, 4
shl edi, cl
mov ecx, edx
mov edx, dword [esp + 0x10]
shl ecx, 4
mov dword [esp + 0x54], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x54]
lea edx, [edx - 1]
shl ecx, 4
shr edx, 4
inc edx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x5c], edx
nop dword [eax]
test edi, edi
jle 0x1048beb3
mov ebx, esi
mov dword [esp + 0x10], ecx
lea esi, [edi - 1]
lea edi, [eax*4]
shr esi, 5
inc esi
mov dword [esp + 0x50], edi
mov edx, edi
lea eax, [esp + 0x78]
add eax, edi
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x184]
add eax, edx
push eax
push dword [esp + 0x74]
push ecx
push dword [esp + 0x80]
push ebx
call dword [0x10b48f2c]
mov eax, dword [esp + 0x6c]
add esp, 0x20
mov ecx, dword [esp + 0x10]
add eax, 2
mov edx, dword [esp + 0x50]
add ecx, 0x20
add edx, 8
mov dword [esp + 0x4c], eax
add ebx, 0x20
mov dword [esp + 0x10], ecx
add edi, 8
mov dword [esp + 0x50], edx
sub esi, 1
jne 0x1048be42
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x54]
add esi, dword [esp + 0x38]
add ecx, ebx
sub edx, 1
mov dword [esp + 0x58], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x5c], edx
jne 0x1048be20
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
imul eax
add ecx, 4
add ecx, dword [esp + 0x18]
call fcn.10511c50
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], edx
test eax, eax
je 0x1048bf03
mov dword [eax], edx
cmp edx, dword [ebp + 0x38]
ja 0x1048c259
mov eax, dword [esp + 0x28]
xor esi, esi
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x20]
mov dword [eax], 0
cmp byte [ebx + 0x23b6c], 2
jne 0x1048bf89
mov eax, dword [ecx + 0x5d190]
test eax, eax
je 0x1048bf89
cmp eax, 2
jl 0x1048bf89
mov eax, dword [ebx + 0x44]
mov cl, byte [ebx + 0x1b58]
sub cl, 5
movsx eax, word [eax + 2]
sar eax, cl
imul eax, eax
cmp edi, eax
jae 0x1048bf85
cmp dword [ebx + 0x243a4], eax
jae 0x1048bf85
cmp byte [ebx + 0x24392], 0
jne 0x1048bf85
cmp byte [ebx + 0x24393], 0
mov ecx, dword [esp + 0xc]
jne 0x1048bf89
mov eax, dword [esp + 0x20]
mov esi, 1
mov dword [eax], 1
jmp 0x1048bf89
mov ecx, dword [esp + 0xc]
cmp dword [ebp + 0x28], 0
jne 0x1048bfcc
mov ecx, dword [ecx + 0x5d184]
test ecx, ecx
je 0x1048bfcc
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xfd0]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push 0
push edi
push dword [esp + 0x28]
push ecx
call fcn.1048ac30
add esp, 0x1c
test eax, eax
jne 0x1048c259
mov edx, dword [esp + 0x38]
xor eax, eax
mov ecx, 1
test esi, esi
mov esi, dword [esp + 0x20]
cmove eax, ecx
test eax, eax
je 0x1048c02b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push edi
push edx
push dword [esp + 0x38]
push eax
lea eax, [esp + 0x188]
push eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffffe
add ecx, eax
mov eax, 1
shl eax, cl
sar eax, 2
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x48]
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
call fcn.1048d600
mov edi, dword [esp + 0x50]
add esp, 0x34
cmp dword [ebp + 0x28], 0
je 0x1048c259
cmp dword [esi], 0
jne 0x1048c242
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax + 0x10a16368]
movzx eax, byte [eax + 0x10a16350]
lea edx, [esi + 8]
imul ecx, eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10e8]
mov dword [esp + 0x38], ecx
test byte [eax + 0x8c], 8
je 0x1048c086
mov ecx, dword [ebx + 0x1b58]
sub ecx, 5
jmp 0x1048c08b
mov ecx, 3
mov eax, dword [ebx + 0x44]
movzx ecx, cx
mov dword [esp + 0x40], ecx
movzx ebx, word [eax + 2]
mov eax, ebx
sar ax, cl
cmp ax, 1
jle 0x1048c0af
movsx eax, bx
sar eax, cl
mov dword [esp + 0x24], eax
jmp 0x1048c0b7
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov ebx, dword [esp + 0xc]
or eax, ebx
jne 0x1048c0d9
mov dword [esi], eax
test edx, edx
je 0x1048c239
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1048c239
mov esi, dword [esp + 0x38]
mov edx, ebx
call fcn.10511ed0
movd xmm1, esi
sub esp, 8
cvtdq2pd xmm1, xmm1
movd xmm2, dword [esp + 0x2c]
divsd xmm0, xmm1
cvtdq2pd xmm2, xmm2
movaps xmm1, xmm0
movsd qword [esp + 0x48], xmm0
mulsd xmm2, xmm2
divsd xmm1, xmm2
movsd qword [esp], xmm1
call fcn.1051f90e
add esp, 8
lea eax, [esp + 0x68]
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
push eax
lea eax, [esp + 0x74]
push eax
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [esp], xmm0
push dword [esp + 0x2c]
call fcn.1007f7d0
movd xmm4, esi
xorps xmm1, xmm1
cvtdq2pd xmm4, xmm4
add esp, 0x1c
xorps xmm3, xmm3
movaps xmm0, xmm4
mulsd xmm0, qword [esp + 0x70]
maxsd xmm1, xmm0
addsd xmm1, qword [0x1058db20]
cvttsd2si eax, xmm1
movsd xmm1, qword [esp + 0x68]
mulsd xmm1, qword [esp + 0x40]
mov dword [esp + 0x14], eax
mulsd xmm1, xmm4
maxsd xmm3, xmm1
addsd xmm3, qword [0x1058db20]
movaps xmm0, xmm3
call fcn.10511dd0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov ebx, edx
mov eax, ecx
test ecx, ecx
jne 0x1048c1bd
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
shld ebx, esi, 4
shl esi, 4
jmp 0x1048c227
mov ecx, dword [esp + 0x60]
imul dword [ecx + 0x31cc]
mov ecx, ebx
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
mov dword [esp + 0x18], eax
mov eax, esi
shld ecx, eax, 7
sar edx, 9
shl eax, 7
add dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
adc edx, ecx
mov ecx, dword [esp + 0x10]
shld eax, ecx, 0xb
shl ecx, 0xb
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
cmp edx, eax
jl 0x1048c223
jg 0x1048c212
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
jb 0x1048c223
mov ebx, dword [esp + 0xc]
mov esi, ecx
shld ebx, esi, 4
xor eax, eax
shl esi, 4
jmp 0x1048c227
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea eax, [ecx + 8]
test eax, eax
je 0x1048c239
mov dword [eax], esi
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
je 0x1048c259
mov eax, dword [esp + 0x28]
shl edi, 4
mov dword [eax], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret