Function at 0x5af551
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.005734c0
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 0x5af891
test ebx, ebx
jg 0x5af767
jl 0x5af638
test edi, edi
jae 0x5af767
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.005ae769
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.005ae769
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, ecx
or eax, dword [esp + 0x20]
je 0x5af6c1
mov esi, dword [esp + 0x68]
sub esi, ecx
push esi
push dword [esp + 0x50]
push dword [esp + 0x68]
call fcn.005ae769
push esi
push dword [esp + 0x64]
push dword [esp + 0x74]
call fcn.005ae769
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 0x5af6f9
jl 0x5af6f3
test edx, edx
jae 0x5af6f9
add edi, esi
adc ebx, eax
jmp 0x5af73f
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 0x5af658
jg 0x5af787
test edi, edi
jb 0x5af658
jmp 0x5af787
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.005ae769
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.005ae769
mov esi, dword [esp + 0x28]
mov eax, ebp
add esp, 0x18
or eax, esi
je 0x5af7f0
mov esi, dword [esp + 0x64]
push dword [esp + 0x70]
sub esi, ebp
push esi
push dword [esp + 0x68]
call fcn.005ae769
push dword [esp + 0x60]
push esi
push dword [esp + 0x74]
call fcn.005ae769
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 0x5af862
jl 0x5af82c
test edi, edi
jae 0x5af862
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 0x5af86a
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 0x5af78b
jl 0x5afb1d
test ebp, ebp
jae 0x5af78b
jmp 0x5afb1d
test ebx, ebx
jg 0x5aface
jl 0x5af8a3
test edi, edi
jae 0x5aface
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.005ae28a
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, ecx
or eax, dword [esp + 0x24]
je 0x5af926
push dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
sub eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.005ae28a
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 0x5af95e
jl 0x5af954
test esi, esi
jae 0x5af95e
add edi, edx
mov edx, dword [esp + 0x70]
adc ebx, eax
jmp 0x5af9ac
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 0x5af8c7
jg 0x5af9cc
test edi, edi
jb 0x5af8c7
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.005aebcf
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.005aebcf
mov esi, dword [esp + 0x30]
mov eax, ebp
add esp, 0x20
or eax, esi
je 0x5afa5c
push dword [esp + 0x70]
mov esi, dword [esp + 0x68]
push dword [esp + 0x4c]
sub esi, ebp
push esi
push dword [esp + 0x6c]
call fcn.005aebcf
push dword [esp + 0x80]
push dword [esp + 0x68]
push esi
push dword [esp + 0x7c]
call fcn.005aebcf
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 0x5afaf3
jl 0x5afa98
test edi, edi
jae 0x5afaf3
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 0x5afafb
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 0x5af9d0
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 0x5af9e4
jl 0x5afb1d
test ebp, ebp
jae 0x5af9e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14