Function at 0x584690
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 [0x808040]
xor ecx, ebp
mov dword [esp + 0xc8], ecx
cmp dword [ebp + 0x10], 2
jae 0x585050
movsd qword [esp + 0x80], xmm0
mov esi, dword [esp + 0x80]
mov dword [esp + 8], 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 + 0x20], ecx
test ecx, 0x7ff00000
mov ecx, edx
mov ebx, 0xfffffbce
cmove ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, esi
cmove ecx, dword [esp + 8]
mov dword [esp + 4], ecx
mov ebx, eax
mov dword [esp + 0x30], edi
cmove ebx, edi
je 0x585586
mov dword [esp + 0x1c], edx
shld eax, esi, 0xb
mov dword [esp + 0x10], eax
shl esi, 0xb
mov dword [esp + 0x24], esi
movaps xmm1, xmmword [0x76ef10]
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 0x5855aa
mov eax, dword [esp + 0x18]
lea ecx, [eax - 1]
mov dword [esp + 0x34], 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 0x58479e
test edx, edx
jns 0x585571
mov ecx, dword [esp + 8]
or dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
je 0x585529
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 + 0x2c]
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 edi, ecx
lea eax, [esp + 0x94]
mov dword [eax], 0xffffffff
mov ecx, 0xffffff8f
mov esi, dword [esp + 0x1c]
sub ecx, esi
mov edx, 0xffffffab
sub edx, esi
push eax
mov esi, edi
push edi
push edx
push ecx
call fcn.0059f460
add esp, 0x10
mov edi, dword [edi + 4]
mov dword [esp + 0x34], edi
mov eax, edi
mov ebx, dword [esp + 0x10]
mul ebx
mov dword [esp + 8], eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
and ecx, 0xfffff800
mov eax, edi
mul ecx
mov dword [esp + 4], eax
mov dword [esp + 0x18], edx
mov edi, dword [esi]
mov eax, edi
mov dword [esp + 0x20], 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 + 0x1c]
lea edi, [esp + 0x98]
add ecx, dword [edi + 8]
mov dword [esp + 0x1c], ecx
add esi, dword [esp + 8]
mov ecx, dword [esp + 0x14]
adc ecx, 0
add esi, dword [esp + 0x18]
adc ecx, 0
add edx, 0x80000000
adc esi, eax
mov dword [esp + 0x2c], esi
adc ecx, 0
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0xbc]
mov eax, esi
mov ebx, dword [esp + 0x34]
mul ebx
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov edi, dword [esp + 0xb8]
mov eax, edi
mul ebx
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x20]
mul esi
mov dword [esp + 0x24], edx
mov ecx, eax
mov eax, edi
mul esi
xor eax, eax
add edx, ecx
setb al
add edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
adc eax, 0
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xac]
mov eax, ecx
mul ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
mov edi, dword [esp + 0xa8]
mov eax, edi
mul ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], 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 + 0x28]
adc eax, 0
add ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
adc edi, 0
add ebx, dword [esp + 0x34]
adc edi, 0
add edx, 0x80000000
adc ebx, eax
adc edi, 0
add ebx, 1
adc edi, 0
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
adc eax, 0
add ecx, dword [esp + 4]
adc eax, 0
add dword [esp + 0x10], 0x80000000
adc ecx, dword [esp + 0x30]
adc eax, 0
mov edx, ebx
sub edx, ecx
mov dword [esp + 0x5c], edx
mov ecx, edi
sbb ecx, eax
mov dword [esp + 0x58], ecx
add edx, 1
mov dword [esp + 0x20], edx
adc ecx, 0
mov dword [esp + 4], ecx
mov ecx, 0xffffffcb
sub ecx, dword [esp + 0x1c]
xor eax, eax
inc eax
xor edx, edx
shld edx, eax, cl
mov dword [esp + 0x24], eax
shl eax, cl
mov esi, ebx
shrd esi, edi, cl
mov dword [esp + 8], esi
mov esi, edi
shr esi, cl
mov dword [esp + 0x30], ecx
test cl, 0x20
cmove esi, dword [esp + 8]
cmovne edx, eax
mov ecx, 0
cmovne eax, ecx
mov dword [esp + 0x40], eax
add eax, 0xffffffff
mov dword [esp + 0x74], edx
adc edx, 0xffffffff
mov ecx, edi
mov dword [esp + 0x64], edx
and ecx, edx
mov dword [esp + 8], ecx
mov ecx, ebx
mov dword [esp + 0x34], eax
and ecx, eax
imul eax, dword [esp + 0x1c], 0x4d1
add eax, 0x23856
sar eax, 0xc
mov dword [esp + 0x10], esi
cmp dword [eax*4 + 0x79c7c0], esi
lea edx, [eax + 1]
cmova edx, eax
sub ebx, dword [esp + 0x2c]
sbb edi, dword [esp + 0x14]
mov eax, ebx
add eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov eax, edi
adc eax, 0xffffffff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x78], ebx
mov eax, ebx
mov ebx, dword [esp + 4]
add eax, 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edi
mov esi, dword [esp + 0x20]
adc edi, 0
mov dword [esp + 0x44], edi
mov eax, dword [edx*4 + 0x79c7bc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x20]
xor edi, edi
mov dword [eax], edi
add dword [esp + 0x5c], 0xfffffffd
adc dword [esp + 0x58], 0xffffffff
mov eax, edx
sar eax, 0x1f
and eax, edx
mov dword [esp + 0x70], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
nop word [eax + eax]
test edx, edx
jle 0x584b61
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
add al, 0x30
mov ebx, dword [ebp + 0x20]
mov edi, ecx
mov ecx, dword [ebx]
mov ebx, esi
mov esi, dword [ebp + 0x18]
mov byte [esi + ecx], al
xor eax, eax
mov esi, edx
mov ecx, dword [esp + 0x30]
shld eax, edx, cl
mov edx, dword [ebp + 0x20]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
inc edx
mov dword [esp + 0x10], esi
shl esi, cl
test cl, 0x20
cmovne eax, esi
mov ecx, 0
cmovne esi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], edx
mov ecx, dword [esp + 4]
add esi, edi
adc eax, dword [esp + 8]
cmp esi, ebx
mov ebx, ecx
mov dword [esp + 0x2c], eax
sbb eax, ecx
jb 0x584e61
mov eax, dword [esp + 0x14]
mov ecx, 0xcccccccd
mul ecx
shr edx, 3
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
dec edx
mov eax, dword [esp + 0x20]
cmp esi, eax
mov esi, eax
sbb dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x18]
jae 0x584ac0
jmp 0x584c2f
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x70]
nop dword [eax]
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], edx
mov eax, ecx
mov ecx, 0xa
mul ecx
mov ecx, dword [esp + 8]
lea ecx, [ecx + ecx*4]
lea ebx, [edx + ecx*2]
mov dword [esp + 8], ebx
mov edi, eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
shrd edi, ebx, cl
mov eax, dword [esp + 0x24]
shr ebx, cl
mov dword [esp + 0x2c], eax
mov edx, 0xa
mul edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, esi
mov edx, 0xa
mul edx
test cl, 0x20
cmove ebx, edi
add bl, 0x30
mov esi, dword [ebp + 0x20]
mov ecx, dword [esi]
mov edi, dword [ebp + 0x18]
mov byte [edi + ecx], bl
mov edi, dword [esp + 8]
mov ecx, dword [esp + 4]
lea ecx, [ecx + ecx*4]
lea ebx, [edx + ecx*2]
and edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
and ecx, dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
mov dword [esp + 8], edi
sbb edi, ebx
mov ecx, dword [ebp + 0x20]
mov edi, dword [ecx]
lea eax, [edi + 1]
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
lea eax, [eax + ecx*2]
mov dword [esp + 0x14], eax
jb 0x584c6e
mov edx, dword [esp + 0x1c]
dec edx
mov ecx, dword [esp + 0x18]
cmp ecx, esi
mov eax, dword [esp + 8]
sbb eax, ebx
jae 0x584b70
test byte [esp + 0xc], 1
je 0x585522
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.005c6b46
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x70], edx
mov edi, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 4], ebx
mul dword [esp + 0x78]
mov dword [esp + 0x10], edx
mov edx, edi
imul edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
mov ebx, ecx
imul ebx, dword [esp + 0x78]
add ebx, dword [esp + 0x10]
add ebx, edx
mov edx, eax
sub edx, edi
mov dword [esp + 0x10], edx
mov edx, ebx
sbb edx, ecx
add eax, edi
mov dword [esp + 0x28], eax
adc ebx, ecx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x18]
sub esi, ecx
mov edi, dword [esp + 4]
sbb edi, ebx
cmp esi, dword [esp + 0x40]
mov esi, dword [esp + 0x74]
sbb edi, esi
setb al
mov dword [esp + 0xc], eax
jb 0x584da7
mov edi, dword [esp + 0x10]
cmp ecx, edi
mov eax, ebx
mov dword [esp + 0x5c], edx
sbb eax, edx
mov eax, ebx
jae 0x584da9
mov edx, edi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 8]
mov ecx, edi
mov dword [esp + 0x3c], eax
add ecx, dword [esp + 0x40]
adc eax, esi
cmp ecx, edx
mov ebx, eax
mov esi, dword [esp + 0x5c]
sbb eax, esi
jb 0x584d49
mov eax, dword [esp + 0x10]
mov edx, eax
sub edx, edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x44], edi
mov edi, esi
sbb edi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
mov eax, ebx
sbb eax, esi
cmp dword [esp + 0xc], edx
sbb edi, eax
mov eax, dword [esp + 0x44]
jb 0x584d97
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x48]
dec byte [eax + edx]
mov eax, dword [esp + 0x20]
sub eax, ecx
mov edi, dword [esp + 4]
sbb edi, ebx
cmp eax, dword [esp + 0x40]
mov edx, edi
mov esi, dword [esp + 0x74]
sbb edx, esi
setb dl
mov dword [esp + 0xc], edx
cmp ecx, dword [esp + 0x10]
mov edx, ebx
sbb edx, dword [esp + 0x5c]
jae 0x584da7
cmp eax, dword [esp + 0x40]
sbb edi, esi
mov edi, ecx
mov dword [esp + 0x3c], ebx
mov eax, ebx
mov edx, dword [esp + 0x10]
jb 0x584da9
jmp 0x584d0d
mov dword [esp + 0xc], 0
mov ecx, eax
mov eax, dword [esp + 0x3c]
jmp 0x584da9
mov eax, ebx
cmp ecx, dword [esp + 0x28]
mov ebx, eax
mov edx, dword [esp + 0x58]
sbb eax, edx
mov dword [esp + 0x10], ebx
jae 0x584dc2
cmp byte [esp + 0xc], 0
je 0x584e18
mov esi, dword [esp + 0x2c]
mov eax, esi
mov edi, ecx
mov ecx, 0x14
mul ecx
mov ecx, dword [esp + 0x4c]
lea ecx, [edx + ecx*4]
cmp edi, eax
mov eax, ebx
sbb eax, ecx
setae cl
mov eax, esi
mov edx, 0xffffffd8
mul edx
sub edx, esi
mov esi, dword [esp + 0x70]
shl esi, 3
lea esi, [esi + esi*4]
sub edx, esi
mov esi, dword [esp + 0x20]
add eax, esi
mov ebx, dword [esp + 4]
adc edx, ebx
cmp eax, edi
sbb edx, dword [esp + 0x10]
setae al
and al, cl
mov dword [esp + 0xc], eax
jmp 0x584c18
mov edi, ecx
add ecx, dword [esp + 0x40]
mov eax, ebx
adc eax, dword [esp + 0x74]
cmp ecx, dword [esp + 0x28]
mov esi, edx
mov edx, eax
sbb edx, esi
jb 0x5855da
mov edx, dword [esp + 0x28]
sub edx, edi
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x58]
mov edi, esi
sbb edi, dword [esp + 0x10]
sub ecx, dword [esp + 0x28]
sbb eax, esi
cmp ecx, edx
sbb eax, edi
mov ecx, dword [esp + 0xc]
jae 0x584dc2
jmp 0x58555c
xor eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
shld eax, edx, cl
shl edx, cl
test cl, 0x20
cmovne eax, edx
mov ecx, 0
cmovne edx, ecx
mov edi, dword [esp + 0x20]
sub edi, esi
mov ecx, ebx
sbb ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
cmp edi, edx
mov edi, ecx
sbb edi, eax
setb bl
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x2c]
cmp esi, dword [esp + 0x4c]
mov edi, ebx
sbb edi, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
jae 0x584f97
cmp dword [esp + 0xc], edx
sbb ecx, eax
mov edi, esi
mov eax, ebx
mov ebx, dword [esp + 4]
jb 0x584fab
mov edi, esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], eax
add edi, edx
adc eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0x4c]
mov ecx, eax
sbb ecx, dword [esp + 0x3c]
jb 0x584f2b
mov ebx, dword [esp + 0x4c]
mov eax, ebx
sub eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x3c]
mov edi, eax
sbb edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
sub ecx, ebx
mov edx, dword [esp + 0xc]
sbb edx, eax
cmp dword [esp + 0x7c], ecx
sbb edi, edx
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 4]
jb 0x584f85
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x28]
dec byte [ecx + eax]
mov ecx, dword [esp + 0x20]
sub ecx, edi
mov eax, edi
mov edi, ebx
sbb edi, dword [esp + 0xc]
cmp ecx, edx
mov edx, edi
mov ebx, dword [esp + 0x54]
sbb edx, ebx
setb dl
mov dword [esp + 0x38], edx
cmp eax, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
sbb edx, dword [esp + 0x3c]
jae 0x584fa1
mov edx, dword [esp + 0x50]
cmp ecx, edx
sbb edi, ebx
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 4]
mov edi, eax
mov eax, ecx
jb 0x584fab
jmp 0x584ed9
mov dword [esp + 0x38], 0
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
jmp 0x584fab
mov edi, esi
mov eax, ebx
mov ebx, dword [esp + 4]
jmp 0x584fab
mov ebx, dword [esp + 4]
mov edi, eax
mov eax, dword [esp + 0xc]
cmp edi, dword [esp + 0x48]
mov dword [esp + 0xc], eax
sbb eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
jae 0x584fc4
cmp byte [esp + 0x38], 0
je 0x584ff5
xor eax, eax
inc eax
cmp eax, edi
mov eax, 0
mov ecx, dword [esp + 0xc]
sbb eax, ecx
mov eax, ecx
setb byte [esp + 0x28]
cmp dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x58]
sbb ecx, eax
setae cl
and cl, byte [esp + 0x28]
mov dword [esp + 0xc], ecx
jmp 0x584b45
add dword [esp + 0x50], edi
mov eax, dword [esp + 0x54]
adc eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
sbb eax, dword [esp + 0x44]
jb 0x585043
mov eax, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
sbb eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
sbb eax, dword [esp + 0x44]
cmp ecx, dword [esp + 0x28]
sbb eax, dword [esp + 0x38]
jae 0x584fc4
mov dword [esp + 0xc], 0
jmp 0x584b45
jne 0x5855ef
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 0x5855fd
shr edx, 0x14
and edx, 0x7ff
add edx, 0xfffffbcd
shld edi, ebx, 0xb
shl ebx, 0xb
movaps xmm0, xmmword [0x76ef10]
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 + 8], edx
mov edx, 0xffffffab
sub edx, esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x18], esi
push eax
lea esi, [esp + 0xbc]
push esi
push edx
push ecx
call fcn.0059f460
add esp, 0x10
mov ecx, esi
mov esi, dword [esi + 4]
mov eax, esi
mul edi
mov dword [esp + 4], edx
mov dword [esp + 0x1c], eax
mov eax, esi
mul ebx
mov dword [esp + 0x24], 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 + 0x24]
adc eax, 0
mov ebx, dword [esp + 8]
lea ecx, [esp + 0xb8]
add ebx, dword [ecx + 8]
mov dword [esp + 8], ebx
add edi, dword [esp + 0x1c]
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 + 0x20], ecx
test cl, 0x20
cmove esi, ebx
cmovne edx, eax
mov ebx, 0
cmovne eax, ebx
mov dword [esp + 0x2c], eax
add eax, 0xffffffff
mov dword [esp + 0x30], edx
adc edx, 0xffffffff
mov dword [esp + 0x64], edx
and dword [esp + 4], edx
mov dword [esp + 0x34], eax
and edi, eax
mov dword [esp + 0x24], edi
imul eax, dword [esp + 8], 0x4d1
add eax, 0x23856
sar eax, 0xc
cmp dword [eax*4 + 0x79c7c0], esi
lea ebx, [eax + 1]
cmova ebx, eax
mov edx, dword [ebx*4 + 0x79c7bc]
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], 0
xor edi, edi
mov dword [eax], edi
mov edi, edx
test ebx, ebx
jle 0x5852c6
mov eax, esi
xor edx, edx
div edi
add al, 0x30
mov esi, dword [ebp + 0x18]
mov ecx, edi
mov edi, dword [esp + 8]
mov byte [esi + edi], al
mov eax, dword [ebp + 0x20]
mov edi, dword [eax]
inc edi
mov dword [esp + 8], 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 + 0x18]
jne 0x5851ea
mov dword [esp + 0x1c], ebx
mov edx, edi
mov ecx, dword [esp + 0x20]
shl edx, cl
xor eax, eax
test cl, 0x20
mov ebx, edx
cmovne ebx, eax
mov dword [esp + 0x18], 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 + 0x18]
test cl, 0x20
cmovne eax, edx
add edi, dword [esp + 0x24]
adc eax, dword [esp + 4]
cmp esi, 3
mov ecx, ebx
sbb ecx, 0
jb 0x585522
mov ecx, esi
sub ecx, edi
mov edx, ebx
sbb edx, eax
cmp edi, ecx
mov ecx, eax
sbb ecx, edx
jae 0x58549c
mov ecx, eax
shld ecx, edi, 1
lea edx, [edi + edi]
mov esi, dword [esp + 0x18]
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 + 0x18]
sbb dword [esp + 4], edx
jb 0x58548c
jmp 0x58549c
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x18], 0
je 0x5855f4
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x24]
jle 0x585522
cmp eax, 2
mov edx, esi
sbb edx, 0
jb 0x585522
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 + 0x24], eax
mov esi, eax
mov ecx, dword [esp + 0x20]
shrd esi, ebx, cl
mov eax, dword [esp + 0x14]
shr ebx, cl
mov dword [esp + 0x28], eax
mul edi
test cl, 0x20
cmove ebx, esi
add bl, 0x30
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 8]
mov byte [esi + edi], bl
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea edi, [ecx + ecx*4]
mov dword [esp + 0x60], edi
lea ecx, [edx + edi*2]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov dword [esp + 0x40], edx
lea edi, [edx + 1]
mov dword [esp + 8], edi
mov dword [ecx], edi
mov edi, 0xa
mov ecx, dword [esp + 0x24]
and ecx, dword [esp + 0x34]
mov edx, dword [esp + 4]
and edx, dword [esp + 0x64]
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp esi, 2
lea eax, [esi - 1]
mov dword [esp + 0x18], eax
mov esi, edx
mov ebx, dword [esp + 0x10]
mov eax, ecx
jb 0x58539b
cmp dword [esp + 0x14], eax
mov edx, ebx
sbb edx, esi
jb 0x5852f8
mov dword [esp + 4], esi
cmp dword [esp + 0x18], 0
jne 0x585522
mov edx, dword [esp + 0x2c]
mov edi, edx
mov ebx, dword [esp + 0x14]
sub edi, ebx
mov ecx, dword [esp + 0x30]
mov esi, ecx
sbb esi, dword [esp + 0x10]
cmp ebx, edx
mov ebx, dword [esp + 0x10]
mov edx, ebx
sbb edx, ecx
jae 0x585522
cmp dword [esp + 0x14], edi
mov edx, ebx
sbb edx, esi
jae 0x585522
mov edi, dword [esp + 0x2c]
mov edx, edi
sub edx, eax
mov ebx, dword [esp + 0x30]
mov ecx, ebx
mov esi, dword [esp + 4]
sbb ecx, esi
cmp eax, edx
mov edx, esi
sbb edx, ecx
jb 0x585453
cmp dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
mov ecx, edx
sbb ecx, esi
jae 0x585522
mov edi, esi
sub eax, dword [esp + 0x14]
sbb edi, edx
mov ecx, dword [esp + 0x2c]
sub ecx, eax
sbb ebx, edi
cmp eax, ecx
sbb edi, ebx
jb 0x585522
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x40]
mov al, byte [ecx + esi]
inc al
mov byte [ecx + esi], al
test esi, esi
mov edx, dword [esp + 0x1c]
jle 0x585446
inc esi
cmp al, 0x3a
je 0x585501
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0x3a
jne 0x585490
jmp 0x58561b
mov edx, esi
shld edx, eax, 1
lea ecx, [eax + eax]
mov dword [esp + 0x24], eax
sub edi, ecx
mov ecx, dword [esp + 0x30]
sbb ecx, edx
mov edx, 0x14
mov eax, dword [esp + 0x28]
mul edx
cmp edi, eax
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x60]
lea edx, [edx + edi*4]
sbb ecx, edx
jb 0x5853fa
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0xa8]
jmp 0x584c41
cmp edi, 2
mov ecx, eax
sbb ecx, 0
jb 0x585522
add edi, 0xffffffff
adc eax, 0xffffffff
sub esi, edi
sbb ebx, eax
cmp edi, esi
sbb eax, ebx
jb 0x585522
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 8]
mov al, byte [edx + ecx - 1]
inc al
mov byte [edx + ecx - 1], al
cmp edx, 2
mov edx, dword [esp + 0x1c]
jl 0x585446
cmp al, 0x3a
jne 0x585446
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 8]
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 + 8], esi
cmp esi, 1
jg 0x5854d4
jmp 0x585446
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 0x58543e
jmp 0x585446
xor ebx, ebx
jmp 0x584c56
mov ebx, ecx
mov ecx, dword [esp + 0x20]
and ecx, 0x7fefffff
or ebx, ecx
je 0x5847cc
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x34]
shld esi, edi, 2
shl edi, 2
mov dword [esp + 0x14], ecx
jmp 0x5847cc
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 4]
jmp 0x584c18
mov ecx, dword [esp + 8]
shld edx, ebx, 1
add ebx, ebx
dec eax
test edx, edx
js 0x5847be
jmp 0x585575
mov edx, 0xfffffbce
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x30]
mov eax, ecx
shld eax, esi, 1
add esi, esi
dec edx
bt ecx, 0x13
mov ecx, eax
jb 0x584733
jmp 0x585595
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.006e4ba0
movaps xmm1, xmmword [0x76ef10]
jmp 0x584816
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x20]
jmp 0x584c18
call fcn.006b3610
mov ebx, dword [esp + 0x1c]
jmp 0x58522b
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 0x5850a2
jmp 0x585606
mov byte [eax], 0x31
inc edx
jmp 0x585490