Function at 0x4060e0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60405d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21e14
call fcn.005d6890
mov eax, dword [0x6dbf2c]
xor eax, esp
mov dword [esp + 0x21e10], eax
push ebx
push esi
push edi
mov eax, dword [0x6dbf2c]
xor eax, esp
push eax
lea eax, [esp + 0x21e28]
mov dword fs:[0], eax
push 0x6e2710
push str.0.2.8
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.005abf20
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408410
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21e30], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405fa0
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x4061bc
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406198
test dl, dl
je 0x406194
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406198
add eax, 2
add ecx, 2
test dl, dl
jne 0x406178
xor eax, eax
jmp 0x40619d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4061b7
cmp esi, ebx
jge 0x4061b7
push str.Trying_to_init_steam_n
call fcn.005abf20
add esp, 4
call fcn.00407c30
inc esi
cmp esi, ebx
jl 0x406170
cmp byte [0x787b04], 0
je 0x4061e9
lea ecx, [esp + 0xbc]
call fcn.00406f10
lea edx, [esp + 0xbc]
mov dword [esp + 0x21e30], 0xffffffff
push edx
jmp 0x4067d4
lea esi, [esp + 0xbc]
call fcn.0040ba20
mov eax, 0x787a70
mov dword [0x6de7e8], eax
mov dword [0x6de7ec], eax
mov eax, dword [0x787b08]
test eax, eax
je 0x40621e
mov edx, dword [0x6e2f30]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.005abc60
call fcn.005abcb0
call fcn.005abc60
mov ecx, dword [0x787a68]
mov dword [0x787b94], 0
mov dword [0x787b98], ecx
call fcn.00403ea0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6e2f94]
push 0
push 1
call fcn.005b2cb0
mov ecx, dword [0x6e2f94]
call fcn.005b0fb0
mov ecx, dword [0x6e2f94]
push 0x802
call fcn.005af2b0
or ebx, 0xffffffff
push ebx
push 0
call fcn.005aba80
mov eax, dword [0x6e2f94]
fld dword [eax + 0x4a0]
add esp, 8
push 0
push 0
lea edx, [esp + 0x38]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], 0xff404040
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.005b9930
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x4062d6
jmp dword [eax*4 + 0x406800]
mov esi, dword [0x787b10]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x6e2f94]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407f20
lea eax, [esp + 0xbc]
call fcn.00405110
jmp 0x40650d
mov eax, dword [0x6e2f94]
fld dword [eax + 0x4a0]
mov esi, dword [0x787b18]
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407f20
lea ecx, [esp + 0xbc]
call fcn.00404df0
jmp 0x40650d
mov eax, dword [0x6e2f94]
fld dword [eax + 0x4a0]
mov esi, dword [0x787b1c]
lea edx, [esp + 0x28]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x3c], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407f20
lea eax, [esp + 0xbc]
call fcn.00404950
jmp 0x40650d
mov esi, dword [0x787b24]
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x6e2f94]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x48], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407f20
lea edi, [esp + 0xbc]
call fcn.00404c00
jmp 0x40650d
mov eax, dword [0x6e2f94]
fld dword [eax + 0x4a0]
mov esi, dword [0x787b14]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x30], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407f20
lea ebx, [esp + 0xbc]
call fcn.00405620
mov eax, ebx
call fcn.00405ac0
mov ecx, ebx
call fcn.004059f0
or ebx, 0xffffffff
jmp 0x40650d
push 0
push 0x637
push str..main.cpp
push 0x6acb3c
call fcn.005ac230
add esp, 0x10
mov eax, dword [0x6e2f94]
mov esi, dword [0x787b20]
mov dword [esp + 0x20], ebx
fld dword [eax + 0x49c]
mov edi, dword [esi + 8]
fstp dword [esp + 0x14]
fld dword [eax + 0x4a0]
fstp dword [esp + 0x18]
test edi, edi
je 0x40650d
push 0x3c
lea edx, [esp + 0x44]
push 0
push edx
call fcn.005d58e0
fldz
fst dword [esp + 0x48]
add esp, 0xc
fst dword [esp + 0x40]
lea eax, [esp + 0x3c]
fld dword [esi]
push eax
fstp dword [esp + 0x48]
push edi
lea ecx, [esp + 0x28]
push ecx
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.005b9930
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404700
fild dword [0x787b8c]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6de508]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406631
fadd dword [0x6de510]
fcompp
fnstsw ax
test ah, 1
jne 0x406635
fild dword [0x787b90]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6de50c]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406631
fadd dword [0x6de514]
fcompp
fnstsw ax
test ah, 1
jne 0x406635
mov esi, dword [0x787b40]
mov edi, dword [esi + 8]
test edi, edi
je 0x40661f
push 0x3c
lea edx, [esp + 0x84]
push 0
push edx
call fcn.005d58e0
fldz
fst dword [esp + 0x88]
add esp, 0xc
fst dword [esp + 0x80]
lea eax, [esp + 0x7c]
fld dword [esi]
push eax
fstp dword [esp + 0x88]
push edi
lea ecx, [esp + 0x34]
push ecx
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 [0x6af064]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x6af060]
fstp dword [esp]
call fcn.005b9930
add esp, 0x1c
cmp dword [0x787b94], 0
je 0x406635
mov byte [0x6e2f3c], 1
jmp 0x406635
fstp st(1)
fstp st(0)
mov ecx, dword [0x6e2f94]
call fcn.005b1d80
mov ecx, dword [0x6e2f94]
push 1
call fcn.005b24f0
cmp byte [0x6e2f3c], 0
jne 0x406749
mov edx, dword [0x787b0c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40667b
mov eax, dword [0x6e2f30]
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x787b05], 0
jne 0x4066f2
mov eax, dword [esp + 0x20eac]
test eax, eax
je 0x406223
cmp eax, 1
jne 0x4066f2
lea ecx, [esp + 0x21da8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x21ddc], 0x10
mov eax, dword [esp + 0x21dc8]
jae 0x4066c6
lea eax, [esp + 0x21dc8]
push str.ONLINE
push eax
call fcn.005d588d
add esp, 8
lea edx, [esp + 0x21da8]
test eax, eax
push edx
sete bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x406223
or ebx, 0xffffffff
lea eax, [esp + 0xbc]
call fcn.0040bb50
mov eax, dword [0x787b08]
test eax, eax
je 0x406718
mov edx, dword [0x6e2f30]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x20eac]
sub eax, 1
je 0x406769
sub eax, 1
je 0x406757
sub eax, 1
je 0x406775
push 0
push 0x686
push str..main.cpp
push 0x6acb3c
call fcn.005ac230
add esp, 0x10
jmp 0x406775
lea esi, [esp + 0xbc]
call fcn.0040bad0
jmp 0x4066f2
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405cc0
add esp, 4
jmp 0x406775
lea ecx, [esp + 0xbc]
call fcn.00405d90
mov eax, dword [0x7887f8]
test eax, eax
je 0x4067b6
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4067a0
mov edx, dword [0x7887f8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x7887f8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x7887f8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x21e30], ebx
push ecx
call fcn.00408790
mov ecx, dword [esp + 0x21e28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21e10]
xor ecx, esp
call fcn.005d1ef7
mov esp, ebp
pop ebp
ret