Function at 0x57c87f
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.00677f00
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 0x57cbbf
test ebx, ebx
jg 0x57ca95
jl 0x57c966
test edi, edi
jae 0x57ca95
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.0057ba97
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.0057ba97
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, ecx
or eax, dword [esp + 0x20]
je 0x57c9ef
mov esi, dword [esp + 0x68]
sub esi, ecx
push esi
push dword [esp + 0x50]
push dword [esp + 0x68]
call fcn.0057ba97
push esi
push dword [esp + 0x64]
push dword [esp + 0x74]
call fcn.0057ba97
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 0x57ca27
jl 0x57ca21
test edx, edx
jae 0x57ca27
add edi, esi
adc ebx, eax
jmp 0x57ca6d
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 0x57c986
jg 0x57cab5
test edi, edi
jb 0x57c986
jmp 0x57cab5
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.0057ba97
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.0057ba97
mov esi, dword [esp + 0x28]
mov eax, ebp
add esp, 0x18
or eax, esi
je 0x57cb1e
mov esi, dword [esp + 0x64]
push dword [esp + 0x70]
sub esi, ebp
push esi
push dword [esp + 0x68]
call fcn.0057ba97
push dword [esp + 0x60]
push esi
push dword [esp + 0x74]
call fcn.0057ba97
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 0x57cb90
jl 0x57cb5a
test edi, edi
jae 0x57cb90
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 0x57cb98
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 0x57cab9
jl 0x57ce4b
test ebp, ebp
jae 0x57cab9
jmp 0x57ce4b
test ebx, ebx
jg 0x57cdfc
jl 0x57cbd1
test edi, edi
jae 0x57cdfc
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.0057b5b8
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, ecx
or eax, dword [esp + 0x24]
je 0x57cc54
push dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
sub eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.0057b5b8
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 0x57cc8c
jl 0x57cc82
test esi, esi
jae 0x57cc8c
add edi, edx
mov edx, dword [esp + 0x70]
adc ebx, eax
jmp 0x57ccda
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 0x57cbf5
jg 0x57ccfa
test edi, edi
jb 0x57cbf5
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.0057befd
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.0057befd
mov esi, dword [esp + 0x30]
mov eax, ebp
add esp, 0x20
or eax, esi
je 0x57cd8a
push dword [esp + 0x70]
mov esi, dword [esp + 0x68]
push dword [esp + 0x4c]
sub esi, ebp
push esi
push dword [esp + 0x6c]
call fcn.0057befd
push dword [esp + 0x80]
push dword [esp + 0x68]
push esi
push dword [esp + 0x7c]
call fcn.0057befd
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 0x57ce21
jl 0x57cdc6
test edi, edi
jae 0x57ce21
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 0x57ce29
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 0x57ccfe
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 0x57cd12
jl 0x57ce4b
test ebp, ebp
jae 0x57cd12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14