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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
movsd xmm0, qword [ebp + 8]
mov ecx, dword [0x80e040]
xor ecx, ebp
mov dword [esp + 0xc8], ecx
cmp dword [ebp + 0x10], 2
jae 0x5875f7
movsd qword [esp + 0x80], xmm0
mov esi, dword [esp + 0x80]
mov dword [esp], esi
mov ecx, dword [esp + 0x84]
mov edi, ecx
and edi, 0xfffff
add esi, 0xffffffff
mov eax, edi
adc eax, 0xfffff
add esi, 1
adc eax, 0
mov edx, ecx
shr edx, 0x14
and edx, 0x7ff
add edx, 0xfffffbcd
mov dword [esp + 0x28], ecx
test ecx, 0x7ff00000
mov ecx, edx
mov ebx, 0xfffffbce
cmove ecx, ebx
mov dword [esp + 0xc], ecx
mov ecx, esi
cmove ecx, dword [esp]
mov dword [esp + 4], ecx
mov ebx, eax
mov dword [esp + 0x10], edi
cmove ebx, edi
je 0x587ce1
mov dword [esp + 0x18], edx
shld eax, esi, 0xb
mov dword [esp + 0x2c], eax
shl esi, 0xb
mov dword [esp + 8], esi
movaps xmm1, xmmword [0x774f10]
movups xmmword [esp + 0xb8], xmm1
xor ecx, ecx
mov dword [esp + 0xc0], ecx
movups xmmword [esp + 0xa8], xmm1
mov dword [esp + 0xb0], ecx
cmp dword [ebp + 0x10], 0
jne 0x587d04
mov eax, dword [esp + 0xc]
lea ecx, [eax - 1]
mov dword [esp + 0x1c], ebx
mov esi, ebx
mov eax, dword [esp + 4]
shld esi, eax, 1
lea edi, [eax + eax]
lea ebx, [eax*2 + 1]
mov edx, esi
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, edx
shld edx, ebx, 0xa
shl ebx, 0xa
add eax, 0xfffffff6
test ecx, 0xfffff000
je 0x586efc
test edx, edx
jns 0x587ccd
mov ecx, dword [esp]
or dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebx
je 0x587c81
add edi, 0xffffffff
adc esi, 0xffffffff
mov ecx, dword [esp + 0x14]
sub ecx, eax
shld esi, edi, cl
shl edi, cl
xor ebx, ebx
test cl, 0x20
cmove ebx, edi
cmove edi, esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x98]
movups xmmword [ecx], xmm1
xor eax, eax
mov dword [ecx + 8], eax
mov esi, ecx
lea eax, [esp + 0x94]
mov dword [eax], 0xffffffff
mov ecx, 0xffffff8f
mov edi, dword [esp + 0x18]
sub ecx, edi
mov edx, 0xffffffab
sub edx, edi
push eax
push esi
push edx
push ecx
call fcn.005a1db0
add esp, 0x10
mov edi, dword [esi + 4]
mov dword [esp + 0x1c], edi
mov eax, edi
mov ebx, dword [esp + 0x2c]
mul ebx
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 8]
and ecx, 0xfffff800
mov eax, edi
mul ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edi, dword [esi]
mov eax, edi
mov dword [esp + 0x28], edi
mul ebx
mov esi, edx
mov ebx, eax
mov eax, edi
mul ecx
xor eax, eax
add edx, ebx
setb al
add edx, dword [esp + 4]
adc eax, 0
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x98]
add ecx, dword [edi + 8]
mov dword [esp + 0x18], ecx
add esi, dword [esp]
mov ecx, dword [esp + 0x10]
adc ecx, 0
add esi, dword [esp + 0xc]
adc ecx, 0
add edx, 0x80000000
adc esi, eax
mov dword [esp + 0x20], esi
adc ecx, 0
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xbc]
mov eax, esi
mov ebx, dword [esp + 0x1c]
mul ebx
mov dword [esp + 0xc], eax
mov dword [esp], edx
mov edi, dword [esp + 0xb8]
mov eax, edi
mul ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, esi
mov esi, dword [esp + 0x28]
mul esi
mov dword [esp + 0x14], edx
mov ecx, eax
mov eax, edi
mul esi
xor eax, eax
add edx, ecx
setb al
add edx, dword [esp + 8]
mov dword [esp + 8], edx
adc eax, 0
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xac]
mov eax, ecx
mul ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0xa8]
mov eax, edi
mul ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x60], eax
mov eax, ecx
mul esi
mov ebx, edx
mov ecx, eax
mov eax, edi
mul esi
xor eax, eax
add edx, ecx
setb al
add edx, dword [esp + 0x60]
adc eax, 0
add ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x38]
adc esi, 0
add ebx, dword [esp + 0x1c]
adc esi, 0
add edx, 0x80000000
adc ebx, eax
adc esi, 0
add ebx, 1
mov dword [esp + 0x5c], ebx
adc esi, 0
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0xc]
mov eax, dword [esp]
adc eax, 0
add ecx, dword [esp + 4]
adc eax, 0
add dword [esp + 8], 0x80000000
adc ecx, dword [esp + 0x2c]
adc eax, 0
sub ebx, ecx
mov dword [esp + 0x4c], ebx
mov ecx, esi
sbb ecx, eax
mov dword [esp + 0x48], ecx
mov edi, ebx
add edi, 1
mov eax, ecx
adc eax, 0
mov dword [esp + 0xc], eax
mov ecx, 0xffffffcb
sub ecx, dword [esp + 0x18]
xor eax, eax
inc eax
xor edx, edx
shld edx, eax, cl
mov dword [esp + 0x14], eax
shl eax, cl
mov ebx, dword [esp + 0x5c]
shrd ebx, esi, cl
mov dword [esp + 0x38], esi
shr esi, cl
mov dword [esp + 0x2c], ecx
test cl, 0x20
cmove esi, ebx
cmovne edx, eax
mov ecx, 0
cmovne eax, ecx
mov dword [esp + 0x68], eax
add eax, 0xffffffff
mov dword [esp + 0x58], edx
adc edx, 0xffffffff
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
and ecx, edx
mov ebx, dword [esp + 0x5c]
mov edx, ebx
mov dword [esp + 0x64], eax
and edx, eax
mov dword [esp + 4], edx
imul eax, dword [esp + 0x18], 0x4d1
add eax, 0x23856
sar eax, 0xc
mov dword [esp + 8], esi
cmp dword [eax*4 + 0x7a28a0], esi
lea edx, [eax + 1]
cmova edx, eax
sub ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
sbb esi, dword [esp + 0x10]
mov eax, ebx
add eax, 0xffffffff
mov dword [esp + 0x3c], eax
mov eax, esi
adc eax, 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], ebx
mov eax, ebx
mov ebx, dword [esp + 4]
add eax, 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], esi
mov eax, esi
adc eax, 0
mov dword [esp + 0x40], eax
mov eax, dword [edx*4 + 0x7a289c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x20]
xor esi, esi
mov dword [eax], esi
add dword [esp + 0x4c], 0xfffffffd
adc dword [esp + 0x48], 0xffffffff
mov eax, edx
sar eax, 0x1f
and eax, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
mov dword [esp], ecx
nop dword [eax]
test edx, edx
jle 0x5872c9
mov dword [esp + 0x18], edx
mov eax, dword [esp + 8]
xor edx, edx
div dword [esp + 0x10]
add al, 0x30
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx]
mov esi, dword [ebp + 0x18]
mov byte [esi + ecx], al
xor esi, esi
mov ecx, dword [esp + 0x2c]
shld esi, edx, cl
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 8], edx
shl edx, cl
test cl, 0x20
cmovne esi, edx
mov ecx, 0
cmovne edx, ecx
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
add edx, ebx
adc esi, dword [esp]
mov dword [esp + 0x28], edx
cmp edx, edi
mov dword [esp + 0x20], esi
sbb esi, dword [esp + 0xc]
jb 0x587ab2
mov eax, dword [esp + 0x10]
mov ecx, 0xcccccccd
mul ecx
shr edx, 3
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
dec edx
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x28], edi
mov eax, dword [esp + 0xc]
sbb dword [esp + 0x20], eax
mov ecx, dword [esp]
jae 0x587220
jmp 0x587397
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x54]
nop word cs:[eax + eax]
mov dword [esp + 0x18], edx
mov eax, ebx
mov edx, 0xa
mul edx
lea ecx, [ecx + ecx*4]
lea ebx, [edx + ecx*2]
mov esi, eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp], ebx
shrd esi, ebx, cl
mov eax, dword [esp + 0x14]
shr ebx, cl
mov dword [esp + 0x20], eax
mov edx, 0xa
mul edx
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov eax, edi
mov edx, 0xa
mul edx
test cl, 0x20
cmove ebx, esi
add bl, 0x30
mov edi, dword [ebp + 0x20]
mov ecx, dword [edi]
mov esi, dword [ebp + 0x18]
mov byte [esi + ecx], bl
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
mov esi, dword [esp]
and esi, dword [esp + 0x60]
mov edx, dword [esp + 4]
and edx, dword [esp + 0x64]
mov edi, eax
mov ebx, edx
cmp edx, eax
mov dword [esp], esi
mov eax, esi
mov dword [esp + 0xc], ecx
sbb eax, ecx
mov ecx, dword [ebp + 0x20]
mov esi, dword [ecx]
lea eax, [esi + 1]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx*4]
mov eax, dword [esp + 8]
lea eax, [eax + edx*2]
mov dword [esp + 0x10], eax
jb 0x5873d6
mov edx, dword [esp + 0x18]
dec edx
cmp ebx, edi
mov ecx, dword [esp]
mov eax, ecx
sbb eax, dword [esp + 0xc]
jae 0x5872e0
test byte [esp + 0x24], 1
je 0x5875f0
sub edx, dword [esp + 0x94]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
add edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + eax], 0
mov bl, 1
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.005c9f16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x30], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x14]
mul dword [esp + 0x5c]
mov esi, eax
mov eax, edx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
imul edx, dword [esp + 0x5c]
add edx, eax
add edx, ecx
mov eax, esi
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, edx
sbb eax, dword [esp + 0x10]
add esi, ecx
mov dword [esp + 0x3c], esi
adc edx, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov edx, edi
sub edx, ebx
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp]
cmp edx, dword [esp + 0x68]
mov esi, dword [esp + 0x58]
sbb ecx, esi
setb cl
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 4], ebx
jb 0x587cb4
mov ecx, ebx
mov ebx, dword [esp + 0x24]
cmp ecx, ebx
mov edi, dword [esp]
mov edx, edi
mov dword [esp + 0x34], eax
sbb edx, eax
mov edx, ecx
mov eax, dword [esp + 0x1c]
jae 0x58753e
mov edx, dword [esp + 4]
mov edi, dword [esp]
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], edi
add edx, dword [esp + 0x68]
mov dword [esp + 8], edx
adc edi, esi
cmp edx, ebx
mov edx, edi
mov ecx, dword [esp + 0x34]
sbb edx, ecx
mov dword [esp + 0x28], edi
jb 0x5874c0
mov edx, ebx
sub edx, dword [esp + 0x48]
mov esi, ecx
sbb esi, dword [esp + 0x54]
mov eax, dword [esp + 8]
sub eax, ebx
mov edi, dword [esp + 0x28]
sbb edi, ecx
cmp edx, eax
sbb esi, edi
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x58]
jb 0x587522
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x30]
dec byte [eax + edx]
mov edx, ebx
mov ebx, dword [esp + 0x24]
sub edx, dword [esp + 8]
mov ecx, esi
mov esi, dword [esp + 0xc]
sbb esi, edi
mov edi, dword [esp + 0x68]
cmp edx, edi
mov eax, esi
sbb eax, ecx
setb al
mov dword [esp + 0x4c], eax
cmp dword [esp + 8], ebx
mov eax, dword [esp + 0x28]
mov ecx, eax
sbb eax, dword [esp + 0x34]
jae 0x587534
cmp edx, edi
sbb esi, dword [esp + 0x58]
mov edx, dword [esp + 8]
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x1c]
mov edi, ecx
mov esi, dword [esp + 0x58]
jb 0x58753e
jmp 0x58747c
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
jmp 0x58753e
mov edx, dword [esp + 8]
mov edi, ecx
mov esi, dword [esp + 0x58]
mov ebx, esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 8], edx
cmp edx, esi
mov eax, edi
mov ecx, dword [esp + 0x40]
sbb eax, ecx
jae 0x58755b
cmp byte [esp + 0x4c], 0
je 0x5875b5
mov esi, dword [esp + 0x20]
mov eax, esi
mov ecx, 0x14
mul ecx
mov ecx, dword [esp + 0x44]
lea ecx, [edx + ecx*4]
mov ebx, edi
cmp dword [esp + 8], eax
mov eax, edi
sbb eax, ecx
setae cl
mov eax, esi
mov edx, 0xffffffd8
mul edx
sub edx, esi
mov esi, dword [esp + 0x7c]
shl esi, 3
lea esi, [esi + esi*4]
sub edx, esi
mov edi, dword [esp + 0x1c]
add eax, edi
adc edx, dword [esp + 0xc]
cmp eax, dword [esp + 8]
sbb edx, ebx
setae al
and al, cl
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 4]
jmp 0x587381
mov edx, dword [esp + 8]
add edx, dword [esp + 0x68]
mov eax, ecx
mov ecx, edi
adc ecx, ebx
mov ebx, eax
cmp edx, esi
mov eax, ecx
sbb eax, ebx
jb 0x587d34
mov eax, esi
sub eax, dword [esp + 8]
mov esi, ebx
sbb esi, edi
sub edx, dword [esp + 0x3c]
sbb ecx, ebx
cmp edx, eax
sbb ecx, esi
jae 0x58755b
jmp 0x587d34
xor ebx, ebx
jmp 0x5873be
jne 0x587d45
movsd qword [esp + 0x88], xmm0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, edx
and eax, 0xfffff
mov ebx, ecx
add ebx, 0xffffffff
mov edi, eax
adc edi, 0xfffff
add ebx, 1
adc edi, 0
test edx, 0x7ff00000
je 0x587d53
shr edx, 0x14
and edx, 0x7ff
add edx, 0xfffffbcd
shld edi, ebx, 0xb
shl ebx, 0xb
movaps xmm0, xmmword [0x774f10]
lea ecx, [esp + 0xb8]
movups xmmword [ecx], xmm0
xor eax, eax
mov dword [ecx + 8], eax
lea eax, [esp + 0xa8]
mov dword [eax], 0xffffffff
mov ecx, 0xffffff8f
sub ecx, edx
mov esi, edx
mov dword [esp], edx
mov edx, 0xffffffab
sub edx, esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc], esi
push eax
lea esi, [esp + 0xbc]
push esi
push edx
push ecx
call fcn.005a1db0
add esp, 0x10
mov ecx, esi
mov esi, dword [esi + 4]
mov eax, esi
mul edi
mov dword [esp + 4], edx
mov dword [esp + 0x18], eax
mov eax, esi
mul ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov ecx, dword [ecx]
mov eax, ecx
mul edi
mov edi, edx
mov esi, eax
mov eax, ecx
mul ebx
xor eax, eax
add edx, esi
setb al
add edx, dword [esp + 0x10]
adc eax, 0
mov ebx, dword [esp]
lea ecx, [esp + 0xb8]
add ebx, dword [ecx + 8]
mov dword [esp], ebx
add edi, dword [esp + 0x18]
mov esi, dword [esp + 4]
adc esi, 0
add edi, dword [esp + 0x14]
adc esi, 0
add edx, 0x80000000
adc edi, eax
adc esi, 0
mov ecx, 0xffffffcb
sub ecx, ebx
xor eax, eax
inc eax
xor edx, edx
shld edx, eax, cl
mov dword [esp + 0x14], eax
shl eax, cl
mov ebx, edi
mov dword [esp + 4], esi
shrd ebx, esi, cl
shr esi, cl
mov dword [esp + 0x28], ecx
test cl, 0x20
cmove esi, ebx
cmovne edx, eax
mov ebx, 0
cmovne eax, ebx
mov dword [esp + 0x20], eax
add eax, 0xffffffff
mov dword [esp + 0x2c], edx
adc edx, 0xffffffff
mov dword [esp + 0x64], edx
and dword [esp + 4], edx
mov dword [esp + 0x1c], eax
and edi, eax
mov dword [esp + 8], edi
imul eax, dword [esp], 0x4d1
add eax, 0x23856
sar eax, 0xc
cmp dword [eax*4 + 0x7a28a0], esi
lea ebx, [eax + 1]
cmova ebx, eax
mov edx, dword [ebx*4 + 0x7a289c]
mov eax, dword [ebp + 0x20]
mov dword [esp], 0
xor edi, edi
mov dword [eax], edi
mov edi, edx
test ebx, ebx
jle 0x587866
mov eax, esi
xor edx, edx
div edi
add al, 0x30
mov esi, dword [ebp + 0x18]
mov ecx, edi
mov edi, dword [esp]
mov byte [esi + edi], al
mov eax, dword [ebp + 0x20]
mov edi, dword [eax]
inc edi
mov dword [esp], edi
mov dword [eax], edi
mov edi, ecx
mov esi, edx
mov eax, ecx
mov ecx, 0xcccccccd
mul ecx
dec ebx
shr edx, 3
dec dword [esp + 0xc]
jne 0x58778c
mov dword [esp + 0x18], ebx
mov edx, edi
mov ecx, dword [esp + 0x28]
shl edx, cl
xor eax, eax
test cl, 0x20
mov ebx, edx
cmovne ebx, eax
mov dword [esp + 0xc], ebx
xor ebx, ebx
shld ebx, edi, cl
test cl, 0x20
cmovne ebx, edx
mov edx, esi
shl edx, cl
test cl, 0x20
mov edi, edx
cmovne edi, eax
shld eax, esi, cl
mov esi, dword [esp + 0xc]
test cl, 0x20
cmovne eax, edx
add edi, dword [esp + 8]
adc eax, dword [esp + 4]
cmp esi, 3
mov ecx, ebx
sbb ecx, 0
jb 0x5875f0
mov ecx, esi
sub ecx, edi
mov edx, ebx
sbb edx, eax
cmp edi, ecx
mov ecx, eax
sbb ecx, edx
jae 0x587a32
mov ecx, eax
shld ecx, edi, 1
lea edx, [edi + edi]
mov esi, dword [esp + 0xc]
sub esi, edx
mov edx, ebx
sbb edx, ecx
mov dword [esp + 4], 0
xor ecx, ecx
inc ecx
cmp ecx, esi
mov esi, dword [esp + 0xc]
sbb dword [esp + 4], edx
jb 0x5879cd
jmp 0x587a32
mov dword [esp + 0x18], ebx
cmp dword [esp + 0xc], 0
je 0x587d4a
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
jle 0x5875f0
cmp eax, 2
mov edx, esi
sbb edx, 0
jb 0x5875f0
xor ebx, ebx
mov edi, 0xa
mov dword [esp + 0x10], ebx
mul edi
lea esi, [esi + esi*4]
lea ebx, [edx + esi*2]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov esi, eax
mov ecx, dword [esp + 0x28]
shrd esi, ebx, cl
mov eax, dword [esp + 0x14]
shr ebx, cl
mov dword [esp + 0x60], eax
mul edi
test cl, 0x20
cmove ebx, esi
add bl, 0x30
mov esi, dword [ebp + 0x18]
mov edi, dword [esp]
mov byte [esi + edi], bl
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edi, [ecx + ecx*4]
mov dword [esp + 0x38], edi
lea ecx, [edx + edi*2]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov dword [esp + 0x34], edx
lea edi, [edx + 1]
mov dword [esp], edi
mov dword [ecx], edi
mov edi, 0xa
mov ecx, dword [esp + 8]
and ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
and edx, dword [esp + 0x64]
dec dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp esi, 2
lea eax, [esi - 1]
mov dword [esp + 0xc], eax
mov esi, edx
mov ebx, dword [esp + 0x10]
mov eax, ecx
jb 0x587939
cmp dword [esp + 0x14], eax
mov edx, ebx
sbb edx, esi
jb 0x587898
mov dword [esp + 4], esi
cmp dword [esp + 0xc], 0
jne 0x5875f0
mov edx, dword [esp + 0x20]
mov edi, edx
mov ebx, dword [esp + 0x14]
sub edi, ebx
mov ecx, dword [esp + 0x2c]
mov esi, ecx
sbb esi, dword [esp + 0x10]
cmp ebx, edx
mov ebx, dword [esp + 0x10]
mov edx, ebx
sbb edx, ecx
jae 0x5875f0
cmp dword [esp + 0x14], edi
mov edx, ebx
sbb edx, esi
jae 0x5875f0
mov edi, dword [esp + 0x20]
mov edx, edi
sub edx, eax
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov esi, dword [esp + 4]
sbb ecx, esi
cmp eax, edx
mov edx, esi
sbb edx, ecx
jae 0x5879dd
mov edx, esi
shld edx, eax, 1
lea ecx, [eax + eax]
mov dword [esp + 8], eax
sub edi, ecx
mov ecx, dword [esp + 0x2c]
sbb ecx, edx
mov edx, 0x14
mov eax, dword [esp + 0x60]
mul edx
cmp edi, eax
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x38]
lea edx, [edx + edi*4]
sbb ecx, edx
jb 0x5879dd
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0xa8]
jmp 0x5873a9
cmp dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
mov ecx, edx
sbb ecx, esi
jae 0x5875f0
mov edi, esi
sub eax, dword [esp + 0x14]
sbb edi, edx
mov ecx, dword [esp + 0x20]
sub ecx, eax
sbb ebx, edi
cmp eax, ecx
sbb edi, ebx
jb 0x5875f0
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x34]
mov al, byte [ecx + esi]
inc al
mov byte [ecx + esi], al
test esi, esi
mov edx, dword [esp + 0x18]
jle 0x587a25
inc esi
cmp al, 0x3a
je 0x587a91
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0x3a
jne 0x5879d1
jmp 0x587d71
cmp edi, 2
mov ecx, eax
sbb ecx, 0
jb 0x5875f0
add edi, 0xffffffff
adc eax, 0xffffffff
sub esi, edi
sbb ebx, eax
cmp edi, esi
sbb eax, ebx
jb 0x5875f0
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp]
mov al, byte [edx + ecx - 1]
inc al
mov byte [edx + ecx - 1], al
cmp edx, 2
mov edx, dword [esp + 0x18]
jl 0x587a25
cmp al, 0x3a
jne 0x587a25
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp]
mov byte [ecx + esi - 1], 0x30
mov al, byte [ecx + esi - 2]
inc al
mov byte [ecx + esi - 2], al
dec esi
mov dword [esp], esi
cmp esi, 1
jg 0x587a6d
jmp 0x587a25
mov ecx, dword [ebp + 0x18]
mov byte [ecx + esi - 1], 0x30
mov al, byte [ecx + esi - 2]
inc al
mov byte [ecx + esi - 2], al
dec esi
cmp esi, 1
jg 0x587a21
jmp 0x587a25
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
shld ebx, edi, cl
shl edi, cl
test cl, 0x20
cmovne ebx, edi
mov ecx, 0
cmovne edi, ecx
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x20]
cmp edx, edi
mov esi, ecx
sbb esi, ebx
setb al
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
sbb esi, dword [esp + 0x44]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], edi
jae 0x587cbe
cmp edx, edi
sbb ecx, ebx
mov esi, eax
mov edx, dword [esp + 0x20]
mov ecx, edx
mov ebx, dword [esp + 4]
jb 0x587be6
mov edi, eax
mov dword [esp + 0x70], edi
mov esi, edi
mov dword [esp + 0x6c], edx
mov ecx, edx
add esi, dword [esp + 0x24]
adc ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
cmp esi, eax
mov edi, ecx
mov edx, dword [esp + 0x44]
sbb ecx, edx
jb 0x587b6c
sub eax, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, esi
mov esi, edx
sbb esi, dword [esp + 0x6c]
mov edx, eax
sub edx, dword [esp + 0x3c]
mov ecx, edi
sbb ecx, dword [esp + 0x44]
cmp dword [esp + 0x30], edx
sbb esi, ecx
mov esi, eax
jb 0x587bcc
mov dword [esp + 0x74], esi
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x34]
dec byte [ecx + edx]
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov esi, dword [esp + 0xc]
sbb esi, edi
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov edx, esi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x50]
sbb edx, edi
setb dl
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x74]
cmp edx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
sbb edx, dword [esp + 0x44]
jae 0x587bde
cmp ecx, eax
sbb esi, edi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x6c], ecx
jb 0x587be6
jmp 0x587b2e
mov dword [esp + 0x78], 0
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
jmp 0x587be6
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x7c]
cmp esi, edi
mov eax, ecx
sbb eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
jae 0x587bff
cmp byte [esp + 0x78], 0
je 0x587c28
xor eax, eax
inc eax
cmp eax, esi
mov eax, 0
sbb eax, ecx
setb al
cmp dword [esp + 0x4c], esi
mov esi, ecx
mov ecx, dword [esp + 0x48]
sbb ecx, esi
setae cl
and cl, al
mov dword [esp + 0x24], ecx
jmp 0x5872aa
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x50]
adc ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
cmp eax, edi
mov eax, ecx
sbb eax, dword [esp + 0x40]
jb 0x587c74
mov eax, edi
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
sbb eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
sub eax, edi
sbb ecx, dword [esp + 0x40]
cmp eax, dword [esp + 0x34]
sbb ecx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
jae 0x587bff
mov dword [esp + 0x24], 0
jmp 0x5872aa
mov ebx, ecx
mov ecx, dword [esp + 0x28]
and ecx, 0x7fefffff
or ebx, ecx
je 0x586f29
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffffe
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x1c]
shld esi, edi, 2
shl edi, 2
mov dword [esp + 0x14], ecx
jmp 0x586f29
mov edx, ebx
mov edi, dword [esp]
jmp 0x58753e
mov esi, eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 4]
jmp 0x587be6
mov ecx, dword [esp]
shld edx, ebx, 1
add ebx, ebx
dec eax
test edx, edx
js 0x586f1b
jmp 0x587cd0
mov edx, 0xfffffbce
mov esi, dword [esp]
mov ecx, dword [esp + 0x10]
mov eax, ecx
shld eax, esi, 1
add esi, esi
dec edx
bt ecx, 0x13
mov ecx, eax
jb 0x586e91
jmp 0x587cef
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x98]
movss dword [ecx], xmm0
lea eax, [esp + 0xa8]
lea edx, [esp + 0xb8]
push eax
push edx
call fcn.006e8340
movaps xmm1, xmmword [0x774f10]
jmp 0x586f73
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x1c]
jmp 0x5875ac
call fcn.006b7160
mov ebx, dword [esp + 0x18]
jmp 0x5877cb
mov edx, 0xfffffbce
mov ebx, ecx
mov edi, eax
shld edi, ebx, 1
add ebx, ebx
dec edx
bt eax, 0x13
mov eax, edi
jb 0x587649
jmp 0x587d5c
mov byte [eax], 0x31
inc edx
jmp 0x5879d1