Function at 0x406110
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60b71d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21f2c
call fcn.005d5810
mov eax, dword [0x6e5e14]
xor eax, esp
mov dword [esp + 0x21f28], eax
push ebx
push esi
push edi
mov eax, dword [0x6e5e14]
xor eax, esp
push eax
lea eax, [esp + 0x21f40]
mov dword fs:[0], eax
push 0x6ec970
push str.1.0.1
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.005aac80
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408670
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21f48], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405fd0
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x4061ec
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4061c8
test dl, dl
je 0x4061c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4061c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4061a8
xor eax, eax
jmp 0x4061cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4061e7
cmp esi, ebx
jge 0x4061e7
push str.Trying_to_init_steam_n
call fcn.005aac80
add esp, 4
call fcn.00407ea0
inc esi
cmp esi, ebx
jl 0x4061a0
cmp byte [0x792124], 0
je 0x406219
lea ecx, [esp + 0xbc]
call fcn.00407180
lea edx, [esp + 0xbc]
mov dword [esp + 0x21f48], 0xffffffff
push edx
jmp 0x406807
lea esi, [esp + 0xbc]
call fcn.0040bc10
mov eax, 0x792090
mov dword [0x6e8a5c], eax
mov dword [0x6e8a60], eax
mov eax, dword [0x792128]
test eax, eax
je 0x40624e
mov edx, dword [0x6ed190]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.005aa9c0
call fcn.005aaa10
call fcn.005aa9c0
mov ecx, dword [0x792088]
mov dword [0x7921b4], 0
mov dword [0x7921b8], ecx
call fcn.00403eb0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6ed1f4]
push 0
push 1
call fcn.005b1ac0
mov ecx, dword [0x6ed1f4]
call fcn.005afda0
mov ecx, dword [0x6ed1f4]
push 0x802
call fcn.005ae080
or ebx, 0xffffffff
push ebx
push 0
call fcn.005aa7e0
mov eax, dword [0x6ed1f4]
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.005b8700
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x406306
jmp dword [eax*4 + 0x406830]
mov esi, dword [0x792130]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x6ed1f4]
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.00408190
lea eax, [esp + 0xbc]
call fcn.00405120
jmp 0x40653d
mov eax, dword [0x6ed1f4]
fld dword [eax + 0x4a0]
mov esi, dword [0x792138]
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.00408190
lea ecx, [esp + 0xbc]
call fcn.00404e00
jmp 0x40653d
mov eax, dword [0x6ed1f4]
fld dword [eax + 0x4a0]
mov esi, dword [0x79213c]
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.00408190
lea eax, [esp + 0xbc]
call fcn.00404960
jmp 0x40653d
mov esi, dword [0x792144]
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x6ed1f4]
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.00408190
lea edi, [esp + 0xbc]
call fcn.00404c10
jmp 0x40653d
mov eax, dword [0x6ed1f4]
fld dword [eax + 0x4a0]
mov esi, dword [0x792134]
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.00408190
lea ebx, [esp + 0xbc]
call fcn.00405650
mov eax, ebx
call fcn.00405af0
mov ecx, ebx
call fcn.00405a20
or ebx, 0xffffffff
jmp 0x40653d
push 0
push 0x5fd
push str..main.cpp
push 0x6b5f58
call fcn.005aaf90
add esp, 0x10
mov eax, dword [0x6ed1f4]
mov esi, dword [0x792140]
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 0x40653d
push 0x3c
lea edx, [esp + 0x44]
push 0
push edx
call fcn.005d4860
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.005b8700
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404710
fild dword [0x7921ac]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6e8778]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406661
fadd dword [0x6e8780]
fcompp
fnstsw ax
test ah, 1
jne 0x406665
fild dword [0x7921b0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6e877c]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406661
fadd dword [0x6e8784]
fcompp
fnstsw ax
test ah, 1
jne 0x406665
mov esi, dword [0x792160]
mov edi, dword [esi + 8]
test edi, edi
je 0x40664f
push 0x3c
lea edx, [esp + 0x84]
push 0
push edx
call fcn.005d4860
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 [0x6b8334]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x6b8330]
fstp dword [esp]
call fcn.005b8700
add esp, 0x1c
cmp dword [0x7921b4], 0
je 0x406665
mov byte [0x6ed19c], 1
jmp 0x406665
fstp st(1)
fstp st(0)
mov ecx, dword [0x6ed1f4]
call fcn.005b0b90
mov ecx, dword [0x6ed1f4]
push 1
call fcn.005b1300
cmp byte [0x6ed19c], 0
jne 0x406779
mov edx, dword [0x79212c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4066ab
mov eax, dword [0x6ed190]
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x792125], 0
jne 0x406722
mov eax, dword [esp + 0x20eac]
test eax, eax
je 0x406253
cmp eax, 1
jne 0x406722
lea ecx, [esp + 0x21ec0]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x21ef4], 0x10
mov eax, dword [esp + 0x21ee0]
jae 0x4066f6
lea eax, [esp + 0x21ee0]
push str.ONLINE
push eax
call fcn.005d480d
add esp, 8
lea edx, [esp + 0x21ec0]
test eax, eax
push edx
sete bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x406253
or ebx, 0xffffffff
lea eax, [esp + 0xbc]
call fcn.0040bd40
mov eax, dword [0x792128]
test eax, eax
je 0x406748
mov edx, dword [0x6ed190]
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 0x406799
sub eax, 1
je 0x406787
sub eax, 1
je 0x4067a8
push 0
push 0x64e
push str..main.cpp
push 0x6b5f58
call fcn.005aaf90
add esp, 0x10
jmp 0x4067a8
lea esi, [esp + 0xbc]
call fcn.0040bcc0
jmp 0x406722
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405cf0
add esp, 4
jmp 0x4067a8
lea ebx, [esp + 0xbc]
call fcn.00405dc0
or ebx, 0xffffffff
mov eax, dword [0x792e18]
test eax, eax
je 0x4067e9
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4067d3
mov edx, dword [0x792e18]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x792e18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x792e18], 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 + 0x21f48], ebx
push ecx
call fcn.00408a40
mov ecx, dword [esp + 0x21f40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21f28]
xor ecx, esp
call fcn.005d0de7
mov esp, ebp
pop ebp
ret