Function at 0x406560
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5caced
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21d44
call fcn.00580490
mov eax, dword [0x6926dc]
xor eax, esp
mov dword [esp + 0x21d40], eax
push ebx
push esi
push edi
mov eax, dword [0x6926dc]
xor eax, esp
push eax
lea eax, [esp + 0x21d58]
mov dword fs:[0], eax
push 0x698e00
push str.0.0.0
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.0055a410
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408800
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21d60], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00406420
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x40663c
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406618
test dl, dl
je 0x406614
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406618
add eax, 2
add ecx, 2
test dl, dl
jne 0x4065f8
xor eax, eax
jmp 0x40661d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406637
cmp esi, ebx
jge 0x406637
push str.Trying_to_init_steam_n
call fcn.0055a410
add esp, 4
call fcn.00408050
inc esi
cmp esi, ebx
jl 0x4065f0
cmp byte [0x73bcac], 0
je 0x40665e
lea ecx, [esp + 0xbc]
call fcn.00407420
lea edx, [esp + 0xbc]
push edx
jmp 0x406bf0
lea esi, [esp + 0xbc]
call fcn.0040bca0
mov eax, 0x73bc18
mov dword [0x694e90], eax
mov dword [0x694e94], eax
mov eax, dword [0x73bcb0]
xor ebx, ebx
cmp eax, ebx
je 0x406695
mov edx, dword [0x69922c]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.0055a160
lea ebx, [ebx]
call fcn.0055a1b0
call fcn.0055a160
mov ecx, dword [0x73bc10]
mov dword [0x73bd3c], ebx
mov dword [0x73bd40], ecx
call fcn.00404320
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x69928c]
push ebx
push 1
call fcn.005607c0
mov ecx, dword [0x69928c]
call fcn.0055eb40
mov ecx, dword [0x69928c]
push 0x802
call fcn.0055d200
or esi, 0xffffffff
push esi
push ebx
call fcn.00559fc0
mov eax, dword [0x69928c]
fld dword [eax + 0x490]
add esp, 8
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], 0xff404040
fld dword [eax + 0x48c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.005668e0
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x40674b
jmp dword [eax*4 + 0x406c24]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x69928c]
fld dword [eax + 0x490]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73bcb8]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00408320
lea ecx, [esp + 0xbc]
call fcn.004054f0
jmp 0x40698b
mov eax, dword [0x69928c]
fld dword [eax + 0x490]
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73bcc0]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00408320
lea ecx, [esp + 0xbc]
call fcn.00405210
jmp 0x40698b
mov eax, dword [0x69928c]
fld dword [eax + 0x490]
lea edx, [esp + 0x28]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x3c], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73bcc4]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00408320
lea eax, [esp + 0xbc]
call fcn.00404db0
jmp 0x40698b
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x69928c]
fld dword [eax + 0x490]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x48], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73bccc]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00408320
lea edi, [esp + 0xbc]
call fcn.00405040
jmp 0x40698b
mov eax, dword [0x69928c]
fld dword [eax + 0x490]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x30], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73bcbc]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00408320
lea edx, [esp + 0xbc]
push edx
call fcn.00405b10
add esp, 4
lea eax, [esp + 0xbc]
call fcn.00406050
lea ecx, [esp + 0xbc]
call fcn.00405f80
jmp 0x40698b
push ebx
push 0x5b7
push str..main.cpp
push 0x666978
call fcn.0055a720
add esp, 0x10
mov eax, dword [0x69928c]
mov dword [esp + 0x20], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73bcc8]
fstp dword [esp + 0x14]
mov edi, dword [esi + 8]
fld dword [eax + 0x490]
fstp dword [esp + 0x18]
cmp edi, ebx
je 0x40698b
push 0x3c
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.0057df80
fldz
fst dword [esp + 0x48]
add esp, 0xc
fst dword [esp + 0x40]
lea ecx, [esp + 0x3c]
fld dword [esi]
push ecx
fstp dword [esp + 0x48]
push edi
lea edx, [esp + 0x28]
push edx
fst dword [esp + 0x54]
sub esp, 0x10
fld dword [esi]
fstp dword [esp + 0x68]
fld dword [esi + 4]
fstp dword [esp + 0x6c]
fst dword [esp + 0x70]
fld dword [esi + 4]
fstp dword [esp + 0x74]
fld dword [esp + 0x34]
fstp dword [esp + 0xc]
fld dword [esp + 0x30]
fstp dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call fcn.005668e0
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404b60
fild dword [0x73bd34]
mov dword [esp + 0x2c], 0xffffffff
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x694c94]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406ab1
fadd dword [0x694c9c]
fcompp
fnstsw ax
test ah, 1
jne 0x406ab5
fild dword [0x73bd38]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x694c98]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406ab1
fadd dword [0x694ca0]
fcompp
fnstsw ax
test ah, 1
jne 0x406ab5
mov esi, dword [0x73bce8]
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x406aa0
push 0x3c
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.0057df80
fldz
fst dword [esp + 0x88]
add esp, 0xc
fst dword [esp + 0x80]
lea ecx, [esp + 0x7c]
fld dword [esi]
push ecx
fstp dword [esp + 0x88]
push edi
lea edx, [esp + 0x34]
push edx
fst dword [esp + 0x94]
sub esp, 0x10
fld dword [esi]
fstp dword [esp + 0xa8]
fld dword [esi + 4]
fstp dword [esp + 0xac]
fst dword [esp + 0xb0]
fld dword [esi + 4]
fstp dword [esp + 0xb4]
fld dword [0x668530]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x66852c]
fstp dword [esp]
call fcn.005668e0
add esp, 0x1c
cmp dword [0x73bd3c], ebx
je 0x406ab5
mov byte [0x699238], 1
jmp 0x406ab5
fstp st(1)
fstp st(0)
mov ecx, dword [0x69928c]
call fcn.0055f820
mov ecx, dword [0x69928c]
push 1
call fcn.0055ff70
cmp byte [0x699238], bl
jne 0x406b1e
mov eax, dword [0x73bcb4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406af5
mov ecx, dword [0x69922c]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x73bcad], bl
jne 0x406b2a
mov eax, dword [esp + 0x20eac]
cmp eax, ebx
je 0x4066a0
cmp eax, 1
je 0x4066a0
jmp 0x406b2a
lea esi, [esp + 0xbc]
call fcn.0040bd50
lea eax, [esp + 0xbc]
call fcn.0040bdd0
mov eax, dword [0x73bcb0]
cmp eax, ebx
je 0x406b4f
mov ecx, dword [0x69922c]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push ebx
push ecx
push eax
call edx
mov eax, dword [esp + 0x20eac]
sub eax, 1
je 0x406b91
sub eax, 1
je 0x406b7f
sub eax, 1
je 0x406b9d
push ebx
push 0x603
push str..main.cpp
push 0x666978
call fcn.0055a720
add esp, 0x10
jmp 0x406b9d
lea eax, [esp + 0xbc]
push eax
call fcn.00406200
add esp, 4
jmp 0x406b9d
lea ecx, [esp + 0xbc]
call fcn.00406260
mov eax, dword [0x73c980]
cmp eax, ebx
je 0x406bda
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406bc7
mov ecx, dword [0x73c980]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x73c980]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x73c980], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x21d64], 0xffffffff
call fcn.00408b70
mov ecx, dword [esp + 0x21d58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21d40]
xor ecx, esp
call fcn.0057bc02
mov esp, ebp
pop ebp
ret