Function at 0x406210
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c2d4d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21ddc
call fcn.00595ad0
mov eax, dword [0x692dfc]
xor eax, esp
mov dword [esp + 0x21dd8], eax
push ebx
push esi
push edi
mov eax, dword [0x692dfc]
xor eax, esp
push eax
lea eax, [esp + 0x21df0]
mov dword fs:[0], eax
push 0x6994f0
push str.1.0.8
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.0056b1e0
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408570
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21df8], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.004060d0
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x4062ec
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4062c8
test dl, dl
je 0x4062c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4062c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4062a8
xor eax, eax
jmp 0x4062cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4062e7
cmp esi, ebx
jge 0x4062e7
push str.Trying_to_init_steam_n
call fcn.0056b1e0
add esp, 4
call fcn.00407da0
inc esi
cmp esi, ebx
jl 0x4062a0
cmp byte [0x73e8e4], 0
je 0x406319
lea ecx, [esp + 0xbc]
call fcn.00407080
lea edx, [esp + 0xbc]
mov dword [esp + 0x21df8], 0xffffffff
push edx
jmp 0x40690f
lea esi, [esp + 0xbc]
call fcn.0040bbc0
mov eax, 0x73e850
mov dword [0x6955d0], eax
mov dword [0x6955d4], eax
mov eax, dword [0x73e8e8]
test eax, eax
je 0x40634e
mov edx, dword [0x699d10]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.0056af20
call fcn.0056af70
call fcn.0056af20
mov ecx, dword [0x73e848]
mov dword [0x73e974], 0
mov dword [0x73e978], ecx
call fcn.00403e20
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x699d7c]
push 0
push 1
call fcn.00571f20
mov ecx, dword [0x699d7c]
call fcn.00570250
mov ecx, dword [0x699d7c]
push 0x802
call fcn.0056e540
or ebx, 0xffffffff
push ebx
push 0
call fcn.0056ad40
mov eax, dword [0x699d7c]
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.00578b10
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x406406
jmp dword [eax*4 + 0x406938]
mov esi, dword [0x73e8f0]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x699d7c]
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.00408090
lea ecx, [esp + 0xbc]
call fcn.00405090
jmp 0x406648
mov eax, dword [0x699d7c]
fld dword [eax + 0x4a0]
mov esi, dword [0x73e8f8]
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.00408090
lea ecx, [esp + 0xbc]
call fcn.00404d70
jmp 0x406648
mov eax, dword [0x699d7c]
fld dword [eax + 0x4a0]
mov esi, dword [0x73e8fc]
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.00408090
lea eax, [esp + 0xbc]
call fcn.004048d0
jmp 0x406648
mov esi, dword [0x73e904]
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x699d7c]
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.00408090
lea edi, [esp + 0xbc]
call fcn.00404b80
jmp 0x406648
mov eax, dword [0x699d7c]
fld dword [eax + 0x4a0]
mov esi, dword [0x73e8f4]
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.00408090
lea edx, [esp + 0xbc]
push edx
call fcn.004056b0
add esp, 4
lea eax, [esp + 0xbc]
call fcn.00405bf0
lea ecx, [esp + 0xbc]
call fcn.00405b20
jmp 0x406648
push 0
push 0x5e5
push str..main.cpp
push 0x66608c
call fcn.0056b4f0
add esp, 0x10
mov eax, dword [0x699d7c]
mov esi, dword [0x73e900]
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 0x406648
push 0x3c
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00594b20
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.00578b10
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404680
fild dword [0x73e96c]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6953d4]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x40676c
fadd dword [0x6953dc]
fcompp
fnstsw ax
test ah, 1
jne 0x406770
fild dword [0x73e970]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6953d8]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x40676c
fadd dword [0x6953e0]
fcompp
fnstsw ax
test ah, 1
jne 0x406770
mov esi, dword [0x73e920]
mov edi, dword [esi + 8]
test edi, edi
je 0x40675a
push 0x3c
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00594b20
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 [0x668040]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x66803c]
fstp dword [esp]
call fcn.00578b10
add esp, 0x1c
cmp dword [0x73e974], 0
je 0x406770
mov byte [0x699d1c], 1
jmp 0x406770
fstp st(1)
fstp st(0)
mov ecx, dword [0x699d7c]
call fcn.00571020
mov ecx, dword [0x699d7c]
push 1
call fcn.00571790
cmp byte [0x699d1c], 0
jne 0x406884
mov eax, dword [0x73e8ec]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4067b6
mov ecx, dword [0x699d10]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x73e8e5], 0
jne 0x40682d
mov eax, dword [esp + 0x20eac]
test eax, eax
je 0x406353
cmp eax, 1
jne 0x40682d
lea edx, [esp + 0x21d6c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x21da0], 0x10
mov eax, dword [esp + 0x21d8c]
jae 0x406801
lea eax, [esp + 0x21d8c]
push str.ONLINE
push eax
call fcn.00594acd
add esp, 8
test eax, eax
lea eax, [esp + 0x21d6c]
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x406353
or ebx, 0xffffffff
lea eax, [esp + 0xbc]
call fcn.0040bcf0
mov eax, dword [0x73e8e8]
test eax, eax
je 0x406853
mov edx, dword [0x699d10]
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 0x4068a4
sub eax, 1
je 0x406892
sub eax, 1
je 0x4068b0
push 0
push 0x634
push str..main.cpp
push 0x66608c
call fcn.0056b4f0
add esp, 0x10
jmp 0x4068b0
lea esi, [esp + 0xbc]
call fcn.0040bc70
jmp 0x40682d
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405df0
add esp, 4
jmp 0x4068b0
lea ecx, [esp + 0xbc]
call fcn.00405ec0
mov eax, dword [0x73f5c8]
test eax, eax
je 0x4068f1
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4068db
mov edx, dword [0x73f5c8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x73f5c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x73f5c8], 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 + 0x21df8], ebx
push ecx
call fcn.004088e0
mov ecx, dword [esp + 0x21df0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21dd8]
xor ecx, esp
call fcn.00591137
mov esp, ebp
pop ebp
ret