Function at 0x406660
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46135d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov ax, word [0x47a15c]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x40], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
push str.liveupdate.ini
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push 0x47afc0
push ecx
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x46f42c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x250], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
mov ebp, 0x3e8
cmp ecx, 1
mov byte [esp + 0x250], 3
mov ebx, ebp
jg 0x4066ed
cmp dword [eax - 4], ebp
jge 0x406730
mov edi, dword [eax - 8]
cmp edi, ebp
jle 0x4066f6
mov ebx, edi
push ebx
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x406730
lea edx, [edi + edi + 2]
lea eax, [esi + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [ebx + ebx + 2]
push eax
push ecx
push edx
call fcn.00407060
mov eax, dword [esp + 0x20]
add esp, 0x10
push esi
mov dword [eax - 8], edi
call fcn.00408420
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x40]
push ecx
push ebp
push eax
push 0x47a15c
push 0x46fdac
push str.Coop
call edi
mov eax, dword [esp + 0x14]
mov ebx, ebp
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jg 0x406764
cmp dword [eax - 4], ebp
jge 0x4067ab
mov ebp, dword [eax - 8]
cmp ebp, 0x3e8
jle 0x406771
mov ebx, ebp
push ebx
lea ecx, [esp + 0x18]
call fcn.00408040
test eax, eax
je 0x4067ab
lea edx, [ebp + ebp + 2]
lea eax, [esi + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [ebx + ebx + 2]
push eax
push ecx
push edx
call fcn.00407060
mov eax, dword [esp + 0x24]
add esp, 0x10
push esi
mov dword [eax - 8], ebp
call fcn.00408420
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push 0x3e8
push eax
push 0x47a15c
push 0x46fd88
push str.Coop
call edi
mov eax, dword [esp + 0x18]
mov ebx, 0x3e8
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jg 0x4067e0
cmp dword [eax - 4], ebx
jge 0x406827
mov ebp, dword [eax - 8]
cmp ebp, 0x3e8
jle 0x4067ed
mov ebx, ebp
push ebx
lea ecx, [esp + 0x1c]
call fcn.00408040
test eax, eax
je 0x406827
lea edx, [ebp + ebp + 2]
lea eax, [esi + 0xc]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + ebx + 2]
push eax
push ecx
push edx
call fcn.00407060
mov eax, dword [esp + 0x28]
add esp, 0x10
push esi
mov dword [eax - 8], ebp
call fcn.00408420
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push 0x3e8
push eax
push 0x47a15c
push str.spid
push str.Coop
call edi
mov eax, dword [esp + 0x1c]
mov ebx, 0x3e8
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jg 0x40685c
cmp dword [eax - 4], ebx
jge 0x4068a7
mov ebp, dword [eax - 8]
cmp ebp, 0x3e8
jle 0x406869
mov ebx, ebp
push ebx
lea ecx, [esp + 0x20]
call fcn.00408040
test eax, eax
jne 0x40687b
xor ebx, ebx
jmp 0x4068a9
lea edx, [ebp + ebp + 2]
lea eax, [esi + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [ebx + ebx + 2]
push eax
push ecx
push edx
call fcn.00407060
mov eax, dword [esp + 0x2c]
add esp, 0x10
push esi
mov dword [eax - 8], ebp
call fcn.00408420
mov eax, dword [esp + 0x1c]
xor ebx, ebx
lea ecx, [esp + 0x40]
push ecx
push 0x3e8
push eax
push 0x47a15c
push str.inst
push str.Coop
call edi
lea ecx, [esp + 0x1c]
call fcn.00408290
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov word [edx + eax*2], bx
call fcn.00408290
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov word [edx + eax*2], bx
call fcn.00408290
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov word [edx + eax*2], bx
call fcn.00408290
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov word [edx + eax*2], bx
call fcn.00408290
mov esi, dword [esp + 0x14]
mov ax, word [esi]
push eax
call fcn.00455b01
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
add esp, 4
test eax, eax
je 0x40697f
push esi
call ebp
mov esi, eax
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
jne 0x40696a
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
mov ecx, dword [eax - 4]
lea edx, [edi + edi + 2]
push edx
lea edx, [ecx + ecx + 2]
push esi
push edx
push eax
call fcn.00407090
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [eax - 8], edi
call fcn.00408290
mov esi, dword [esp + 0x10]
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
je 0x4069de
push esi
call ebp
mov esi, eax
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
jne 0x4069c9
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
mov ecx, dword [eax - 4]
lea edx, [edi + edi + 2]
push edx
lea edx, [ecx + ecx + 2]
push esi
push edx
push eax
call fcn.00407090
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [eax - 8], edi
call fcn.00408290
mov esi, dword [esp + 0x1c]
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
je 0x406a3d
push esi
call ebp
mov esi, eax
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
jne 0x406a28
mov eax, dword [esp + 0x1c]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
mov ecx, dword [eax - 4]
lea edx, [edi + edi + 2]
push edx
lea edx, [ecx + ecx + 2]
push esi
push edx
push eax
call fcn.00407090
mov eax, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [eax - 8], edi
call fcn.00408290
mov esi, dword [esp + 0x18]
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
je 0x406a9c
push esi
call ebp
mov esi, eax
mov ax, word [esi]
push eax
call fcn.00455b01
add esp, 4
test eax, eax
jne 0x406a87
mov eax, dword [esp + 0x18]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
mov ecx, dword [eax - 4]
lea edx, [edi + edi + 2]
push edx
lea edx, [ecx + ecx + 2]
push esi
push edx
push eax
call fcn.00407090
mov eax, dword [esp + 0x28]
push 0x47a15c
mov dword [eax - 8], edi
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004554ed
add esp, 0x18
test eax, eax
je 0x406af6
mov edx, dword [esp + 0x14]
push str.H_UPDATE
push edx
call fcn.004554ed
add esp, 8
test eax, eax
jne 0x406c76
push 0x47a15c
lea ecx, [esp + 0x24]
call fcn.00407200
mov al, byte [esp + 0x27]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push ecx
mov bl, 5
mov ecx, esp
mov dword [esp + 0x3c], esp
push str._Installed
mov byte [esp + 0x258], bl
call fcn.00407200
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x260], 6
call fcn.00407110
mov byte [esp + 0x25c], bl
call fcn.00402610
add esp, 0xc
test eax, eax
je 0x406bb4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x406bb4
mov edi, dword [esp + 0x30]
sub edi, ecx
sar edi, 2
je 0x406bb4
xor esi, esi
test edi, edi
jle 0x406bb4
mov eax, dword [ecx + esi*4]
mov edx, dword [eax - 8]
test edx, edx
je 0x406b9c
push str.H_UPDATE
push eax
call fcn.004554ed
add esp, 8
test eax, eax
jne 0x406ba3
mov ecx, dword [esp + 0x2c]
inc esi
cmp esi, edi
jl 0x406b7c
jmp 0x406bb4
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00407360
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
jne 0x406c17
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406c09
push str.home
push eax
call fcn.004554ed
add esp, 8
test eax, eax
je 0x406c09
lea ecx, [esp + 0x10]
call fcn.00408290
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push str.O__s
push edx
call fcn.004076f0
add esp, 0xc
jmp 0x406c17
push str.H_HOME
lea ecx, [esp + 0x24]
call fcn.00407430
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x40]
push eax
push ecx
push 0x46fd88
push str.coop
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x406c54
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push ecx
push str.spid
push str.coop
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x250], 4
call fcn.004070b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 3
call fcn.00408010
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 2
call fcn.00408010
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 1
call fcn.00408010
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0
call fcn.00408010
lea ecx, [esp + 0x10]
mov dword [esp + 0x250], 0xffffffff
call fcn.00408010
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x244
ret