Function at 0x405f50
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6031dd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21e64
call fcn.005d5ec0
mov eax, dword [0x6dadfc]
xor eax, esp
mov dword [esp + 0x21e60], eax
push ebx
push esi
push edi
mov eax, dword [0x6dadfc]
xor eax, esp
push eax
lea eax, [esp + 0x21e78]
mov dword fs:[0], eax
push 0x6e15d0
push str.1.0.1
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.005ab6f0
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408260
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21e80], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405e10
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x40602c
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406008
test dl, dl
je 0x406004
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406008
add eax, 2
add ecx, 2
test dl, dl
jne 0x405fe8
xor eax, eax
jmp 0x40600d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406027
cmp esi, ebx
jge 0x406027
push str.Trying_to_init_steam_n
call fcn.005ab6f0
add esp, 4
call fcn.00407a90
inc esi
cmp esi, ebx
jl 0x405fe0
cmp byte [0x7869b4], 0
je 0x406059
lea ecx, [esp + 0xbc]
call fcn.00406d70
lea edx, [esp + 0xbc]
mov dword [esp + 0x21e80], 0xffffffff
push edx
jmp 0x406644
lea esi, [esp + 0xbc]
call fcn.0040b680
mov eax, 0x786920
mov dword [0x6dd6c4], eax
mov dword [0x6dd6c8], eax
mov eax, dword [0x7869b8]
test eax, eax
je 0x40608e
mov edx, dword [0x6e1df0]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.005ab430
call fcn.005ab480
call fcn.005ab430
mov ecx, dword [0x786918]
mov dword [0x786a44], 0
mov dword [0x786a48], ecx
call fcn.00403d60
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6e1e54]
push 0
push 1
call fcn.005b2410
mov ecx, dword [0x6e1e54]
call fcn.005b0750
mov ecx, dword [0x6e1e54]
push 0x802
call fcn.005aea80
or ebx, 0xffffffff
push ebx
push 0
call fcn.005ab250
mov eax, dword [0x6e1e54]
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.005b9080
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x406146
jmp dword [eax*4 + 0x406670]
mov esi, dword [0x7869c0]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x6e1e54]
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.00407d80
lea eax, [esp + 0xbc]
call fcn.00404fd0
jmp 0x40637d
mov eax, dword [0x6e1e54]
fld dword [eax + 0x4a0]
mov esi, dword [0x7869c8]
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.00407d80
lea ecx, [esp + 0xbc]
call fcn.00404cb0
jmp 0x40637d
mov eax, dword [0x6e1e54]
fld dword [eax + 0x4a0]
mov esi, dword [0x7869cc]
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.00407d80
lea eax, [esp + 0xbc]
call fcn.00404810
jmp 0x40637d
mov esi, dword [0x7869d4]
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x6e1e54]
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.00407d80
lea edi, [esp + 0xbc]
call fcn.00404ac0
jmp 0x40637d
mov eax, dword [0x6e1e54]
fld dword [eax + 0x4a0]
mov esi, dword [0x7869c4]
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.00407d80
lea ebx, [esp + 0xbc]
call fcn.004054e0
mov eax, ebx
call fcn.00405980
mov ecx, ebx
call fcn.004058b0
or ebx, 0xffffffff
jmp 0x40637d
push 0
push 0x5e8
push str..main.cpp
push 0x6ab82c
call fcn.005aba00
add esp, 0x10
mov eax, dword [0x6e1e54]
mov esi, dword [0x7869d0]
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 0x40637d
push 0x3c
lea edx, [esp + 0x44]
push 0
push edx
call fcn.005d4f00
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.005b9080
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.004045c0
fild dword [0x786a3c]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6dd3e4]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4064a1
fadd dword [0x6dd3ec]
fcompp
fnstsw ax
test ah, 1
jne 0x4064a5
fild dword [0x786a40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6dd3e8]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4064a1
fadd dword [0x6dd3f0]
fcompp
fnstsw ax
test ah, 1
jne 0x4064a5
mov esi, dword [0x7869f0]
mov edi, dword [esi + 8]
test edi, edi
je 0x40648f
push 0x3c
lea edx, [esp + 0x84]
push 0
push edx
call fcn.005d4f00
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 [0x6adbdc]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x6adbd8]
fstp dword [esp]
call fcn.005b9080
add esp, 0x1c
cmp dword [0x786a44], 0
je 0x4064a5
mov byte [0x6e1dfc], 1
jmp 0x4064a5
fstp st(1)
fstp st(0)
mov ecx, dword [0x6e1e54]
call fcn.005b1520
mov ecx, dword [0x6e1e54]
push 1
call fcn.005b1c90
cmp byte [0x6e1dfc], 0
jne 0x4065b9
mov edx, dword [0x7869bc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4064eb
mov eax, dword [0x6e1df0]
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x7869b5], 0
jne 0x406562
mov eax, dword [esp + 0x20eac]
test eax, eax
je 0x406093
cmp eax, 1
jne 0x406562
lea ecx, [esp + 0x21df8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x21e2c], 0x10
mov eax, dword [esp + 0x21e18]
jae 0x406536
lea eax, [esp + 0x21e18]
push str.ONLINE
push eax
call fcn.005d4eac
add esp, 8
lea edx, [esp + 0x21df8]
test eax, eax
push edx
sete bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x406093
or ebx, 0xffffffff
lea eax, [esp + 0xbc]
call fcn.0040b7b0
mov eax, dword [0x7869b8]
test eax, eax
je 0x406588
mov edx, dword [0x6e1df0]
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 0x4065d9
sub eax, 1
je 0x4065c7
sub eax, 1
je 0x4065e5
push 0
push 0x637
push str..main.cpp
push 0x6ab82c
call fcn.005aba00
add esp, 0x10
jmp 0x4065e5
lea esi, [esp + 0xbc]
call fcn.0040b730
jmp 0x406562
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405b30
add esp, 4
jmp 0x4065e5
lea ecx, [esp + 0xbc]
call fcn.00405c00
mov eax, dword [0x7876a8]
test eax, eax
je 0x406626
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406610
mov edx, dword [0x7876a8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x7876a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x7876a8], 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 + 0x21e80], ebx
push ecx
call fcn.00408600
mov ecx, dword [esp + 0x21e78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21e60]
xor ecx, esp
call fcn.005d15f7
mov esp, ebp
pop ebp
ret