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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
imul eax, eax
push ebx
push ebp
push esi
push edi
cdq
mov edi, eax
mov ebx, edx
mov ecx, ebx
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
imul eax, eax
cdq
mov esi, eax
mov ebp, edx
mov ecx, ebp
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x2c], ecx
push dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
push dword [esp + 0x2c]
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
cdq
mov ecx, edx
mov dword [esp + 0x78], eax
push ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.004c3530
shrd esi, ebp, 1
mov dword [esp + 0x6c], edx
mov ecx, eax
shld dword [esp + 0x6c], ecx, 1
sar ebp, 1
xorps xmm0, xmm0
add ecx, ecx
movlpd qword [esp + 0x54], xmm0
sub esi, eax
mov dword [esp + 0x18], ecx
movlpd qword [esp + 0x4c], xmm0
sbb ebp, edx
add esi, dword [esp + 0x44]
mov edx, dword [esp + 0x60]
adc ebp, dword [esp + 0x48]
shrd edi, ebx, 1
mov dword [esp + 0x30], esi
sar ebx, 1
sub edi, ecx
sbb ebx, dword [esp + 0x6c]
add edi, dword [esp + 0x28]
adc ebx, dword [esp + 0x2c]
test byte [edx + 0xd8], 4
je 0x4faa34
test ebx, ebx
jg 0x4fa90a
jl 0x4fa7db
test edi, edi
jae 0x4fa90a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x70]
add esi, ecx
add eax, dword [esp + 0x64]
push esi
push eax
push edx
mov dword [esp + 0x58], eax
call fcn.004f990c
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x7c]
push esi
push eax
push dword [esp + 0x74]
mov dword [esp + 0x6c], eax
call fcn.004f990c
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, ecx
or eax, dword [esp + 0x20]
je 0x4fa864
mov esi, dword [esp + 0x68]
sub esi, ecx
push esi
push dword [esp + 0x50]
push dword [esp + 0x68]
call fcn.004f990c
push esi
push dword [esp + 0x64]
push dword [esp + 0x74]
call fcn.004f990c
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov esi, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x24]
adc dword [esp + 0x20], 0
add esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
adc eax, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
test ebp, ebp
jg 0x4fa89c
jl 0x4fa896
test edx, edx
jae 0x4fa89c
add edi, esi
adc ebx, eax
jmp 0x4fa8e2
add dword [esp + 0x70], 0xffffffff
mov esi, dword [esp + 0x18]
adc dword [esp + 0x10], 0xffffffff
sub esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sbb dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov dword [esp + 0x18], esi
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x28]
adc eax, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x14]
adc ebx, eax
mov eax, dword [esp + 0x24]
sub edx, esi
mov esi, dword [esp + 0x1c]
sbb ebp, dword [esp + 0x6c]
add edx, esi
adc ebp, eax
add edx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
adc ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
test ebx, ebx
jl 0x4fa7fb
jg 0x4fa92a
test edi, edi
jb 0x4fa7fb
jmp 0x4fa92a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
add eax, ecx
push eax
add esi, ebp
mov dword [esp + 0x74], eax
push esi
push edx
call fcn.004f990c
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x20]
push eax
push esi
push dword [esp + 0x74]
mov dword [esp + 0x6c], eax
call fcn.004f990c
mov esi, dword [esp + 0x28]
mov eax, ebp
add esp, 0x18
or eax, esi
je 0x4fa993
mov esi, dword [esp + 0x64]
push dword [esp + 0x70]
sub esi, ebp
push esi
push dword [esp + 0x68]
call fcn.004f990c
push dword [esp + 0x60]
push esi
push dword [esp + 0x74]
call fcn.004f990c
mov esi, dword [esp + 0x28]
add esp, 0x18
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
mov ecx, dword [esp + 0x6c]
mov edx, edi
adc esi, 0xffffffff
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sbb ecx, dword [esp + 0x38]
sub edx, eax
mov eax, ebx
mov dword [esp + 0x10], esi
sbb eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], eax
test ebx, ebx
jg 0x4faa05
jl 0x4fa9cf
test edi, edi
jae 0x4faa05
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x24]
adc dword [esp + 0x20], 0
add edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x70]
adc eax, dword [esp + 0x40]
add edi, edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
adc ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
jmp 0x4faa0d
mov ecx, dword [esp + 0x14]
mov edi, edx
mov ebx, eax
add edi, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
adc ebx, dword [esp + 0x2c]
test esi, esi
jg 0x4fa92e
jl 0x4facc0
test ebp, ebp
jae 0x4fa92e
jmp 0x4facc0
test ebx, ebx
jg 0x4fac71
jl 0x4faa46
test edi, edi
jae 0x4fac71
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
lea eax, [edx*2 + 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
sub eax, edx
mov dword [esp + 0x30], eax
lea eax, [edx*2 + 1]
push eax
mov eax, dword [esp + 0x6c]
add eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.004f942d
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, ecx
or eax, dword [esp + 0x24]
je 0x4faac9
push dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
sub eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.004f942d
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x20]
adc dword [esp + 0x24], 0
add edx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
adc eax, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
test ebp, ebp
jg 0x4fab01
jl 0x4faaf7
test esi, esi
jae 0x4fab01
add edi, edx
mov edx, dword [esp + 0x70]
adc ebx, eax
jmp 0x4fab4f
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
add edx, 0xffffffff
mov ecx, dword [esp + 0x38]
adc dword [esp + 0x10], 0xffffffff
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sbb dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x28]
adc eax, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x14]
adc ebx, eax
sub esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
sbb ebp, dword [esp + 0x6c]
add esi, dword [esp + 0x1c]
adc ebp, eax
add esi, dword [esp + 0x44]
adc ebp, dword [esp + 0x48]
test ebx, ebx
jl 0x4faa6a
jg 0x4fab6f
test edi, edi
jb 0x4faa6a
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ebp, dword [esp + 0x70]
add eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
sub ecx, esi
mov esi, dword [esp + 0x64]
inc ecx
add esi, ebp
push ecx
push dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
push esi
push edx
call fcn.004f9d72
push dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x28]
push eax
push esi
push dword [esp + 0x7c]
mov dword [esp + 0x74], eax
call fcn.004f9d72
mov esi, dword [esp + 0x30]
mov eax, ebp
add esp, 0x20
or eax, esi
je 0x4fabff
push dword [esp + 0x70]
mov esi, dword [esp + 0x68]
push dword [esp + 0x4c]
sub esi, ebp
push esi
push dword [esp + 0x6c]
call fcn.004f9d72
push dword [esp + 0x80]
push dword [esp + 0x68]
push esi
push dword [esp + 0x7c]
call fcn.004f9d72
mov esi, dword [esp + 0x30]
add esp, 0x20
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
mov ecx, dword [esp + 0x6c]
mov edx, edi
adc esi, 0xffffffff
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sbb ecx, dword [esp + 0x38]
sub edx, eax
mov eax, ebx
mov dword [esp + 0x10], esi
sbb eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], eax
test ebx, ebx
jg 0x4fac96
jl 0x4fac3b
test edi, edi
jae 0x4fac96
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x20]
adc dword [esp + 0x24], 0
add edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x70]
adc eax, dword [esp + 0x40]
add edi, edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
adc ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x4fac9e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jmp 0x4fab73
mov ecx, dword [esp + 0x14]
mov edi, edx
mov ebx, eax
add edi, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
adc ebx, dword [esp + 0x2c]
test esi, esi
mov esi, dword [esp + 0x44]
jg 0x4fab87
jl 0x4facc0
test ebp, ebp
jae 0x4fab87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14