Function at 0x404d70
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 0x421466
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
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 - 0x7f0], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x800], esi
mov dword [ebp - 0x7ec], eax
xor eax, eax
mov dword [ebp - 0x7e4], esi
mov dword [ebp - 0x804], esi
mov dword [ebp - 0x7e0], esi
mov dword [ebp - 0x7dc], edi
movups xmmword [ebp - 0x774], xmm0
mov dword [ebp - 0x668], esi
mov dword [ebp - 0x664], 7
mov word [ebp - 0x678], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], 7
mov word [ebp - 0x63c], ax
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x610], 7
mov word [ebp - 0x624], ax
mov dword [ebp - 0x598], eax
mov dword [ebp - 0x594], 7
mov word [ebp - 0x5a8], ax
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], 7
mov word [ebp - 0x654], ax
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x67c], 7
mov word [ebp - 0x690], ax
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 0x6c0], 7
mov word [ebp - 0x6d4], ax
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 0x5f8], 7
mov word [ebp - 0x60c], ax
mov dword [ebp - 0x698], eax
mov dword [ebp - 0x694], 7
mov word [ebp - 0x6a8], ax
mov word [ebp - 0x140], ax
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
xor al, al
mov dword [ebp - 0x7fc], eax
mov byte [ebp - 0x7d6], al
lea eax, [ebp - 0x730]
push 0x103
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x7f8], esi
mov dword [ebp - 0x7e8], esi
movups xmmword [ebp - 0x750], xmm0
movups xmmword [ebp - 0x740], xmm0
movq qword [ebp - 0x730], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x7f0]
xorps xmm0, xmm0
mov dword [ebp - 0x764], eax
mov eax, dword [ebp + 0x14]
push str._silent
push dword [ebp - 0x7ec]
mov dword [ebp - 0x760], eax
lea eax, [ebp - 0x660]
push eax
movq qword [ebp - 0x75c], xmm0
mov dword [ebp - 0x754], esi
movups xmmword [ebp - 0x784], xmm0
call fcn.00402e80
add esp, 0xc
mov al, byte [eax + 8]
mov byte [ebp - 0x7d5], al
mov byte [ebp - 4], 9
call fcn.00407440
cmp eax, 0x6000000
jb 0x405004
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004072d0
add esp, 4
cmp eax, 0x3000
jae 0x405004
push 0x52f
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x7d5], 0
jne 0x404fbf
push 0x3ef
call fcn.00403650
add esp, 4
mov byte [ebp - 4], 8
jmp 0x406a42
mov dword [ebp - 4], 8
call fcn.004074e0
test al, al
je 0x405054
push 0xc1
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x7d5], 0
jne 0x406a42
push 0x3f0
call fcn.00403650
add esp, 4
jmp 0x406a42
push 0x4b0
call fcn.00403610
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x804], eax
test eax, eax
je 0x4050c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4050c8
push 0x420
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x4b1
call fcn.00403610
push eax
call fcn.004011b0
add esp, 8
test al, al
jne 0x406a42
push 0x4b2
call fcn.00403610
push eax
call fcn.004011b0
add esp, 8
jmp 0x406a42
lea eax, [ebp - 0x30]
push eax
call fcn.0040c370
mov esi, eax
add esp, 4
lea eax, [ebp - 0x63c]
cmp eax, esi
je 0x405165
mov edx, dword [ebp - 0x628]
cmp edx, 8
jb 0x405124
mov ecx, dword [ebp - 0x63c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40511a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c4c
push edx
push ecx
call fcn.0040ffff
add esp, 8
mov dword [ebp - 0x62c], 0
xor eax, eax
mov dword [ebp - 0x628], 7
mov word [ebp - 0x63c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x63c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x62c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40519f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405195
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c51
push edx
push ecx
call fcn.0040ffff
add esp, 8
cmp dword [ebp - 0x628], 8
lea eax, [ebp - 0x63c]
cmovae eax, dword [ebp - 0x63c]
push eax
lea eax, [ebp - 0x73c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x558]
push eax
call fcn.00408620
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x5d0]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x5d0], xmm0
call fcn.0040ca70
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x624]
cmp eax, esi
je 0x40527b
mov edx, dword [ebp - 0x610]
cmp edx, 8
jb 0x40523a
mov ecx, dword [ebp - 0x624]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405230
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c56
push edx
push ecx
call fcn.0040ffff
add esp, 8
mov dword [ebp - 0x614], 0
xor eax, eax
mov dword [ebp - 0x610], 7
mov word [ebp - 0x624], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x624], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x614], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4052b5
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4052ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c5b
push edx
push ecx
call fcn.0040ffff
add esp, 8
cmp dword [ebp - 0x610], 8
lea eax, [ebp - 0x624]
cmovae eax, dword [ebp - 0x624]
push eax
lea eax, [ebp - 0x740]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0x7ec]
lea eax, [ebp - 0x6e0]
push str._cookie
push esi
push eax
call fcn.00402e80
add esp, 0xc
cmp byte [ebp - 0x6d8], 0
je 0x40531a
mov eax, dword [ebp - 0x6dc]
cmp eax, 0x40
jae 0x40531a
push eax
push dword [ebp - 0x6e0]
lea ecx, [ebp - 0x678]
call fcn.004045f0
jmp 0x405329
lea eax, [ebp - 0x678]
push eax
call fcn.00402d60
add esp, 4
cmp dword [ebp - 0x668], 0
je 0x405354
cmp dword [ebp - 0x664], 8
lea eax, [ebp - 0x678]
cmovae eax, dword [ebp - 0x678]
push eax
lea eax, [ebp - 0x738]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x728], 0
push eax
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.004034a0
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x40539b
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x748]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x728]
lea eax, [ebp - 0x734]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0x750]
lea eax, [ebp - 0x7ac]
push eax
movups xmmword [ebp - 0x7ac], xmm0
movups xmm0, xmmword [ebp - 0x740]
movups xmmword [ebp - 0x79c], xmm0
movq xmm0, qword [ebp - 0x730]
movq qword [ebp - 0x78c], xmm0
mov dword [ebp - 0x788], str.microstub_start
call fcn.00403ec0
lea eax, [ebp - 0x7ac]
push eax
call fcn.00403f20
push str._ppi_icd
lea eax, [ebp - 0x5cc]
push esi
push eax
call fcn.00402e80
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x40545d
push dword [ebp - 0x728]
push dword [ebp - 0x7f0]
call fcn.00401930
mov esi, eax
add esp, 8
test esi, esi
je 0x405457
push 0x4c7
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406a42
mov esi, dword [ebp - 0x7ec]
cmp byte [ebp - 0x7d5], 0
jne 0x405487
push 0
push 0
lea eax, [ebp - 0x764]
push eax
push 0x401ad0
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.00402c70
add esp, 4
test al, al
jne 0x4054c2
push 3
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406a42
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.00403ac0
push str._cust_ini
lea eax, [ebp - 0x6bc]
push esi
push eax
call fcn.00402e80
add esp, 0x10
cmp byte [ebp - 0x6b4], 0
je 0x405b9d
push dword [ebp - 0x6b8]
xor eax, eax
mov dword [ebp - 0x550], 0
push dword [ebp - 0x6bc]
lea ecx, [ebp - 0x560]
mov dword [ebp - 0x54c], 7
mov word [ebp - 0x560], ax
call fcn.004045f0
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
mov edx, dword [ebp - 0x560]
lea ecx, [ebp - 0x560]
mov esi, dword [ebp - 0x550]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x7e0], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x7dc], eax
lea eax, [ebp - 0x560]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x4055d0
nop dword [eax]
cmp word [ecx], 0x22
je 0x40558d
add ecx, 2
cmp ecx, edi
jne 0x405580
cmp ecx, edi
je 0x4055d0
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 0x4055c4
movzx edi, word [eax]
cmp edi, 0x22
je 0x4055b4
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x4055a6
mov esi, dword [ebp - 0x550]
jmp 0x4055ca
mov esi, dword [ebp - 0x7e0]
mov edx, dword [ebp - 0x560]
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x406c60
mov edi, dword [ebp - 0x7dc]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
sub esi, edi
mov dword [ebp - 0x550], 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.00411860
add esp, 0xc
lea eax, [ebp - 0x560]
cmp dword [ebp - 0x54c], 8
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.Enabled
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x405af1
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.ProxyType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x405af1
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225a4
push 0x422ba8
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x690]
call fcn.004045f0
push 0x3a
lea ecx, [ebp - 0x690]
call fcn.00404910
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
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.004042a0
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x568], edx
mov word [ebp - 0x578], ax
add esp, 8
lea eax, [ebp - 0x16]
mov esi, 7
mov dword [ebp - 0x564], esi
cmp ecx, eax
je 0x405765
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x578]
call fcn.004045f0
mov esi, dword [ebp - 0x564]
mov edx, dword [ebp - 0x568]
mov eax, 0xc
mov dword [ebp - 0x7e4], eax
mov dword [ebp - 0x800], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x690]
cmp esi, 8
lea eax, [ebp - 0x578]
push edx
cmovae eax, dword [ebp - 0x578]
push eax
call fcn.00403930
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0xb
call fcn.00402830
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225a4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.004045f0
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225a4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405a76
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x5c4], 0
push eax
lea eax, [ebp - 0x5cc]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x5cc], xmm0
call fcn.00408330
add esp, 8
mov ecx, dword [ebp - 0x5c8]
mov eax, dword [ebp - 0x5cc]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x57c], 0xf
mov byte [ebp - 0x590], 0
call fcn.00404470
cmp dword [ebp - 0x57c], 0x10
lea edx, [ebp - 0x590]
mov eax, dword [ebp - 0x580]
lea edi, [ebp - 0x590]
cmovae edx, dword [ebp - 0x590]
lea ecx, [ebp - 0x60c]
add eax, edx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x57c], 0x10
mov dword [ebp - 0x7e8], eax
cmovae edi, dword [ebp - 0x590]
cmp dword [ebp - 0x5f8], 8
mov eax, dword [ebp - 0x5fc]
cmovae ecx, dword [ebp - 0x60c]
mov esi, dword [ebp - 0x7e8]
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0x7dc], eax
lea ecx, [ebp - 0x578]
lea eax, [ebp - 0x60c]
cmovae eax, dword [ebp - 0x60c]
mov dword [ebp - 0x7e0], eax
xor eax, eax
mov word [ebp - 0x578], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00404be0
push dword [ebp - 0x5f4]
lea ecx, [ebp - 0x578]
push esi
push edi
call fcn.00403f80
mov ecx, dword [ebp - 0x7e0]
lea eax, [ebp - 0x60c]
mov edx, dword [ebp - 0x7dc]
push dword [ebp - 0x568]
sub edx, ecx
mov byte [ebp - 4], 0xf
sar edx, 1
cmp dword [ebp - 0x5f8], 8
cmovae eax, dword [ebp - 0x60c]
sub ecx, eax
lea eax, [ebp - 0x578]
sar ecx, 1
cmp dword [ebp - 0x564], 8
cmovae eax, dword [ebp - 0x578]
push eax
push edx
push ecx
lea ecx, [ebp - 0x60c]
call fcn.00404a40
mov edx, dword [ebp - 0x564]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x4059df
mov ecx, dword [ebp - 0x578]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c65
push edx
push ecx
call fcn.0040ffff
add esp, 8
mov edx, dword [ebp - 0x57c]
mov byte [ebp - 4], 0xd
cmp edx, 0x10
jb 0x405a1d
mov ecx, dword [ebp - 0x590]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c6a
push edx
push ecx
call fcn.0040ffff
add esp, 8
mov ecx, dword [ebp - 0x5cc]
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x57c], 0xf
mov byte [ebp - 0x590], 0
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x405a76
mov edx, dword [ebp - 0x5c4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405a6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c6f
push edx
push ecx
call fcn.0040ffff
add esp, 8
cmp dword [ebp - 0x67c], 8
lea eax, [ebp - 0x690]
cmovae eax, dword [ebp - 0x690]
cmp dword [ebp - 0x6c0], 8
mov dword [ebp - 0x784], eax
lea eax, [ebp - 0x6d4]
cmovae eax, dword [ebp - 0x6d4]
cmp dword [ebp - 0x5f8], 8
mov dword [ebp - 0x77c], eax
lea eax, [ebp - 0x60c]
cmovae eax, dword [ebp - 0x60c]
cmp dword [ebp - 0x54c], 8
mov dword [ebp - 0x778], eax
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.AuthorizationType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x780], eax
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x40
lea eax, [ebp - 0x548]
push eax
push 0x4225a4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405b53
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b31
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.004045f0
mov edx, dword [ebp - 0x54c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x405b97
mov ecx, dword [ebp - 0x560]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c74
push edx
push ecx
call fcn.0040ffff
add esp, 8
mov esi, dword [ebp - 0x7ec]
push str._smbupd
lea eax, [ebp - 0x660]
push esi
push eax
call fcn.00402e80
add esp, 0xc
cmp byte [ebp - 0x658], 0
je 0x405fe0
push dword [ebp - 0x65c]
xor eax, eax
mov dword [ebp - 0x550], 0
push dword [ebp - 0x660]
lea ecx, [ebp - 0x560]
mov dword [ebp - 0x54c], 7
mov word [ebp - 0x560], ax
call fcn.004045f0
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
mov edx, dword [ebp - 0x560]
lea ecx, [ebp - 0x560]
mov esi, dword [ebp - 0x550]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x7e0], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x7dc], eax
lea eax, [ebp - 0x560]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x405c90
nop dword [eax + eax]
cmp word [ecx], 0x22
je 0x405c4d
add ecx, 2
cmp ecx, edi
jne 0x405c40
cmp ecx, edi
je 0x405c90
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 0x405c84
movzx edi, word [eax]
cmp edi, 0x22
je 0x405c74
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x405c66
mov esi, dword [ebp - 0x550]
jmp 0x405c8a
mov esi, dword [ebp - 0x7e0]
mov edx, dword [ebp - 0x560]
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x406c79
mov edi, dword [ebp - 0x7dc]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
sub esi, edi
mov dword [ebp - 0x550], 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.00411860
add esp, 0xc
lea eax, [ebp - 0x560]
cmp dword [ebp - 0x54c], 8
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.enable
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x405fd1
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.count
push str.servers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x405fd1
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225a4
push str.urlpgm
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x580], 0
push eax
lea eax, [ebp - 0x3c0]
mov word [ebp - 0x590], cx
push eax
lea ecx, [ebp - 0x590]
mov dword [ebp - 0x57c], 7
call fcn.004045f0
push 7
xor eax, eax
mov byte [ebp - 4], 0x11
push str.http:__
lea ecx, [ebp - 0x5d8]
mov dword [ebp - 0x5c8], 0
mov dword [ebp - 0x5c4], 7
mov word [ebp - 0x5d8], ax
call fcn.004045f0
lea eax, [ebp - 0x5d8]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x590]
push eax
call fcn.00404710
add esp, 8
test al, al
jne 0x405e3d
push 8
push str.https:__
lea ecx, [ebp - 0x5d8]
call fcn.004045f0
lea eax, [ebp - 0x5d8]
push eax
lea eax, [ebp - 0x590]
push eax
call fcn.00404710
add esp, 8
test al, al
je 0x405f7b
mov edi, dword [ebp - 0x5c8]
test edi, edi
je 0x405f7b
cmp dword [ebp - 0x57c], 8
lea eax, [ebp - 0x590]
mov ecx, dword [ebp - 0x580]
cmovae eax, dword [ebp - 0x590]
cmp edi, ecx
jae 0x405f7b
lea edx, [eax + edi*2]
mov esi, 0
sub ecx, edi
je 0x405e91
cmp word [edx], 0x2f
je 0x405e8f
nop
cmp ecx, 1
je 0x405e91
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x405e80
mov esi, edx
test esi, esi
je 0x405f7b
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x405f7b
lea eax, [ebp - 0x7d6]
sub esi, edi
push eax
push esi
push edi
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x578]
call fcn.00404300
push 0
push 0x422cf4
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0x13
call fcn.00404850
mov esi, eax
cmp esi, 0xffffffff
je 0x405f40
test esi, esi
je 0x405f40
push esi
push 0
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.004045b0
lea eax, [ebp - 0x7d6]
push eax
push dword [ebp - 0x568]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404300
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.004142fa
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7f8], esi
call fcn.00402830
jmp 0x405f70
cmp dword [ebp - 0x564], 8
lea eax, [ebp - 0x578]
push dword [ebp - 0x568]
cmovae eax, dword [ebp - 0x578]
lea ecx, [ebp - 0x6a8]
push eax
call fcn.004045f0
mov dword [ebp - 0x7f8], 0
lea ecx, [ebp - 0x578]
call fcn.00402830
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push 0x422cf8
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x7fc]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x7fc], ecx
lea ecx, [ebp - 0x5d8]
call fcn.00402830
lea ecx, [ebp - 0x590]
call fcn.00402830
lea ecx, [ebp - 0x560]
mov byte [ebp - 4], 8
call fcn.00402830
call fcn.00407440
cmp eax, 0x6010000
jb 0x40605d
push 0x7d1
call fcn.00403610
mov dword [ebp - 0x7dc], eax
call fcn.00407590
test al, al
mov edx, 0x8fc
mov ecx, 0x898
cmovne ecx, edx
add ecx, dword [ebp - 0x728]
push ecx
call fcn.00403610
mov edx, eax
add esp, 8
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406024
sub edx, esi
lea ecx, [ebp - 0x5a8]
sar edx, 1
push edx
push eax
call fcn.004045f0
call fcn.00407590
test al, al
mov ecx, 0xc80
mov edx, 0xce4
cmovne ecx, edx
add ecx, dword [ebp - 0x728]
push ecx
jmp 0x4060ae
push 0x7d2
call fcn.00403610
mov dword [ebp - 0x7dc], eax
mov eax, dword [ebp - 0x728]
add eax, 0x834
push eax
call fcn.00403610
mov edx, eax
add esp, 8
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406086
sub edx, esi
lea ecx, [ebp - 0x5a8]
sar edx, 1
push edx
push eax
call fcn.004045f0
mov eax, dword [ebp - 0x728]
add eax, 0xc80
push eax
call fcn.00403610
add esp, 4
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x594], 8
lea ecx, [ebp - 0x5a8]
mov eax, dword [ebp - 0x598]
cmovae ecx, dword [ebp - 0x5a8]
mov dword [ebp - 0x7f4], ecx
cmp eax, 0xf
jb 0x4062d1
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x7e8], eax
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x406117
cmp word [edi], 0x7b
je 0x406115
cmp ecx, 1
je 0x406117
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x406106
mov edx, edi
mov edi, edx
test edi, edi
je 0x4062d1
movzx ecx, word [edi]
mov edx, 0x7b
mov esi, 0xf
mov eax, str.versionSwitch
cmp ecx, edx
jb 0x406163
mov dword [ebp - 0x7f0], edi
sub dword [ebp - 0x7f0], eax
cmp cx, dx
ja 0x406163
cmp esi, 1
je 0x40616e
mov ecx, dword [ebp - 0x7f0]
add eax, 2
dec esi
movzx ecx, word [ecx + eax]
movzx edx, word [eax]
cmp cx, dx
jae 0x406146
mov eax, dword [ebp - 0x7e8]
add edi, 2
jmp 0x4060f3
sub edi, dword [ebp - 0x7f4]
sar edi, 1
cmp edi, 0xffffffff
je 0x4062d1
mov ecx, dword [ebp - 0x644]
test ecx, ecx
jne 0x4061cc
push 6
mov dword [ebp - 0x580], ecx
xor eax, eax
push str.stable
lea ecx, [ebp - 0x590]
mov dword [ebp - 0x57c], 7
mov word [ebp - 0x590], ax
call fcn.004045f0
mov ecx, dword [ebp - 0x7e4]
lea eax, [ebp - 0x590]
mov byte [ebp - 4], 0x14
or ecx, 1
jmp 0x406270
cmp dword [ebp - 0x640], 8
lea eax, [ebp - 0x654]
cmovae eax, dword [ebp - 0x654]
mov dword [ebp - 0x7f4], eax
cmp ecx, 8
jae 0x406207
movups xmm0, xmmword [eax]
mov dword [ebp - 0x568], ecx
mov dword [ebp - 0x564], 7
movups xmmword [ebp - 0x578], xmm0
jmp 0x40625a
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x578]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403700
mov ecx, dword [ebp - 0x644]
mov dword [ebp - 0x578], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x7f4]
push eax
call fcn.00410bc0
mov eax, dword [ebp - 0x644]
add esp, 0xc
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], esi
mov ecx, dword [ebp - 0x7e4]
lea eax, [ebp - 0x578]
mov dword [ebp - 4], 0x15
or ecx, 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x800], ecx
mov dword [ebp - 0x7e4], ecx
mov ecx, dword [eax + 0x10]
jb 0x406287
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x5a8]
call fcn.00404a40
mov eax, dword [ebp - 0x7e4]
test al, 2
je 0x4062bb
and eax, 0xfffffffd
lea ecx, [ebp - 0x578]
mov dword [ebp - 0x7e4], eax
call fcn.00402830
mov eax, dword [ebp - 0x7e4]
mov dword [ebp - 4], 8
test al, 1
je 0x4062d1
lea ecx, [ebp - 0x590]
call fcn.00402830
push dword [ebp - 0x7e0]
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 0x40633e
push 2
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406a42
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 - 0x6b0]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4063f1
cmp dword [ebp - 0x6ac], 0
ja 0x4063f1
jb 0x406393
cmp dword [ebp - 0x6b0], 0x6400000
jae 0x4063f1
push 0x70
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x7d5], 0
jne 0x406a42
push 0x3e9
call fcn.00403610
push 0x3ed
mov esi, eax
call fcn.00403610
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0x75c]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x406a42
push 0x27
xor eax, eax
mov dword [ebp - 0x5b0], 0
push str.User_Agent:_avast__Antivirus__instup__r_n
lea ecx, [ebp - 0x5c0]
mov dword [ebp - 0x5ac], 7
mov word [ebp - 0x5c0], ax
call fcn.004045f0
cmp dword [ebp - 0x698], 0
mov byte [ebp - 4], 0x16
je 0x4064a0
cmp dword [ebp - 0x5ac], 8
lea esi, [ebp - 0x784]
push esi
lea esi, [ebp - 0x754]
push esi
lea edx, [ebp - 0x5c0]
cmovae edx, dword [ebp - 0x5c0]
lea esi, [ebp - 0x758]
cmp dword [ebp - 0x594], 8
lea ecx, [ebp - 0x5a8]
push esi
cmovae ecx, dword [ebp - 0x5a8]
lea eax, [ebp - 0x6a8]
cmp dword [ebp - 0x694], 8
push edi
cmovae eax, dword [ebp - 0x6a8]
push edx
push ecx
push dword [ebp - 0x7f8]
push eax
call fcn.00402220
add esp, 0x20
test al, al
jne 0x406563
cmp byte [ebp - 0x7fc], al
je 0x4064f2
cmp dword [ebp - 0x5ac], 8
lea edx, [ebp - 0x784]
push edx
lea edx, [ebp - 0x754]
push edx
lea edx, [ebp - 0x758]
push edx
lea ecx, [ebp - 0x5c0]
cmovae ecx, dword [ebp - 0x5c0]
lea eax, [ebp - 0x5a8]
cmp dword [ebp - 0x594], 8
push edi
cmovae eax, dword [ebp - 0x5a8]
push ecx
push eax
push dword [ebp - 0x7dc]
call fcn.004020e0
add esp, 0x1c
test al, al
jne 0x406563
push 0x8ca
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x7d5], 0
jne 0x40654f
push 0x3e9
call fcn.00403610
push 0x3ee
mov esi, eax
call fcn.00403610
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0x75c]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402830
jmp 0x406a42
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 0x4065c1
push 0x6e
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402830
jmp 0x406a42
push 0
push edi
call fcn.00407830
add esp, 8
test al, al
jne 0x406619
push 1
push edi
call fcn.00407830
add esp, 8
test al, al
jne 0x406619
push 0x6fe
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402830
jmp 0x406a42
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.004033a0
add esp, 8
test al, al
je 0x406641
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x744]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0x750]
lea eax, [ebp - 0x7d4]
push eax
movups xmmword [ebp - 0x7d4], xmm0
movups xmm0, xmmword [ebp - 0x740]
movups xmmword [ebp - 0x7c4], xmm0
movq xmm0, qword [ebp - 0x730]
movq qword [ebp - 0x7b4], xmm0
mov dword [ebp - 0x7b0], str.microstub_download
call fcn.00403ec0
lea eax, [ebp - 0x7d4]
push eax
call fcn.00403f20
add esp, 8
mov dword [ebp - 0x580], 0
xor eax, eax
mov dword [ebp - 0x57c], 7
lea ecx, [ebp - 0x590]
mov word [ebp - 0x590], ax
push 1
push 0x422dbc
call fcn.004045f0
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x17
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4066d0
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x590]
call fcn.00403930
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x578], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x568], xmm0
mov word [eax], cx
push 0x22
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0x18
call fcn.00404910
movups xmm0, xmmword [ebp - 0x578]
xor eax, eax
mov word [ebp - 0x578], ax
movups xmmword [ebp - 0x5f0], xmm0
movq xmm0, qword [ebp - 0x568]
movq qword [ebp - 0x5e0], xmm0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 7
lea ecx, [ebp - 0x578]
call fcn.00402830
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 0x1b
call fcn.00402830
mov esi, dword [ebp - 0x7ec]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406790
sub ecx, edx
sar ecx, 1
je 0x4067cf
push 0x20
lea ecx, [ebp - 0x5f0]
call fcn.00404910
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067b3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5f0]
call fcn.00403930
cmp dword [ebp - 0x738], 0
je 0x406811
push 9
push 0x422dc0
lea ecx, [ebp - 0x5f0]
call fcn.00403930
mov edx, dword [ebp - 0x738]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067f5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5f0]
call fcn.00403930
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0x5f0]
call fcn.00403930
mov edx, dword [ebp - 0x740]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5f0]
call fcn.00403930
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0x5f0]
call fcn.00403930
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406867
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00403930
cmp word [ebp - 0x1c0], 0
je 0x4068d2
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0x5f0]
call fcn.00403930
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4068b0
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00403930
push 0x40
lea eax, [ebp - 0x720]
mov dword [ebp - 0x724], 0x44
push 0
push eax
call fcn.004112e0
add esp, 0xc
lea ecx, [ebp - 0x774]
cmp dword [ebp - 0x5dc], 8
lea eax, [ebp - 0x5f0]
cmovae eax, dword [ebp - 0x5f0]
push ecx
lea ecx, [ebp - 0x724]
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 0x406977
push 0x23f
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x5f0]
call fcn.00402830
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402830
jmp 0x406a42
push dword [ebp - 0x76c]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x770]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4069d6
push 0x236
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x5f0]
call fcn.00402830
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402830
jmp 0x406a42
mov eax, dword [ebp - 0x75c]
test eax, eax
je 0x4069f0
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x774]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x5f4]
push eax
push dword [ebp - 0x774]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x406a28
push dword [ebp - 0x5f4]
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x5f0]
call fcn.00402830
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402830
lea eax, [ebp - 0x750]
push eax
call fcn.00403ec0
lea eax, [ebp - 0x750]
push eax
call fcn.00403f20
add esp, 8
cmp edi, 0xffffffff
je 0x406a69
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x770]
test eax, eax
je 0x406a7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x774]
test eax, eax
je 0x406a8b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00407440
cmp eax, 0x6010000
jb 0x406b8d
push dword [ebp - 0x734]
call fcn.004035c0
add esp, 4
test al, al
je 0x406b8d
mov eax, dword [ebp - 0x750]
cmp eax, 0x4c7
je 0x406b8d
test eax, eax
jne 0x406aea
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x406b8d
cmp eax, 0xa003
je 0x406b8d
cmp eax, 0xa104
je 0x406b8d
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.004112e0
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 0x406b8d
push 0x2f
call fcn.00403ae0
push eax
call fcn.00411dd4
add esp, 8
mov esi, eax
push 0x5c
call fcn.00403ae0
push eax
call fcn.00411dd4
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x422790
push eax
cmovb edi, esi
call fcn.004042e0
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.004042e0
add esp, 0x18
push 0
call fcn.00403ae0
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x406b8d
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00403ae0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x804]
test esi, esi
je 0x406ba5
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.00403c50
mov esi, dword [ebp - 0x750]
lea ecx, [ebp - 0x6a8]
add esp, 4
cmp dword [ebp - 0x730], 0x103
cmovne esi, dword [ebp - 0x730]
call fcn.00402830
lea ecx, [ebp - 0x60c]
call fcn.00402830
lea ecx, [ebp - 0x6d4]
call fcn.00402830
lea ecx, [ebp - 0x690]
call fcn.00402830
lea ecx, [ebp - 0x654]
call fcn.00402830
lea ecx, [ebp - 0x5a8]
call fcn.00402830
lea ecx, [ebp - 0x624]
call fcn.00402830
lea ecx, [ebp - 0x63c]
call fcn.00402830
lea ecx, [ebp - 0x678]
call fcn.00402830
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.0040ffbe
mov esp, ebp
pop ebp
ret 0x10
call fcn.00413a50
call fcn.00413a50
call fcn.00413a50
call fcn.00413a50
call fcn.00404460
call fcn.00413a50
call fcn.00413a50
call fcn.00413a50
call fcn.00413a50
call fcn.00404460
int3