Function at 0x405e80
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61045d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21d44
call fcn.005e6160
mov eax, dword [0x6e8ddc]
xor eax, esp
mov dword [esp + 0x21d40], eax
push ebx
push esi
push edi
mov eax, dword [0x6e8ddc]
xor eax, esp
push eax
lea eax, [esp + 0x21d58]
mov dword fs:[0], eax
push 0x6efd10
push str.1.0.3
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.005bbca0
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408140
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21d60], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405d40
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x405f5c
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405f38
test dl, dl
je 0x405f34
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405f38
add eax, 2
add ecx, 2
test dl, dl
jne 0x405f18
xor eax, eax
jmp 0x405f3d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405f57
cmp esi, ebx
jge 0x405f57
push str.Trying_to_init_steam_n
call fcn.005bbca0
add esp, 4
call fcn.00407970
inc esi
cmp esi, ebx
jl 0x405f10
cmp byte [0x794a24], 0
je 0x405f7e
lea ecx, [esp + 0xbc]
call fcn.00406c50
lea edx, [esp + 0xbc]
push edx
jmp 0x406501
lea esi, [esp + 0xbc]
call fcn.0040b7c0
mov eax, 0x794990
mov dword [0x6ebdec], eax
mov dword [0x6ebdf0], eax
mov eax, dword [0x794a28]
xor ebx, ebx
cmp eax, ebx
je 0x405fb5
mov edx, dword [0x6f013c]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.005bb970
lea ebx, [ebx]
call fcn.005bb9c0
call fcn.005bb970
mov ecx, dword [0x794988]
mov dword [0x794ab8], ebx
mov dword [0x794abc], ecx
call fcn.00403e20
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6f01a4]
push ebx
push 1
call fcn.005c2aa0
mov ecx, dword [0x6f01a4]
call fcn.005c0da0
mov ecx, dword [0x6f01a4]
push 0x802
call fcn.005bf0b0
or esi, 0xffffffff
push esi
push ebx
call fcn.005bb790
mov eax, dword [0x6f01a4]
fld dword [eax + 0x4a0]
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 + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.005c95e0
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x40606b
jmp dword [eax*4 + 0x406538]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x6f01a4]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], esi
fld dword [eax + 0x49c]
mov esi, dword [0x794a30]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407c60
lea eax, [esp + 0xbc]
call fcn.00405050
jmp 0x40629d
mov eax, dword [0x6f01a4]
fld dword [eax + 0x4a0]
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], esi
fld dword [eax + 0x49c]
mov esi, dword [0x794a38]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407c60
lea ecx, [esp + 0xbc]
call fcn.00404d50
jmp 0x40629d
mov eax, dword [0x6f01a4]
fld dword [eax + 0x4a0]
lea edx, [esp + 0x28]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x3c], esi
fld dword [eax + 0x49c]
mov esi, dword [0x794a3c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407c60
lea eax, [esp + 0xbc]
call fcn.004048d0
jmp 0x40629d
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x6f01a4]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x48], esi
fld dword [eax + 0x49c]
mov esi, dword [0x794a44]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407c60
lea edi, [esp + 0xbc]
call fcn.00404b80
jmp 0x40629d
mov eax, dword [0x6f01a4]
fld dword [eax + 0x4a0]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x30], esi
fld dword [eax + 0x49c]
mov esi, dword [0x794a34]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407c60
lea edi, [esp + 0xbc]
call fcn.004054b0
mov eax, edi
call fcn.00405800
mov ecx, edi
call fcn.00405760
jmp 0x40629d
push ebx
push 0x597
push str..main.cpp
push 0x6ba5dc
call fcn.005bbf90
add esp, 0x10
mov eax, dword [0x6f01a4]
mov dword [esp + 0x20], esi
fld dword [eax + 0x49c]
mov esi, dword [0x794a40]
fstp dword [esp + 0x14]
mov edi, dword [esi + 8]
fld dword [eax + 0x4a0]
fstp dword [esp + 0x18]
cmp edi, ebx
je 0x40629d
push 0x3c
lea edx, [esp + 0x44]
push ebx
push edx
call fcn.005e5290
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.005c95e0
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404680
fild dword [0x794ab0]
mov dword [esp + 0x2c], 0xffffffff
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6eb3a4]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4063c3
fadd dword [0x6eb3ac]
fcompp
fnstsw ax
test ah, 1
jne 0x4063c7
fild dword [0x794ab4]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6eb3a8]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4063c3
fadd dword [0x6eb3b0]
fcompp
fnstsw ax
test ah, 1
jne 0x4063c7
mov esi, dword [0x794a60]
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x4063b2
push 0x3c
lea edx, [esp + 0x84]
push ebx
push edx
call fcn.005e5290
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 [0x6bc764]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x6bc760]
fstp dword [esp]
call fcn.005c95e0
add esp, 0x1c
cmp dword [0x794ab8], ebx
je 0x4063c7
mov byte [0x6f0148], 1
jmp 0x4063c7
fstp st(1)
fstp st(0)
mov ecx, dword [0x6f01a4]
call fcn.005c1b70
mov ecx, dword [0x6f01a4]
push 1
call fcn.005c22e0
cmp byte [0x6f0148], bl
jne 0x406430
mov edx, dword [0x794a2c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406407
mov eax, dword [0x6f013c]
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x794a25], bl
jne 0x40643c
mov eax, dword [esp + 0x20eac]
cmp eax, ebx
je 0x405fc0
cmp eax, 1
je 0x405fc0
jmp 0x40643c
lea esi, [esp + 0xbc]
call fcn.0040b870
lea eax, [esp + 0xbc]
call fcn.0040b8f0
mov eax, dword [0x794a28]
cmp eax, ebx
je 0x406461
mov edx, dword [0x6f013c]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x20eac]
sub eax, 1
je 0x4064a3
sub eax, 1
je 0x406491
sub eax, 1
je 0x4064af
push ebx
push 0x5e3
push str..main.cpp
push 0x6ba5dc
call fcn.005bbf90
add esp, 0x10
jmp 0x4064af
lea ecx, [esp + 0xbc]
push ecx
call fcn.004059b0
add esp, 4
jmp 0x4064af
lea ecx, [esp + 0xbc]
call fcn.00405af0
mov eax, dword [0x795708]
cmp eax, ebx
je 0x4064eb
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4064d9
mov edx, dword [0x795708]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x795708]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x795708], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0x21d64], 0xffffffff
call fcn.004084b0
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.005e1b37
mov esp, ebp
pop ebp
ret