Function at 0x405140
Capabilities:
Check mutex on windows
Copy file
Delete file
Get common file path
Get disk size
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4218e6
mov eax, dword fs:[0]
push eax
sub esp, 0xbe4
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xbdc], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0xbe4], esi
mov dword [ebp - 0xbd8], eax
xor eax, eax
mov dword [ebp - 0xbd0], esi
mov dword [ebp - 0xbf0], esi
mov dword [ebp - 0xbcc], esi
mov dword [ebp - 0xbc8], edi
movups xmmword [ebp - 0xb60], xmm0
mov dword [ebp - 0xa80], esi
mov dword [ebp - 0xa7c], 7
mov word [ebp - 0xa90], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x9fc], eax
mov dword [ebp - 0x9f8], 7
mov word [ebp - 0xa0c], ax
mov dword [ebp - 0xa14], eax
mov dword [ebp - 0xa10], 7
mov word [ebp - 0xa24], ax
mov dword [ebp - 0x980], eax
mov dword [ebp - 0x97c], 7
mov word [ebp - 0x990], ax
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa28], 7
mov word [ebp - 0xa3c], ax
mov dword [ebp - 0xa5c], eax
mov dword [ebp - 0xa58], 7
mov word [ebp - 0xa6c], ax
mov dword [ebp - 0xab8], eax
mov dword [ebp - 0xab4], 7
mov word [ebp - 0xac8], ax
mov dword [ebp - 0x9e4], eax
mov dword [ebp - 0x9e0], 7
mov word [ebp - 0x9f4], ax
mov dword [ebp - 0xa44], eax
mov dword [ebp - 0xa40], 7
mov word [ebp - 0xa54], ax
mov word [ebp - 0x140], ax
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
xor al, al
mov dword [ebp - 0xbe0], eax
mov byte [ebp - 0xbc2], al
lea eax, [ebp - 0xb18]
push 0x103
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0xbec], esi
mov dword [ebp - 0xbd4], esi
movups xmmword [ebp - 0xb38], xmm0
movups xmmword [ebp - 0xb28], xmm0
movq qword [ebp - 0xb18], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._silent
push dword [ebp - 0xbd8]
lea eax, [ebp - 0xa78]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xb70], xmm0
call fcn.00403230
add esp, 0xc
mov byte [ebp - 4], 9
mov al, byte [eax + 8]
mov byte [ebp - 0xbc1], al
call fcn.004078c0
cmp eax, 0x6000000
jb 0x4053b1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00407750
add esp, 4
cmp eax, 0x3000
jae 0x4053b1
push 0x52f
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbc1], 0
jne 0x40536c
push 0x3ef
call fcn.00403a00
add esp, 4
mov byte [ebp - 4], 8
jmp 0x406ec2
mov dword [ebp - 4], 8
call fcn.00407960
test al, al
je 0x405401
push 0xc1
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbc1], 0
jne 0x406ec2
push 0x3f0
call fcn.00403a00
add esp, 4
jmp 0x406ec2
push 0x4b0
call fcn.004039c0
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xbf0], eax
test eax, eax
je 0x405475
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405475
push 0x420
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x4b1
call fcn.004039c0
push eax
call fcn.004011b0
add esp, 8
test al, al
jne 0x406ec2
push 0x4b2
call fcn.004039c0
push eax
call fcn.004011b0
add esp, 8
jmp 0x406ec2
lea eax, [ebp - 0x30]
push eax
call fcn.0040c7f0
mov esi, eax
add esp, 4
lea eax, [ebp - 0xa0c]
cmp eax, esi
je 0x405512
mov edx, dword [ebp - 0x9f8]
cmp edx, 8
jb 0x4054d1
mov ecx, dword [ebp - 0xa0c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4054c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070cc
push edx
push ecx
call fcn.0041047f
add esp, 8
mov dword [ebp - 0x9fc], 0
xor eax, eax
mov dword [ebp - 0x9f8], 7
mov word [ebp - 0xa0c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa0c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x9fc], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40554c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405542
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070d1
push edx
push ecx
call fcn.0041047f
add esp, 8
cmp dword [ebp - 0x9f8], 8
lea eax, [ebp - 0xa0c]
cmovae eax, dword [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xb24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x940]
push eax
call fcn.00408aa0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x9a0]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x9a0], xmm0
call fcn.0040cef0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0xa24]
cmp eax, esi
je 0x405628
mov edx, dword [ebp - 0xa10]
cmp edx, 8
jb 0x4055e7
mov ecx, dword [ebp - 0xa24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4055dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070d6
push edx
push ecx
call fcn.0041047f
add esp, 8
mov dword [ebp - 0xa14], 0
xor eax, eax
mov dword [ebp - 0xa10], 7
mov word [ebp - 0xa24], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa24], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa14], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x405662
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405658
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070db
push edx
push ecx
call fcn.0041047f
add esp, 8
cmp dword [ebp - 0xa10], 8
lea eax, [ebp - 0xa24]
cmovae eax, dword [ebp - 0xa24]
push eax
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0xbd8]
lea eax, [ebp - 0xaa4]
push str._cookie
push esi
push eax
call fcn.00403230
add esp, 0xc
cmp byte [ebp - 0xa9c], 0
je 0x4056c7
mov eax, dword [ebp - 0xaa0]
cmp eax, 0x40
jae 0x4056c7
push eax
push dword [ebp - 0xaa4]
lea ecx, [ebp - 0xa90]
call fcn.004049c0
jmp 0x4056d6
lea eax, [ebp - 0xa90]
push eax
call fcn.00403110
add esp, 4
cmp dword [ebp - 0xa80], 0
je 0x405701
cmp dword [ebp - 0xa7c], 8
lea eax, [ebp - 0xa90]
cmovae eax, dword [ebp - 0xa90]
push eax
lea eax, [ebp - 0xb20]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0xb10], 0
push eax
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.00403850
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x405748
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0xb10]
lea eax, [ebp - 0xb1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb38]
lea eax, [ebp - 0xb98]
push eax
movups xmmword [ebp - 0xb98], xmm0
movups xmm0, xmmword [ebp - 0xb28]
movups xmmword [ebp - 0xb88], xmm0
movq xmm0, qword [ebp - 0xb18]
movq qword [ebp - 0xb78], xmm0
mov dword [ebp - 0xb74], str.microstub_start
call fcn.00404270
lea eax, [ebp - 0xb98]
push eax
call fcn.004042d0
push str._ppi_icd
lea eax, [ebp - 0x99c]
push esi
push eax
call fcn.00403230
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x40580a
push dword [ebp - 0xb10]
push dword [ebp - 0xbdc]
call fcn.00401bf0
mov esi, eax
add esp, 8
test esi, esi
je 0x405804
push 0x4c7
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406ec2
mov esi, dword [ebp - 0xbd8]
cmp byte [ebp - 0xbc1], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0xbdc]
mov dword [ebp - 0xb50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb4c], eax
mov eax, dword [ebp - 0xb10]
mov dword [ebp - 0xb48], eax
movq qword [ebp - 0xb44], xmm0
mov dword [ebp - 0xb3c], 0
jne 0x40586a
push 0
push 0
lea eax, [ebp - 0xb50]
push eax
push 0x401d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc0]
push eax
call fcn.00403020
add esp, 4
test al, al
jne 0x4058a5
push 3
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406ec2
push 4
push 0
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0xc0]
push eax
call fcn.00403e70
push str._cust_ini
lea eax, [ebp - 0xab0]
push esi
push eax
call fcn.00403230
add esp, 0x10
cmp byte [ebp - 0xaa8], 0
je 0x405f7d
push dword [ebp - 0xaac]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xab0]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.004049c0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
mov edx, dword [ebp - 0x948]
lea ecx, [ebp - 0x948]
mov esi, dword [ebp - 0x938]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xbcc], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xbc8], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x4059b0
cmp word [ecx], 0x22
je 0x40596d
add ecx, 2
cmp ecx, edi
jne 0x405960
cmp ecx, edi
je 0x4059b0
lea eax, [ecx + 2]
mov esi, edi
sub esi, eax
xor edx, edx
inc esi
shr esi, 1
cmp eax, edi
cmova esi, edx
test esi, esi
je 0x4059a4
movzx edi, word [eax]
cmp edi, 0x22
je 0x405994
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x405986
mov esi, dword [ebp - 0x938]
jmp 0x4059aa
mov esi, dword [ebp - 0xbcc]
mov edx, dword [ebp - 0x948]
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x4070e0
mov edi, dword [ebp - 0xbc8]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
sub esi, edi
mov dword [ebp - 0x938], esi
sub esi, edx
lea ecx, [eax + edx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edi*2]
push eax
push ecx
call fcn.00411ce0
add esp, 0xc
lea eax, [ebp - 0x948]
cmp dword [ebp - 0x934], 8
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.Enabled
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x405ed1
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.ProxyType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x405ed1
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225d4
push 0x422bf8
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xa6c]
call fcn.004049c0
push 0x3a
lea ecx, [ebp - 0xa6c]
call fcn.00404ce0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.Port
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx eax, ax
push eax
lea eax, [ebp - 0x16]
push eax
call fcn.00404650
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x950], edx
mov word [ebp - 0x960], ax
add esp, 8
lea eax, [ebp - 0x16]
mov esi, 7
mov dword [ebp - 0x94c], esi
cmp ecx, eax
je 0x405b45
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x960]
call fcn.004049c0
mov esi, dword [ebp - 0x94c]
mov edx, dword [ebp - 0x950]
mov eax, 0xc
mov dword [ebp - 0xbd0], eax
mov dword [ebp - 0xbe4], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0xa6c]
cmp esi, 8
lea eax, [ebp - 0x960]
push edx
cmovae eax, dword [ebp - 0x960]
push eax
call fcn.00403ce0
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0xb
call fcn.00402be0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225d4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xac8]
call fcn.004049c0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225d4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405e56
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x994], 0
push eax
lea eax, [ebp - 0x99c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x99c], xmm0
call fcn.004087b0
add esp, 8
mov ecx, dword [ebp - 0x998]
mov eax, dword [ebp - 0x99c]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x978]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x968], 0
mov dword [ebp - 0x964], 0xf
mov byte [ebp - 0x978], 0
call fcn.00404840
cmp dword [ebp - 0x964], 0x10
lea edx, [ebp - 0x978]
mov eax, dword [ebp - 0x968]
lea edi, [ebp - 0x978]
cmovae edx, dword [ebp - 0x978]
lea ecx, [ebp - 0x9f4]
add eax, edx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x964], 0x10
mov dword [ebp - 0xbd4], eax
cmovae edi, dword [ebp - 0x978]
cmp dword [ebp - 0x9e0], 8
mov eax, dword [ebp - 0x9e4]
cmovae ecx, dword [ebp - 0x9f4]
mov esi, dword [ebp - 0xbd4]
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0xbc8], eax
lea ecx, [ebp - 0x960]
lea eax, [ebp - 0x9f4]
cmovae eax, dword [ebp - 0x9f4]
mov dword [ebp - 0xbcc], eax
xor eax, eax
mov word [ebp - 0x960], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00404fb0
push dword [ebp - 0x9dc]
lea ecx, [ebp - 0x960]
push esi
push edi
call fcn.00404330
mov ecx, dword [ebp - 0xbcc]
lea eax, [ebp - 0x9f4]
mov edx, dword [ebp - 0xbc8]
push dword [ebp - 0x950]
sub edx, ecx
mov byte [ebp - 4], 0xf
sar edx, 1
cmp dword [ebp - 0x9e0], 8
cmovae eax, dword [ebp - 0x9f4]
sub ecx, eax
lea eax, [ebp - 0x960]
sar ecx, 1
cmp dword [ebp - 0x94c], 8
cmovae eax, dword [ebp - 0x960]
push eax
push edx
push ecx
lea ecx, [ebp - 0x9f4]
call fcn.00404e10
mov edx, dword [ebp - 0x94c]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x405dbf
mov ecx, dword [ebp - 0x960]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405db5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070e5
push edx
push ecx
call fcn.0041047f
add esp, 8
mov edx, dword [ebp - 0x964]
mov byte [ebp - 4], 0xd
cmp edx, 0x10
jb 0x405dfd
mov ecx, dword [ebp - 0x978]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405df3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070ea
push edx
push ecx
call fcn.0041047f
add esp, 8
mov ecx, dword [ebp - 0x99c]
mov dword [ebp - 0x968], 0
mov dword [ebp - 0x964], 0xf
mov byte [ebp - 0x978], 0
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x405e56
mov edx, dword [ebp - 0x994]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405e4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070ef
push edx
push ecx
call fcn.0041047f
add esp, 8
cmp dword [ebp - 0xa58], 8
lea eax, [ebp - 0xa6c]
cmovae eax, dword [ebp - 0xa6c]
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0xac8]
cmovae eax, dword [ebp - 0xac8]
cmp dword [ebp - 0x9e0], 8
mov dword [ebp - 0xb68], eax
lea eax, [ebp - 0x9f4]
cmovae eax, dword [ebp - 0x9f4]
cmp dword [ebp - 0x934], 8
mov dword [ebp - 0xb64], eax
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.AuthorizationType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0xb6c], eax
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x40
lea eax, [ebp - 0x548]
push eax
push 0x4225d4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405f33
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f11
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa3c]
call fcn.004049c0
mov edx, dword [ebp - 0x934]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x405f77
mov ecx, dword [ebp - 0x948]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070f4
push edx
push ecx
call fcn.0041047f
add esp, 8
mov esi, dword [ebp - 0xbd8]
push str._smbupd
lea eax, [ebp - 0xa78]
push esi
push eax
call fcn.00403230
add esp, 0xc
cmp byte [ebp - 0xa70], 0
je 0x4063c0
push dword [ebp - 0xa74]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xa78]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.004049c0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
mov edx, dword [ebp - 0x948]
lea ecx, [ebp - 0x948]
mov esi, dword [ebp - 0x938]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xbcc], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xbc8], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406070
nop dword [eax + eax]
cmp word [ecx], 0x22
je 0x40602d
add ecx, 2
cmp ecx, edi
jne 0x406020
cmp ecx, edi
je 0x406070
lea eax, [ecx + 2]
mov esi, edi
sub esi, eax
xor edx, edx
inc esi
shr esi, 1
cmp eax, edi
cmova esi, edx
test esi, esi
je 0x406064
movzx edi, word [eax]
cmp edi, 0x22
je 0x406054
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x406046
mov esi, dword [ebp - 0x938]
jmp 0x40606a
mov esi, dword [ebp - 0xbcc]
mov edx, dword [ebp - 0x948]
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x4070f9
mov edi, dword [ebp - 0xbc8]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
sub esi, edi
mov dword [ebp - 0x938], esi
sub esi, edx
lea ecx, [eax + edx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edi*2]
push eax
push ecx
call fcn.00411ce0
add esp, 0xc
lea eax, [ebp - 0x948]
cmp dword [ebp - 0x934], 8
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.enable
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4063b1
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.count
push str.servers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4063b1
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225d4
push str.urlpgm
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x968], 0
push eax
lea eax, [ebp - 0x3c0]
mov word [ebp - 0x978], cx
push eax
lea ecx, [ebp - 0x978]
mov dword [ebp - 0x964], 7
call fcn.004049c0
push 7
xor eax, eax
mov byte [ebp - 4], 0x11
push str.http:__
lea ecx, [ebp - 0x9a8]
mov dword [ebp - 0x998], 0
mov dword [ebp - 0x994], 7
mov word [ebp - 0x9a8], ax
call fcn.004049c0
lea eax, [ebp - 0x9a8]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x978]
push eax
call fcn.00404ae0
add esp, 8
test al, al
jne 0x40621d
push 8
push str.https:__
lea ecx, [ebp - 0x9a8]
call fcn.004049c0
lea eax, [ebp - 0x9a8]
push eax
lea eax, [ebp - 0x978]
push eax
call fcn.00404ae0
add esp, 8
test al, al
je 0x40635b
mov edi, dword [ebp - 0x998]
test edi, edi
je 0x40635b
cmp dword [ebp - 0x964], 8
lea eax, [ebp - 0x978]
mov ecx, dword [ebp - 0x968]
cmovae eax, dword [ebp - 0x978]
cmp edi, ecx
jae 0x40635b
lea edx, [eax + edi*2]
mov esi, 0
sub ecx, edi
je 0x406271
cmp word [edx], 0x2f
je 0x40626f
nop
cmp ecx, 1
je 0x406271
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x406260
mov esi, edx
test esi, esi
je 0x40635b
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x40635b
lea eax, [ebp - 0xbc2]
sub esi, edi
push eax
push esi
push edi
lea eax, [ebp - 0x978]
push eax
lea ecx, [ebp - 0x960]
call fcn.004046d0
push 0
push 0x422d44
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x13
call fcn.00404c20
mov esi, eax
cmp esi, 0xffffffff
je 0x406320
test esi, esi
je 0x406320
push esi
push 0
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0xa54]
call fcn.00404980
lea eax, [ebp - 0xbc2]
push eax
push dword [ebp - 0x950]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0x30]
call fcn.004046d0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.0041477a
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xbec], esi
call fcn.00402be0
jmp 0x406350
cmp dword [ebp - 0x94c], 8
lea eax, [ebp - 0x960]
push dword [ebp - 0x950]
cmovae eax, dword [ebp - 0x960]
lea ecx, [ebp - 0xa54]
push eax
call fcn.004049c0
mov dword [ebp - 0xbec], 0
lea ecx, [ebp - 0x960]
call fcn.00402be0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push 0x422d48
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xbe0]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0xbe0], ecx
lea ecx, [ebp - 0x9a8]
call fcn.00402be0
lea ecx, [ebp - 0x978]
call fcn.00402be0
lea ecx, [ebp - 0x948]
mov byte [ebp - 4], 8
call fcn.00402be0
call fcn.004078c0
cmp eax, 0x6010000
jb 0x40643d
push 0x7d1
call fcn.004039c0
mov dword [ebp - 0xbc8], eax
call fcn.00407a10
test al, al
mov edx, 0x8fc
mov ecx, 0x898
cmovne ecx, edx
add ecx, dword [ebp - 0xb10]
push ecx
call fcn.004039c0
mov edx, eax
add esp, 8
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406404
sub edx, esi
lea ecx, [ebp - 0x990]
sar edx, 1
push edx
push eax
call fcn.004049c0
call fcn.00407a10
test al, al
mov ecx, 0xc80
mov edx, 0xce4
cmovne ecx, edx
add ecx, dword [ebp - 0xb10]
push ecx
jmp 0x40648e
push 0x7d2
call fcn.004039c0
mov dword [ebp - 0xbc8], eax
mov eax, dword [ebp - 0xb10]
add eax, 0x834
push eax
call fcn.004039c0
mov edx, eax
add esp, 8
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406466
sub edx, esi
lea ecx, [ebp - 0x990]
sar edx, 1
push edx
push eax
call fcn.004049c0
mov eax, dword [ebp - 0xb10]
add eax, 0xc80
push eax
call fcn.004039c0
add esp, 4
mov dword [ebp - 0xbcc], eax
cmp dword [ebp - 0x97c], 8
lea ecx, [ebp - 0x990]
mov eax, dword [ebp - 0x980]
cmovae ecx, dword [ebp - 0x990]
mov dword [ebp - 0xbe8], ecx
cmp eax, 0xf
jb 0x4066b1
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0xbd4], eax
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x4064f7
cmp word [edi], 0x7b
je 0x4064f5
cmp ecx, 1
je 0x4064f7
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x4064e6
mov edx, edi
mov edi, edx
test edi, edi
je 0x4066b1
movzx ecx, word [edi]
mov edx, 0x7b
mov esi, 0xf
mov eax, str.versionSwitch
cmp ecx, edx
jb 0x406543
mov dword [ebp - 0xbdc], edi
sub dword [ebp - 0xbdc], eax
cmp cx, dx
ja 0x406543
cmp esi, 1
je 0x40654e
mov ecx, dword [ebp - 0xbdc]
add eax, 2
dec esi
movzx ecx, word [ecx + eax]
movzx edx, word [eax]
cmp cx, dx
jae 0x406526
mov eax, dword [ebp - 0xbd4]
add edi, 2
jmp 0x4064d3
sub edi, dword [ebp - 0xbe8]
sar edi, 1
cmp edi, 0xffffffff
je 0x4066b1
mov ecx, dword [ebp - 0xa2c]
test ecx, ecx
jne 0x4065ac
push 6
mov dword [ebp - 0x968], ecx
xor eax, eax
push str.stable
lea ecx, [ebp - 0x978]
mov dword [ebp - 0x964], 7
mov word [ebp - 0x978], ax
call fcn.004049c0
mov ecx, dword [ebp - 0xbd0]
lea eax, [ebp - 0x978]
mov byte [ebp - 4], 0x14
or ecx, 1
jmp 0x406650
cmp dword [ebp - 0xa28], 8
lea eax, [ebp - 0xa3c]
cmovae eax, dword [ebp - 0xa3c]
mov dword [ebp - 0xbe8], eax
cmp ecx, 8
jae 0x4065e7
movups xmm0, xmmword [eax]
mov dword [ebp - 0x950], ecx
mov dword [ebp - 0x94c], 7
movups xmmword [ebp - 0x960], xmm0
jmp 0x40663a
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x960]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403ab0
mov ecx, dword [ebp - 0xa2c]
mov dword [ebp - 0x960], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xbe8]
push eax
call fcn.00411040
mov eax, dword [ebp - 0xa2c]
add esp, 0xc
mov dword [ebp - 0x950], eax
mov dword [ebp - 0x94c], esi
mov ecx, dword [ebp - 0xbd0]
lea eax, [ebp - 0x960]
mov dword [ebp - 4], 0x15
or ecx, 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xbe4], ecx
mov dword [ebp - 0xbd0], ecx
mov ecx, dword [eax + 0x10]
jb 0x406667
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x990]
call fcn.00404e10
mov eax, dword [ebp - 0xbd0]
test al, 2
je 0x40669b
and eax, 0xfffffffd
lea ecx, [ebp - 0x960]
mov dword [ebp - 0xbd0], eax
call fcn.00402be0
mov eax, dword [ebp - 0xbd0]
mov dword [ebp - 4], 8
test al, 1
je 0x4066b1
lea ecx, [ebp - 0x978]
call fcn.00402be0
push dword [ebp - 0xbcc]
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x4c8]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x4c8]
push 0
push 0x80
push 2
push 0
push 1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40671e
push 2
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406ec2
push 4
push 0
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 0
lea eax, [ebp - 0xa98]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4067d1
cmp dword [ebp - 0xa94], 0
ja 0x4067d1
jb 0x406773
cmp dword [ebp - 0xa98], 0x6400000
jae 0x4067d1
push 0x70
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbc1], 0
jne 0x406ec2
push 0x3e9
call fcn.004039c0
push 0x3ed
mov esi, eax
call fcn.004039c0
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0xb44]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x406ec2
push 0x27
xor eax, eax
mov dword [ebp - 0x9b0], 0
push str.User_Agent:_avast__Antivirus__instup__r_n
lea ecx, [ebp - 0x9c0]
mov dword [ebp - 0x9ac], 7
mov word [ebp - 0x9c0], ax
call fcn.004049c0
cmp dword [ebp - 0xa44], 0
mov byte [ebp - 4], 0x16
je 0x406880
cmp dword [ebp - 0x9ac], 8
lea esi, [ebp - 0xb70]
push esi
lea esi, [ebp - 0xb3c]
push esi
lea edx, [ebp - 0x9c0]
cmovae edx, dword [ebp - 0x9c0]
lea esi, [ebp - 0xb40]
cmp dword [ebp - 0x97c], 8
lea ecx, [ebp - 0x990]
push esi
cmovae ecx, dword [ebp - 0x990]
lea eax, [ebp - 0xa54]
cmp dword [ebp - 0xa40], 8
push edi
cmovae eax, dword [ebp - 0xa54]
push edx
push ecx
push dword [ebp - 0xbec]
push eax
call fcn.004025d0
add esp, 0x20
test al, al
jne 0x4069dc
cmp byte [ebp - 0xbe0], al
je 0x4068d6
cmp dword [ebp - 0x9ac], 8
lea edx, [ebp - 0xb70]
push edx
lea edx, [ebp - 0xb3c]
push edx
lea edx, [ebp - 0xb40]
push edx
lea ecx, [ebp - 0x9c0]
cmovae ecx, dword [ebp - 0x9c0]
lea eax, [ebp - 0x990]
cmp dword [ebp - 0x97c], 8
push edi
cmovae eax, dword [ebp - 0x990]
push ecx
push eax
push dword [ebp - 0xbc8]
call fcn.00402490
add esp, 0x1c
test al, al
jne 0x4069dc
push 0x8ca
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbc1], 0
jne 0x4069c8
mov eax, dword [ebp - 0xb10]
cmp eax, 0x15
je 0x40693f
cmp eax, 0x16
je 0x40693f
push 0x3e9
call fcn.004039c0
push 0x3ee
mov esi, eax
call fcn.004039c0
add esp, 8
push 0x409
push 0x10
push esi
jmp 0x4069bb
push str.Avast_One
push 0x2774
call fcn.004039c0
add esp, 4
push eax
lea eax, [ebp - 0x930]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.Avast_One
push 0x2775
call fcn.004039c0
add esp, 4
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x930]
push str._r_n_r_n
push eax
call fcn.004046b0
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.004046b0
add esp, 0x1c
lea eax, [ebp - 0x930]
push 0x409
push 0x10
push str.Avast_One
push eax
push dword [ebp - 0xb44]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406ec2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push 1
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406a3a
push 0x6e
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406ec2
push 0
push edi
call fcn.00407cb0
add esp, 8
test al, al
jne 0x406a92
push 1
push edi
call fcn.00407cb0
add esp, 8
test al, al
jne 0x406a92
push 0x6fe
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406ec2
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.00403750
add esp, 8
test al, al
je 0x406aba
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xb2c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb38]
lea eax, [ebp - 0xbc0]
push eax
movups xmmword [ebp - 0xbc0], xmm0
movups xmm0, xmmword [ebp - 0xb28]
movups xmmword [ebp - 0xbb0], xmm0
movq xmm0, qword [ebp - 0xb18]
movq qword [ebp - 0xba0], xmm0
mov dword [ebp - 0xb9c], str.microstub_download
call fcn.00404270
lea eax, [ebp - 0xbc0]
push eax
call fcn.004042d0
add esp, 8
mov dword [ebp - 0x968], 0
xor eax, eax
mov dword [ebp - 0x964], 7
lea ecx, [ebp - 0x978]
mov word [ebp - 0x978], ax
push 1
push 0x422e2c
call fcn.004049c0
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x17
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b47
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x978]
call fcn.00403ce0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x960], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x950], xmm0
mov word [eax], cx
push 0x22
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x18
call fcn.00404ce0
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x9d8], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x9c8], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
lea ecx, [ebp - 0x960]
call fcn.00402be0
lea ecx, [ebp - 0x978]
mov byte [ebp - 4], 0x1b
call fcn.00402be0
mov esi, dword [ebp - 0xbd8]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c04
sub ecx, edx
sar ecx, 1
je 0x406c43
push 0x20
lea ecx, [ebp - 0x9d8]
call fcn.00404ce0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c27
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
cmp dword [ebp - 0xb20], 0
je 0x406c8c
push 9
push 0x422e30
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
mov edx, dword [ebp - 0xb20]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
mov edx, dword [ebp - 0xb28]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406cb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ce7
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
cmp word [ebp - 0x1c0], 0
je 0x406d52
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d30
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x9d8]
call fcn.00403ce0
push 0x40
lea eax, [ebp - 0xb08]
mov dword [ebp - 0xb0c], 0x44
push 0
push eax
call fcn.00411760
add esp, 0xc
lea ecx, [ebp - 0xb60]
cmp dword [ebp - 0x9c4], 8
lea eax, [ebp - 0x9d8]
cmovae eax, dword [ebp - 0x9d8]
push ecx
lea ecx, [ebp - 0xb0c]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push 0
push 0x404
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406df7
push 0x23f
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9d8]
call fcn.00402be0
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406ec2
push dword [ebp - 0xb58]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0xb5c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x406e56
push 0x236
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9d8]
call fcn.00402be0
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406ec2
mov eax, dword [ebp - 0xb44]
test eax, eax
je 0x406e70
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0xb60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x9dc]
push eax
push dword [ebp - 0xb60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x406ea8
push dword [ebp - 0x9dc]
lea eax, [ebp - 0xb18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9d8]
call fcn.00402be0
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 8
call fcn.00402be0
lea eax, [ebp - 0xb38]
push eax
call fcn.00404270
lea eax, [ebp - 0xb38]
push eax
call fcn.004042d0
add esp, 8
cmp edi, 0xffffffff
je 0x406ee9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb5c]
test eax, eax
je 0x406efa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb60]
test eax, eax
je 0x406f0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004078c0
cmp eax, 0x6010000
jb 0x40700d
push dword [ebp - 0xb1c]
call fcn.00403970
add esp, 4
test al, al
je 0x40700d
mov eax, dword [ebp - 0xb38]
cmp eax, 0x4c7
je 0x40700d
test eax, eax
jne 0x406f6a
mov eax, dword [ebp - 0xb18]
test eax, eax
je 0x40700d
cmp eax, 0xa003
je 0x40700d
cmp eax, 0xa104
je 0x40700d
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.00411760
add esp, 0xc
lea eax, [ebp - 0x3c8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40700d
push 0x2f
call fcn.00403e90
push eax
call fcn.00412254
add esp, 8
mov esi, eax
push 0x5c
call fcn.00403e90
push eax
call fcn.00412254
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x4227e0
push eax
cmovb edi, esi
call fcn.00404690
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.00404690
add esp, 0x18
push 0
call fcn.00403e90
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x40700d
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00403e90
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0xbf0]
test esi, esi
je 0x407025
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.00404000
mov esi, dword [ebp - 0xb38]
lea ecx, [ebp - 0xa54]
add esp, 4
cmp dword [ebp - 0xb18], 0x103
cmovne esi, dword [ebp - 0xb18]
call fcn.00402be0
lea ecx, [ebp - 0x9f4]
call fcn.00402be0
lea ecx, [ebp - 0xac8]
call fcn.00402be0
lea ecx, [ebp - 0xa6c]
call fcn.00402be0
lea ecx, [ebp - 0xa3c]
call fcn.00402be0
lea ecx, [ebp - 0x990]
call fcn.00402be0
lea ecx, [ebp - 0xa24]
call fcn.00402be0
lea ecx, [ebp - 0xa0c]
call fcn.00402be0
lea ecx, [ebp - 0xa90]
call fcn.00402be0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00413ed0
call fcn.00413ed0
call fcn.00413ed0
call fcn.00413ed0
call fcn.00404830
call fcn.00413ed0
call fcn.00413ed0
call fcn.00413ed0
call fcn.00413ed0
call fcn.00404830
int3