Function at 0x405120
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 0x421836
mov eax, dword fs:[0]
push eax
sub esp, 0x7fc
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 - 0x7fc], esi
mov dword [ebp - 0x7f4], eax
xor eax, eax
mov dword [ebp - 0x7ec], esi
mov dword [ebp - 0x808], esi
mov dword [ebp - 0x7e4], esi
mov dword [ebp - 0x7e0], edi
movups xmmword [ebp - 0x788], 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 - 0x6b8], eax
mov dword [ebp - 0x6b4], 7
mov word [ebp - 0x6c8], 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 - 0x7f8], eax
mov byte [ebp - 0x7da], al
lea eax, [ebp - 0x730]
push 0x103
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x804], 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]
push str._silent
push dword [ebp - 0x7f4]
lea eax, [ebp - 0x660]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x778], xmm0
call fcn.00403230
add esp, 0xc
mov byte [ebp - 4], 9
mov al, byte [eax + 8]
mov byte [ebp - 0x7d9], al
call fcn.00407800
cmp eax, 0x6000000
jb 0x405391
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00407690
add esp, 4
cmp eax, 0x3000
jae 0x405391
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 - 0x7d9], 0
jne 0x40534c
push 0x3ef
call fcn.00403a00
add esp, 4
mov byte [ebp - 4], 8
jmp 0x406e02
mov dword [ebp - 4], 8
call fcn.004078a0
test al, al
je 0x4053e1
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 - 0x7d9], 0
jne 0x406e02
push 0x3f0
call fcn.00403a00
add esp, 4
jmp 0x406e02
push 0x4b0
call fcn.004039c0
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x808], eax
test eax, eax
je 0x405455
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405455
push 0x420
lea eax, [ebp - 0x750]
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 0x406e02
push 0x4b2
call fcn.004039c0
push eax
call fcn.004011b0
add esp, 8
jmp 0x406e02
lea eax, [ebp - 0x30]
push eax
call fcn.0040c740
mov esi, eax
add esp, 4
lea eax, [ebp - 0x63c]
cmp eax, esi
je 0x4054f2
mov edx, dword [ebp - 0x628]
cmp edx, 8
jb 0x4054b1
mov ecx, dword [ebp - 0x63c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4054a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40700c
push edx
push ecx
call fcn.004103cf
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 0x40552c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405522
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407011
push edx
push ecx
call fcn.004103cf
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.004089f0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x5d0]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x5d0], xmm0
call fcn.0040ce40
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x624]
cmp eax, esi
je 0x405608
mov edx, dword [ebp - 0x610]
cmp edx, 8
jb 0x4055c7
mov ecx, dword [ebp - 0x624]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4055bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407016
push edx
push ecx
call fcn.004103cf
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 0x405642
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40701b
push edx
push ecx
call fcn.004103cf
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 - 0x7f4]
lea eax, [ebp - 0x6d4]
push str._cookie
push esi
push eax
call fcn.00403230
add esp, 0xc
cmp byte [ebp - 0x6cc], 0
je 0x4056a7
mov eax, dword [ebp - 0x6d0]
cmp eax, 0x40
jae 0x4056a7
push eax
push dword [ebp - 0x6d4]
lea ecx, [ebp - 0x678]
call fcn.004049a0
jmp 0x4056b6
lea eax, [ebp - 0x678]
push eax
call fcn.00403110
add esp, 4
cmp dword [ebp - 0x668], 0
je 0x4056e1
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.00403850
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x405728
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 - 0x7b0]
push eax
movups xmmword [ebp - 0x7b0], xmm0
movups xmm0, xmmword [ebp - 0x740]
movups xmmword [ebp - 0x7a0], xmm0
movq xmm0, qword [ebp - 0x730]
movq qword [ebp - 0x790], xmm0
mov dword [ebp - 0x78c], str.microstub_start
call fcn.00404270
lea eax, [ebp - 0x7b0]
push eax
call fcn.004042d0
push str._ppi_icd
lea eax, [ebp - 0x5cc]
push esi
push eax
call fcn.00403230
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x4057ea
push dword [ebp - 0x728]
push dword [ebp - 0x7f0]
call fcn.00401bf0
mov esi, eax
add esp, 8
test esi, esi
je 0x4057e4
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 0x406e02
mov esi, dword [ebp - 0x7f4]
cmp byte [ebp - 0x7d9], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x7f0]
mov dword [ebp - 0x768], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x764], eax
mov eax, dword [ebp - 0x728]
mov dword [ebp - 0x760], eax
movq qword [ebp - 0x75c], xmm0
mov dword [ebp - 0x754], 0
jne 0x40584a
push 0
push 0
lea eax, [ebp - 0x768]
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 0x405885
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 0x406e02
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 - 0x6e0]
push esi
push eax
call fcn.00403230
add esp, 0x10
cmp byte [ebp - 0x6d8], 0
je 0x405f5d
push dword [ebp - 0x6dc]
xor eax, eax
mov dword [ebp - 0x550], 0
push dword [ebp - 0x6e0]
lea ecx, [ebp - 0x560]
mov dword [ebp - 0x54c], 7
mov word [ebp - 0x560], ax
call fcn.004049a0
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 - 0x7e4], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x7e0], eax
lea eax, [ebp - 0x560]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x405990
cmp word [ecx], 0x22
je 0x40594d
add ecx, 2
cmp ecx, edi
jne 0x405940
cmp ecx, edi
je 0x405990
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 0x405984
movzx edi, word [eax]
cmp edi, 0x22
je 0x405974
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x405966
mov esi, dword [ebp - 0x550]
jmp 0x40598a
mov esi, dword [ebp - 0x7e4]
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 0x407020
mov edi, dword [ebp - 0x7e0]
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.00411c30
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 0x405eb1
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 0x405eb1
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 0x4225d4
push 0x422bf8
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x690]
call fcn.004049a0
push 0x3a
lea ecx, [ebp - 0x690]
call fcn.00404cc0
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.00404650
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 0x405b25
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x578]
call fcn.004049a0
mov esi, dword [ebp - 0x564]
mov edx, dword [ebp - 0x568]
mov eax, 0xc
mov dword [ebp - 0x7ec], eax
mov dword [ebp - 0x7fc], 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.00403ce0
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0xb
call fcn.00402be0
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 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 - 0x6c8]
call fcn.004049a0
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 0x4225d4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405e36
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.00408700
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.00404820
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 - 0x7e0], eax
lea ecx, [ebp - 0x578]
lea eax, [ebp - 0x60c]
cmovae eax, dword [ebp - 0x60c]
mov dword [ebp - 0x7e4], eax
xor eax, eax
mov word [ebp - 0x578], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00404f90
push dword [ebp - 0x5f4]
lea ecx, [ebp - 0x578]
push esi
push edi
call fcn.00404330
mov ecx, dword [ebp - 0x7e4]
lea eax, [ebp - 0x60c]
mov edx, dword [ebp - 0x7e0]
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.00404df0
mov edx, dword [ebp - 0x564]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x405d9f
mov ecx, dword [ebp - 0x578]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405d95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407025
push edx
push ecx
call fcn.004103cf
add esp, 8
mov edx, dword [ebp - 0x57c]
mov byte [ebp - 4], 0xd
cmp edx, 0x10
jb 0x405ddd
mov ecx, dword [ebp - 0x590]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405dd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40702a
push edx
push ecx
call fcn.004103cf
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 0x405e36
mov edx, dword [ebp - 0x5c4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405e2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40702f
push edx
push ecx
call fcn.004103cf
add esp, 8
cmp dword [ebp - 0x67c], 8
lea eax, [ebp - 0x690]
cmovae eax, dword [ebp - 0x690]
cmp dword [ebp - 0x6b4], 8
mov dword [ebp - 0x778], eax
lea eax, [ebp - 0x6c8]
cmovae eax, dword [ebp - 0x6c8]
cmp dword [ebp - 0x5f8], 8
mov dword [ebp - 0x770], eax
lea eax, [ebp - 0x60c]
cmovae eax, dword [ebp - 0x60c]
cmp dword [ebp - 0x54c], 8
mov dword [ebp - 0x76c], 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 - 0x774], 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 0x4225d4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405f13
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ef1
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.004049a0
mov edx, dword [ebp - 0x54c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x405f57
mov ecx, dword [ebp - 0x560]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407034
push edx
push ecx
call fcn.004103cf
add esp, 8
mov esi, dword [ebp - 0x7f4]
push str._smbupd
lea eax, [ebp - 0x660]
push esi
push eax
call fcn.00403230
add esp, 0xc
cmp byte [ebp - 0x658], 0
je 0x4063a0
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.004049a0
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 - 0x7e4], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x7e0], eax
lea eax, [ebp - 0x560]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406050
nop dword [eax + eax]
cmp word [ecx], 0x22
je 0x40600d
add ecx, 2
cmp ecx, edi
jne 0x406000
cmp ecx, edi
je 0x406050
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 0x406044
movzx edi, word [eax]
cmp edi, 0x22
je 0x406034
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x406026
mov esi, dword [ebp - 0x550]
jmp 0x40604a
mov esi, dword [ebp - 0x7e4]
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 0x407039
mov edi, dword [ebp - 0x7e0]
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.00411c30
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 0x406391
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 0x406391
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 0x4225d4
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.004049a0
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.004049a0
lea eax, [ebp - 0x5d8]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x590]
push eax
call fcn.00404ac0
add esp, 8
test al, al
jne 0x4061fd
push 8
push str.https:__
lea ecx, [ebp - 0x5d8]
call fcn.004049a0
lea eax, [ebp - 0x5d8]
push eax
lea eax, [ebp - 0x590]
push eax
call fcn.00404ac0
add esp, 8
test al, al
je 0x40633b
mov edi, dword [ebp - 0x5c8]
test edi, edi
je 0x40633b
cmp dword [ebp - 0x57c], 8
lea eax, [ebp - 0x590]
mov ecx, dword [ebp - 0x580]
cmovae eax, dword [ebp - 0x590]
cmp edi, ecx
jae 0x40633b
lea edx, [eax + edi*2]
mov esi, 0
sub ecx, edi
je 0x406251
cmp word [edx], 0x2f
je 0x40624f
nop
cmp ecx, 1
je 0x406251
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x406240
mov esi, edx
test esi, esi
je 0x40633b
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x40633b
lea eax, [ebp - 0x7da]
sub esi, edi
push eax
push esi
push edi
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x578]
call fcn.004046b0
push 0
push 0x422d44
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0x13
call fcn.00404c00
mov esi, eax
cmp esi, 0xffffffff
je 0x406300
test esi, esi
je 0x406300
push esi
push 0
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.00404960
lea eax, [ebp - 0x7da]
push eax
push dword [ebp - 0x568]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x30]
call fcn.004046b0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.004146ca
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x804], esi
call fcn.00402be0
jmp 0x406330
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.004049a0
mov dword [ebp - 0x804], 0
lea ecx, [ebp - 0x578]
call fcn.00402be0
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push 0x422d48
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x7f8]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x7f8], ecx
lea ecx, [ebp - 0x5d8]
call fcn.00402be0
lea ecx, [ebp - 0x590]
call fcn.00402be0
lea ecx, [ebp - 0x560]
mov byte [ebp - 4], 8
call fcn.00402be0
call fcn.00407800
cmp eax, 0x6010000
jb 0x40641d
push 0x7d1
call fcn.004039c0
mov dword [ebp - 0x7e0], eax
call fcn.00407950
test al, al
mov edx, 0x8fc
mov ecx, 0x898
cmovne ecx, edx
add ecx, dword [ebp - 0x728]
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 0x4063e4
sub edx, esi
lea ecx, [ebp - 0x5a8]
sar edx, 1
push edx
push eax
call fcn.004049a0
call fcn.00407950
test al, al
mov ecx, 0xc80
mov edx, 0xce4
cmovne ecx, edx
add ecx, dword [ebp - 0x728]
push ecx
jmp 0x40646e
push 0x7d2
call fcn.004039c0
mov dword [ebp - 0x7e0], eax
mov eax, dword [ebp - 0x728]
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 0x406446
sub edx, esi
lea ecx, [ebp - 0x5a8]
sar edx, 1
push edx
push eax
call fcn.004049a0
mov eax, dword [ebp - 0x728]
add eax, 0xc80
push eax
call fcn.004039c0
add esp, 4
mov dword [ebp - 0x7e4], eax
cmp dword [ebp - 0x594], 8
lea ecx, [ebp - 0x5a8]
mov eax, dword [ebp - 0x598]
cmovae ecx, dword [ebp - 0x5a8]
mov dword [ebp - 0x800], ecx
cmp eax, 0xf
jb 0x406691
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 0x4064d7
cmp word [edi], 0x7b
je 0x4064d5
cmp ecx, 1
je 0x4064d7
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x4064c6
mov edx, edi
mov edi, edx
test edi, edi
je 0x406691
movzx ecx, word [edi]
mov edx, 0x7b
mov esi, 0xf
mov eax, str.versionSwitch
cmp ecx, edx
jb 0x406523
mov dword [ebp - 0x7f0], edi
sub dword [ebp - 0x7f0], eax
cmp cx, dx
ja 0x406523
cmp esi, 1
je 0x40652e
mov ecx, dword [ebp - 0x7f0]
add eax, 2
dec esi
movzx ecx, word [ecx + eax]
movzx edx, word [eax]
cmp cx, dx
jae 0x406506
mov eax, dword [ebp - 0x7e8]
add edi, 2
jmp 0x4064b3
sub edi, dword [ebp - 0x800]
sar edi, 1
cmp edi, 0xffffffff
je 0x406691
mov ecx, dword [ebp - 0x644]
test ecx, ecx
jne 0x40658c
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.004049a0
mov ecx, dword [ebp - 0x7ec]
lea eax, [ebp - 0x590]
mov byte [ebp - 4], 0x14
or ecx, 1
jmp 0x406630
cmp dword [ebp - 0x640], 8
lea eax, [ebp - 0x654]
cmovae eax, dword [ebp - 0x654]
mov dword [ebp - 0x800], eax
cmp ecx, 8
jae 0x4065c7
movups xmm0, xmmword [eax]
mov dword [ebp - 0x568], ecx
mov dword [ebp - 0x564], 7
movups xmmword [ebp - 0x578], xmm0
jmp 0x40661a
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.00403ab0
mov ecx, dword [ebp - 0x644]
mov dword [ebp - 0x578], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x800]
push eax
call fcn.00410f90
mov eax, dword [ebp - 0x644]
add esp, 0xc
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], esi
mov ecx, dword [ebp - 0x7ec]
lea eax, [ebp - 0x578]
mov dword [ebp - 4], 0x15
or ecx, 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7fc], ecx
mov dword [ebp - 0x7ec], ecx
mov ecx, dword [eax + 0x10]
jb 0x406647
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x5a8]
call fcn.00404df0
mov eax, dword [ebp - 0x7ec]
test al, 2
je 0x40667b
and eax, 0xfffffffd
lea ecx, [ebp - 0x578]
mov dword [ebp - 0x7ec], eax
call fcn.00402be0
mov eax, dword [ebp - 0x7ec]
mov dword [ebp - 4], 8
test al, 1
je 0x406691
lea ecx, [ebp - 0x590]
call fcn.00402be0
push dword [ebp - 0x7e4]
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 0x4066fe
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 0x406e02
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 0x4067b1
cmp dword [ebp - 0x6ac], 0
ja 0x4067b1
jb 0x406753
cmp dword [ebp - 0x6b0], 0x6400000
jae 0x4067b1
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 - 0x7d9], 0
jne 0x406e02
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 - 0x75c]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x406e02
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.004049a0
cmp dword [ebp - 0x698], 0
mov byte [ebp - 4], 0x16
je 0x406860
cmp dword [ebp - 0x5ac], 8
lea esi, [ebp - 0x778]
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 - 0x804]
push eax
call fcn.004025d0
add esp, 0x20
test al, al
jne 0x406923
cmp byte [ebp - 0x7f8], al
je 0x4068b2
cmp dword [ebp - 0x5ac], 8
lea edx, [ebp - 0x778]
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 - 0x7e0]
call fcn.00402490
add esp, 0x1c
test al, al
jne 0x406923
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 - 0x7d9], 0
jne 0x40690f
push 0x3e9
call fcn.004039c0
push 0x3ee
mov esi, eax
call fcn.004039c0
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.00402be0
jmp 0x406e02
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 0x406981
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.00402be0
jmp 0x406e02
push 0
push edi
call fcn.00407bf0
add esp, 8
test al, al
jne 0x4069d9
push 1
push edi
call fcn.00407bf0
add esp, 8
test al, al
jne 0x4069d9
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.00402be0
jmp 0x406e02
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.00403750
add esp, 8
test al, al
je 0x406a01
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 - 0x7d8]
push eax
movups xmmword [ebp - 0x7d8], xmm0
movups xmm0, xmmword [ebp - 0x740]
movups xmmword [ebp - 0x7c8], xmm0
movq xmm0, qword [ebp - 0x730]
movq qword [ebp - 0x7b8], xmm0
mov dword [ebp - 0x7b4], str.microstub_download
call fcn.00404270
lea eax, [ebp - 0x7d8]
push eax
call fcn.004042d0
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 0x422e0c
call fcn.004049a0
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 0x406a90
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x590]
call fcn.00403ce0
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.00404cc0
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.00402be0
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 0x1b
call fcn.00402be0
mov esi, dword [ebp - 0x7f4]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b50
sub ecx, edx
sar ecx, 1
je 0x406b8f
push 0x20
lea ecx, [ebp - 0x5f0]
call fcn.00404cc0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b73
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
cmp dword [ebp - 0x738], 0
je 0x406bd1
push 9
push 0x422e10
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
mov edx, dword [ebp - 0x738]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406bb5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
mov edx, dword [ebp - 0x740]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406bf0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c27
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
cmp word [ebp - 0x1c0], 0
je 0x406c92
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c70
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00403ce0
push 0x40
lea eax, [ebp - 0x720]
mov dword [ebp - 0x724], 0x44
push 0
push eax
call fcn.004116b0
add esp, 0xc
lea ecx, [ebp - 0x788]
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 0x406d37
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.00402be0
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406e02
push dword [ebp - 0x780]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x784]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x406d96
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.00402be0
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402be0
jmp 0x406e02
mov eax, dword [ebp - 0x75c]
test eax, eax
je 0x406db0
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x788]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x5f4]
push eax
push dword [ebp - 0x788]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x406de8
push dword [ebp - 0x5f4]
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x5f0]
call fcn.00402be0
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 8
call fcn.00402be0
lea eax, [ebp - 0x750]
push eax
call fcn.00404270
lea eax, [ebp - 0x750]
push eax
call fcn.004042d0
add esp, 8
cmp edi, 0xffffffff
je 0x406e29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x784]
test eax, eax
je 0x406e3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x788]
test eax, eax
je 0x406e4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00407800
cmp eax, 0x6010000
jb 0x406f4d
push dword [ebp - 0x734]
call fcn.00403970
add esp, 4
test al, al
je 0x406f4d
mov eax, dword [ebp - 0x750]
cmp eax, 0x4c7
je 0x406f4d
test eax, eax
jne 0x406eaa
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x406f4d
cmp eax, 0xa003
je 0x406f4d
cmp eax, 0xa104
je 0x406f4d
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.004116b0
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 0x406f4d
push 0x2f
call fcn.00403e90
push eax
call fcn.004121a4
add esp, 8
mov esi, eax
push 0x5c
call fcn.00403e90
push eax
call fcn.004121a4
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 0x406f4d
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00403e90
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x808]
test esi, esi
je 0x406f65
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 - 0x750]
lea ecx, [ebp - 0x6a8]
add esp, 4
cmp dword [ebp - 0x730], 0x103
cmovne esi, dword [ebp - 0x730]
call fcn.00402be0
lea ecx, [ebp - 0x60c]
call fcn.00402be0
lea ecx, [ebp - 0x6c8]
call fcn.00402be0
lea ecx, [ebp - 0x690]
call fcn.00402be0
lea ecx, [ebp - 0x654]
call fcn.00402be0
lea ecx, [ebp - 0x5a8]
call fcn.00402be0
lea ecx, [ebp - 0x624]
call fcn.00402be0
lea ecx, [ebp - 0x63c]
call fcn.00402be0
lea ecx, [ebp - 0x678]
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.0041038e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00413e20
call fcn.00413e20
call fcn.00413e20
call fcn.00413e20
call fcn.00404810
call fcn.00413e20
call fcn.00413e20
call fcn.00413e20
call fcn.00413e20
call fcn.00404810
int3