Function at 0x406030
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5daaad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21e8c
call fcn.005c52a0
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x21e88], eax
push ebx
push esi
push edi
mov eax, dword [0x6e8794]
xor eax, esp
push eax
lea eax, [esp + 0x21ea0]
mov dword fs:[0], eax
push 0x6fd620
push 0x6f8fd8
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.0056e890
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408310
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21ea8], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405ef0
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x40610c
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4060e8
test dl, dl
je 0x4060e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4060e8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4060c8
xor eax, eax
jmp 0x4060ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406107
cmp esi, ebx
jge 0x406107
push str.Trying_to_init_steam_n
call fcn.0056e890
add esp, 4
call fcn.00407b40
inc esi
cmp esi, ebx
jl 0x4060c0
cmp byte [0x7a65c4], 0
je 0x40612e
lea ecx, [esp + 0xbc]
call fcn.00406f90
lea edx, [esp + 0xbc]
push edx
jmp 0x4066cc
lea esi, [esp + 0xbc]
call fcn.0040bb70
mov eax, 0x7a4548
mov dword [0x6f8fd0], eax
mov dword [0x6f8fd4], eax
mov eax, dword [0x7a65c8]
xor ebx, ebx
cmp eax, ebx
je 0x406165
mov edx, dword [0x6fde40]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.0056e5d0
lea ebx, [ebx]
call fcn.0056e620
call fcn.0056e5d0
mov ecx, dword [0x7a4540]
mov dword [0x7a6658], ebx
mov dword [0x7a665c], ecx
call fcn.00403c90
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6fdeb4]
push ebx
push 1
call fcn.005756e0
mov ecx, dword [0x6fdeb4]
call fcn.005739e0
mov ecx, dword [0x6fdeb4]
push 0x802
call fcn.00571c80
or esi, 0xffffffff
push esi
push ebx
call fcn.0056e3f0
mov eax, dword [0x6fdeb4]
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.0057c210
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x40621b
jmp dword [eax*4 + 0x406700]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x6fdeb4]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], esi
fld dword [eax + 0x49c]
mov esi, dword [0x7a65d0]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407e30
lea ecx, [esp + 0xbc]
call fcn.00404f30
jmp 0x406467
mov eax, dword [0x6fdeb4]
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 [0x7a65d8]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407e30
lea ecx, [esp + 0xbc]
call fcn.00404bf0
jmp 0x406467
mov eax, dword [0x6fdeb4]
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 [0x7a65dc]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407e30
lea eax, [esp + 0xbc]
call fcn.00404750
jmp 0x406467
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x6fdeb4]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x48], esi
fld dword [eax + 0x49c]
mov esi, dword [0x7a65e4]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407e30
lea edi, [esp + 0xbc]
call fcn.00404a00
jmp 0x406467
mov ecx, dword [esp + 0x21968]
push ecx
call fcn.005a3470
mov eax, dword [0x6fdeb4]
add esp, 4
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
fld dword [eax + 0x4a0]
mov esi, dword [0x7a65d4]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407e30
lea ecx, [esp + 0xbc]
call fcn.004054c0
lea eax, [esp + 0xbc]
call fcn.00405a60
lea ecx, [esp + 0xbc]
call fcn.00405990
jmp 0x406467
push ebx
push 0x5ec
push str..main.cpp
push 0x678044
call fcn.0056eba0
add esp, 0x10
mov eax, dword [0x6fdeb4]
mov dword [esp + 0x20], esi
fld dword [eax + 0x49c]
mov esi, dword [0x7a65e0]
fstp dword [esp + 0x14]
mov edi, dword [esi + 8]
fld dword [eax + 0x4a0]
fstp dword [esp + 0x18]
cmp edi, ebx
je 0x406467
push 0x3c
lea eax, [esp + 0x44]
push ebx
push eax
call sub.MSVCR90.dll_memset
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.0057c210
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404500
fild dword [0x7a6650]
mov dword [esp + 0x2c], 0xffffffff
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6e9998]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x40658d
fadd dword [0x6e99a0]
fcompp
fnstsw ax
test ah, 1
jne 0x406591
fild dword [0x7a6654]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6e999c]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x40658d
fadd dword [0x6e99a4]
fcompp
fnstsw ax
test ah, 1
jne 0x406591
mov esi, dword [0x7a6600]
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40657c
push 0x3c
lea eax, [esp + 0x84]
push ebx
push eax
call sub.MSVCR90.dll_memset
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 [0x67a1e8]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x67a1e4]
fstp dword [esp]
call fcn.0057c210
add esp, 0x1c
cmp dword [0x7a6658], ebx
je 0x406591
mov byte [0x6fde4c], 1
jmp 0x406591
fstp st(1)
fstp st(0)
mov ecx, dword [0x6fdeb4]
call fcn.005747b0
mov ecx, dword [0x6fdeb4]
push 1
call fcn.00574f20
cmp byte [0x6fde4c], bl
jne 0x4065fa
mov eax, dword [0x7a65cc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4065d1
mov ecx, dword [0x6fde40]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x7a65c5], bl
jne 0x406606
mov eax, dword [esp + 0x20eac]
cmp eax, ebx
je 0x406170
cmp eax, 1
je 0x406170
jmp 0x406606
lea esi, [esp + 0xbc]
call fcn.0040bc20
lea eax, [esp + 0xbc]
call fcn.0040bca0
mov eax, dword [0x7a65c8]
cmp eax, ebx
je 0x40662b
mov ecx, dword [0x6fde40]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push ebx
push ecx
push eax
call edx
mov eax, dword [esp + 0x20eac]
sub eax, 1
je 0x40666d
sub eax, 1
je 0x40665b
sub eax, 1
je 0x406679
push ebx
push 0x63b
push str..main.cpp
push 0x678044
call fcn.0056eba0
add esp, 0x10
jmp 0x406679
lea eax, [esp + 0xbc]
push eax
call fcn.00405c10
add esp, 4
jmp 0x406679
lea ecx, [esp + 0xbc]
call fcn.00405ce0
mov eax, dword [0x7a6ef8]
cmp eax, ebx
je 0x4066b6
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4066a3
mov ecx, dword [0x7a6ef8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x7a6ef8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x7a6ef8], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x21eac], 0xffffffff
call fcn.004086b0
mov ecx, dword [esp + 0x21ea0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21e88]
xor ecx, esp
call fcn.005c4d04
mov esp, ebp
pop ebp
ret