Function at 0x5af2b1
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.00573220
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 0x5af5f1
test ebx, ebx
jg 0x5af4c7
jl 0x5af398
test edi, edi
jae 0x5af4c7
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.005ae4c9
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.005ae4c9
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, ecx
or eax, dword [esp + 0x20]
je 0x5af421
mov esi, dword [esp + 0x68]
sub esi, ecx
push esi
push dword [esp + 0x50]
push dword [esp + 0x68]
call fcn.005ae4c9
push esi
push dword [esp + 0x64]
push dword [esp + 0x74]
call fcn.005ae4c9
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 0x5af459
jl 0x5af453
test edx, edx
jae 0x5af459
add edi, esi
adc ebx, eax
jmp 0x5af49f
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 0x5af3b8
jg 0x5af4e7
test edi, edi
jb 0x5af3b8
jmp 0x5af4e7
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.005ae4c9
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.005ae4c9
mov esi, dword [esp + 0x28]
mov eax, ebp
add esp, 0x18
or eax, esi
je 0x5af550
mov esi, dword [esp + 0x64]
push dword [esp + 0x70]
sub esi, ebp
push esi
push dword [esp + 0x68]
call fcn.005ae4c9
push dword [esp + 0x60]
push esi
push dword [esp + 0x74]
call fcn.005ae4c9
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 0x5af5c2
jl 0x5af58c
test edi, edi
jae 0x5af5c2
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 0x5af5ca
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 0x5af4eb
jl 0x5af87d
test ebp, ebp
jae 0x5af4eb
jmp 0x5af87d
test ebx, ebx
jg 0x5af82e
jl 0x5af603
test edi, edi
jae 0x5af82e
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.005adfea
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, ecx
or eax, dword [esp + 0x24]
je 0x5af686
push dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
sub eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.005adfea
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 0x5af6be
jl 0x5af6b4
test esi, esi
jae 0x5af6be
add edi, edx
mov edx, dword [esp + 0x70]
adc ebx, eax
jmp 0x5af70c
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 0x5af627
jg 0x5af72c
test edi, edi
jb 0x5af627
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.005ae92f
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.005ae92f
mov esi, dword [esp + 0x30]
mov eax, ebp
add esp, 0x20
or eax, esi
je 0x5af7bc
push dword [esp + 0x70]
mov esi, dword [esp + 0x68]
push dword [esp + 0x4c]
sub esi, ebp
push esi
push dword [esp + 0x6c]
call fcn.005ae92f
push dword [esp + 0x80]
push dword [esp + 0x68]
push esi
push dword [esp + 0x7c]
call fcn.005ae92f
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 0x5af853
jl 0x5af7f8
test edi, edi
jae 0x5af853
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 0x5af85b
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 0x5af730
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 0x5af744
jl 0x5af87d
test ebp, ebp
jae 0x5af744
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14