Function at 0x4052f0
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 0x422079
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x42e008]
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 + 0x10]
or esi, 0xffffffff
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc14], eax
xor eax, eax
mov dword [ebp - 0xc10], eax
mov dword [ebp - 0xc08], edi
mov dword [ebp - 0xc04], eax
mov dword [ebp - 0xc20], eax
mov dword [ebp - 0x934], eax
mov dword [ebp - 0xc0c], esi
mov dword [ebp - 0xb48], esi
movups xmmword [ebp - 0xba8], xmm0
mov dword [ebp - 0xaac], eax
mov dword [ebp - 0xaa8], 7
mov word [ebp - 0xabc], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 0xa48], 7
mov word [ebp - 0xa5c], ax
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa30], 7
mov word [ebp - 0xa44], ax
mov dword [ebp - 0x970], eax
mov dword [ebp - 0x96c], 7
mov word [ebp - 0x980], ax
mov dword [ebp - 0xa64], eax
mov dword [ebp - 0xa60], 7
mov word [ebp - 0xa74], ax
mov dword [ebp - 0xa94], eax
mov dword [ebp - 0xa90], 7
mov word [ebp - 0xaa4], ax
mov dword [ebp - 0xad8], eax
mov dword [ebp - 0xad4], 7
mov word [ebp - 0xae8], ax
mov dword [ebp - 0xa1c], eax
mov dword [ebp - 0xa18], 7
mov word [ebp - 0xa2c], ax
mov dword [ebp - 0xa7c], eax
mov dword [ebp - 0xa78], 7
mov word [ebp - 0xa8c], ax
mov word [ebp - 0x140], ax
xor esi, esi
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
xor al, al
mov dword [ebp - 0xc1c], eax
mov byte [ebp - 0xbfa], al
lea eax, [ebp - 0xb50]
push 0x103
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0xc18], esi
mov dword [ebp - 0xc00], esi
movups xmmword [ebp - 0xb70], xmm0
movups xmmword [ebp - 0xb60], xmm0
movq qword [ebp - 0xb50], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._silent
push dword [ebp - 0xc14]
lea eax, [ebp - 0xac8]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xb98], xmm0
call fcn.004033a0
add esp, 0xc
mov byte [ebp - 4], 9
mov al, byte [eax + 8]
mov byte [ebp - 0xbf9], al
call fcn.00407fe0
cmp eax, 0x6000000
jb 0x405577
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00407e70
add esp, 4
cmp eax, 0x3000
jae 0x405577
push 0x52f
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf9], 0
jne 0x405526
push 0x277b
call fcn.00403b70
add esp, 4
mov byte [ebp - 4], 8
jmp 0x4075bc
mov dword [ebp - 4], 8
call fcn.00408080
test al, al
je 0x4055c7
push 0xc1
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf9], 0
jne 0x4075bc
push 0x277c
call fcn.00403b70
add esp, 4
jmp 0x4075bc
push 0x4b0
call fcn.00403b30
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xc20], eax
test eax, eax
je 0x40563b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40563b
push 0x420
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x4b1
call fcn.00403b30
push eax
call fcn.004011b0
add esp, 8
test al, al
jne 0x4075bc
push 0x4b2
call fcn.00403b30
push eax
call fcn.004011b0
add esp, 8
jmp 0x4075bc
lea eax, [ebp - 0x30]
push eax
call fcn.0040cf50
mov esi, eax
add esp, 4
lea eax, [ebp - 0xa5c]
cmp eax, esi
je 0x4056d8
mov edx, dword [ebp - 0xa48]
cmp edx, 8
jb 0x405697
mov ecx, dword [ebp - 0xa5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40568d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077cc
push edx
push ecx
call fcn.00410bff
add esp, 8
mov dword [ebp - 0xa4c], 0
xor eax, eax
mov dword [ebp - 0xa48], 7
mov word [ebp - 0xa5c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa5c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa4c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x405712
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077d1
push edx
push ecx
call fcn.00410bff
add esp, 8
cmp dword [ebp - 0xa48], 8
lea eax, [ebp - 0xa5c]
cmovae eax, dword [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xb5c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x944]
push eax
call fcn.00409200
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x9d8]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x9d8], xmm0
call fcn.0040d650
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0xa44]
cmp eax, esi
je 0x4057ee
mov edx, dword [ebp - 0xa30]
cmp edx, 8
jb 0x4057ad
mov ecx, dword [ebp - 0xa44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077d6
push edx
push ecx
call fcn.00410bff
add esp, 8
mov dword [ebp - 0xa34], 0
xor eax, eax
mov dword [ebp - 0xa30], 7
mov word [ebp - 0xa44], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa34], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x405828
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40581e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077db
push edx
push ecx
call fcn.00410bff
add esp, 8
cmp dword [ebp - 0xa30], 8
lea eax, [ebp - 0xa44]
cmovae eax, dword [ebp - 0xa44]
push eax
lea eax, [ebp - 0xb60]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0xc14]
lea eax, [ebp - 0xb00]
push str._cookie
push esi
push eax
call fcn.004033a0
add esp, 0xc
cmp byte [ebp - 0xaf8], 0
je 0x40588d
mov eax, dword [ebp - 0xafc]
cmp eax, 0x40
jae 0x40588d
push eax
push dword [ebp - 0xb00]
lea ecx, [ebp - 0xabc]
call fcn.00404b70
jmp 0x40589c
lea eax, [ebp - 0xabc]
push eax
call fcn.00403280
add esp, 4
cmp dword [ebp - 0xaac], 0
je 0x4058c7
cmp dword [ebp - 0xaa8], 8
lea eax, [ebp - 0xabc]
cmovae eax, dword [ebp - 0xabc]
push eax
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x968], 0
push eax
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.004039c0
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x40590e
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x968]
lea eax, [ebp - 0xb54]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call fcn.00407fe0
cmp eax, 0x6020000
jae 0x40593a
call fcn.00408170
test al, al
je 0x405b1a
push 0
push 0
mov byte [ebp - 0xc10], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xc08], eax
lea eax, [ebp - 0xb48]
push eax
push 0x4241dc
push 1
push 0
push 0x4241ec
mov dword [ebp - 0xb48], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4059eb
mov ecx, dword [ebp - 0xb48]
mov dword [ebp - 0x934], 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x34]
lea eax, [ebp - 0x934]
push eax
push ecx
mov ecx, esi
call dword [0x4232ec]
call esi
mov dword [ebp - 0xc00], eax
test eax, eax
js 0x4059cc
mov eax, dword [ebp - 0xc10]
mov ecx, 1
test dword [ebp - 0x934], 0x440
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp - 0xb48]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4232ec]
call esi
cmp dword [ebp - 0xc00], 0
jge 0x4059f2
mov byte [ebp - 0xc10], 1
cmp dword [ebp - 0xc08], 0
jl 0x405a01
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0xc10], 0
jne 0x405b14
push 0x8ca
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf9], 0
jne 0x4075bc
mov eax, dword [ebp - 0x968]
cmp eax, 0x15
je 0x405a80
cmp eax, 0x16
je 0x405a80
push 0x3e9
call fcn.00403b30
push 0x277a
mov esi, eax
call fcn.00403b30
add esp, 8
push 0x409
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x4075bc
push str.Avast_One
push 0x2774
call fcn.00403b30
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.00403b30
add esp, 4
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push str._r_n_r_n
lea eax, [ebp - 0x930]
push 0x1f4
push eax
call fcn.00415090
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push 0x1f4
push eax
call fcn.00415090
add esp, 0x24
lea eax, [ebp - 0x930]
push 0x409
push 0x10
push str.Avast_One
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x4075bc
mov esi, dword [ebp - 0xc14]
movups xmm0, xmmword [ebp - 0xb70]
lea eax, [ebp - 0xbd0]
push eax
movups xmmword [ebp - 0xbd0], xmm0
movups xmm0, xmmword [ebp - 0xb60]
movups xmmword [ebp - 0xbc0], xmm0
movq xmm0, qword [ebp - 0xb50]
movq qword [ebp - 0xbb0], xmm0
mov dword [ebp - 0xbac], str.microstub_start
call fcn.004043e0
lea eax, [ebp - 0xbd0]
push eax
call fcn.00404440
push str._ppi_icd
lea eax, [ebp - 0x9d4]
push esi
push eax
call fcn.004033a0
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x405bc4
push dword [ebp - 0x968]
push edi
call fcn.00401bf0
mov esi, eax
add esp, 8
test esi, esi
je 0x405bbe
push 0x4c7
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4075bc
mov esi, dword [ebp - 0xc14]
cmp byte [ebp - 0xbf9], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb84], eax
mov eax, dword [ebp - 0x968]
mov dword [ebp - 0xb88], edi
mov dword [ebp - 0xb80], eax
movq qword [ebp - 0xb7c], xmm0
mov dword [ebp - 0xb74], 0
jne 0x405c1e
push 0
push 0
lea eax, [ebp - 0xb88]
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.00403190
add esp, 4
test al, al
jne 0x405c59
push 3
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4075bc
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.00403fe0
push str._cust_ini
lea eax, [ebp - 0xaf4]
push esi
push eax
call fcn.004033a0
add esp, 0x10
cmp byte [ebp - 0xaec], 0
je 0x40632b
push dword [ebp - 0xaf0]
xor eax, eax
mov dword [ebp - 0x93c], 0
push dword [ebp - 0xaf4]
lea ecx, [ebp - 0x94c]
mov dword [ebp - 0x938], 7
mov word [ebp - 0x94c], ax
call fcn.00404b70
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
mov edx, dword [ebp - 0x94c]
lea ecx, [ebp - 0x94c]
mov esi, dword [ebp - 0x93c]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xc08], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x934], eax
lea eax, [ebp - 0x94c]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x405d6a
cmp word [ecx], 0x22
je 0x405d21
add ecx, 2
cmp ecx, edi
jne 0x405d14
cmp ecx, edi
je 0x405d6a
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 0x405d5e
nop word [eax + eax]
movzx edi, word [eax]
cmp edi, 0x22
je 0x405d4e
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x405d40
mov esi, dword [ebp - 0x93c]
jmp 0x405d64
mov esi, dword [ebp - 0xc08]
mov edx, dword [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x4077e0
mov edi, dword [ebp - 0x934]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
sub esi, edi
mov dword [ebp - 0x93c], 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.00412460
add esp, 0xc
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
push eax
push 0
push str.Enabled
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x406285
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0
push str.ProxyType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x406285
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235d4
push 0x423c38
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xaa4]
call fcn.00404b70
push 0x3a
lea ecx, [ebp - 0xaa4]
call fcn.00404e90
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
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.004047c0
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x954], edx
mov word [ebp - 0x964], ax
add esp, 8
lea eax, [ebp - 0x16]
mov esi, 7
mov dword [ebp - 0x950], esi
cmp ecx, eax
je 0x405eff
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x964]
call fcn.00404b70
mov esi, dword [ebp - 0x950]
mov edx, dword [ebp - 0x954]
mov eax, 0xc
mov dword [ebp - 0xc04], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0xaa4]
cmp esi, 8
lea eax, [ebp - 0x964]
push edx
cmovae eax, dword [ebp - 0x964]
push eax
call fcn.00403e50
lea ecx, [ebp - 0x964]
mov byte [ebp - 4], 0xb
call fcn.00402d50
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235d4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xae8]
call fcn.00404b70
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235d4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40620a
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x9cc], 0
push eax
lea eax, [ebp - 0x9d4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x9d4], xmm0
call fcn.00408f10
add esp, 8
mov ecx, dword [ebp - 0x9d0]
mov eax, dword [ebp - 0x9d4]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x998]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x988], 0
mov dword [ebp - 0x984], 0xf
mov byte [ebp - 0x998], 0
call fcn.004049f0
cmp dword [ebp - 0x984], 0x10
lea edx, [ebp - 0x998]
mov eax, dword [ebp - 0x988]
lea edi, [ebp - 0x998]
cmovae edx, dword [ebp - 0x998]
lea ecx, [ebp - 0xa2c]
add eax, edx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x984], 0x10
mov dword [ebp - 0xc00], eax
cmovae edi, dword [ebp - 0x998]
cmp dword [ebp - 0xa18], 8
mov eax, dword [ebp - 0xa1c]
cmovae ecx, dword [ebp - 0xa2c]
mov esi, dword [ebp - 0xc00]
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x950], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0x934], eax
lea ecx, [ebp - 0x964]
lea eax, [ebp - 0xa2c]
cmovae eax, dword [ebp - 0xa2c]
mov dword [ebp - 0xc08], eax
xor eax, eax
mov word [ebp - 0x964], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00405160
push dword [ebp - 0x9fc]
lea ecx, [ebp - 0x964]
push esi
push edi
call fcn.004044a0
mov ecx, dword [ebp - 0xc08]
lea eax, [ebp - 0xa2c]
mov edx, dword [ebp - 0x934]
push dword [ebp - 0x954]
sub edx, ecx
mov byte [ebp - 4], 0xf
sar edx, 1
cmp dword [ebp - 0xa18], 8
cmovae eax, dword [ebp - 0xa2c]
sub ecx, eax
lea eax, [ebp - 0x964]
sar ecx, 1
cmp dword [ebp - 0x950], 8
cmovae eax, dword [ebp - 0x964]
push eax
push edx
push ecx
lea ecx, [ebp - 0xa2c]
call fcn.00404fc0
mov edx, dword [ebp - 0x950]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x406173
mov ecx, dword [ebp - 0x964]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406169
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077e5
push edx
push ecx
call fcn.00410bff
add esp, 8
mov edx, dword [ebp - 0x984]
mov byte [ebp - 4], 0xd
cmp edx, 0x10
jb 0x4061b1
mov ecx, dword [ebp - 0x998]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4061a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077ea
push edx
push ecx
call fcn.00410bff
add esp, 8
mov ecx, dword [ebp - 0x9d4]
mov dword [ebp - 0x988], 0
mov dword [ebp - 0x984], 0xf
mov byte [ebp - 0x998], 0
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x40620a
mov edx, dword [ebp - 0x9cc]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406200
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077ef
push edx
push ecx
call fcn.00410bff
add esp, 8
cmp dword [ebp - 0xa90], 8
lea eax, [ebp - 0xaa4]
cmovae eax, dword [ebp - 0xaa4]
cmp dword [ebp - 0xad4], 8
mov dword [ebp - 0xb98], eax
lea eax, [ebp - 0xae8]
cmovae eax, dword [ebp - 0xae8]
cmp dword [ebp - 0xa18], 8
mov dword [ebp - 0xb90], eax
lea eax, [ebp - 0xa2c]
cmovae eax, dword [ebp - 0xa2c]
cmp dword [ebp - 0x938], 8
mov dword [ebp - 0xb8c], eax
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0
push str.AuthorizationType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0xb94], eax
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0x40
lea eax, [ebp - 0x548]
push eax
push 0x4235d4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4062e7
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4062c5
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa74]
call fcn.00404b70
mov edx, dword [ebp - 0x938]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x40632b
mov ecx, dword [ebp - 0x94c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406321
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077f4
push edx
push ecx
call fcn.00410bff
add esp, 8
push str._smbupd
push dword [ebp - 0xc14]
lea eax, [ebp - 0xac8]
push eax
call fcn.004033a0
add esp, 0xc
cmp byte [ebp - 0xac0], 0
je 0x406770
push dword [ebp - 0xac4]
xor eax, eax
mov dword [ebp - 0x93c], 0
push dword [ebp - 0xac8]
lea ecx, [ebp - 0x94c]
mov dword [ebp - 0x938], 7
mov word [ebp - 0x94c], ax
call fcn.00404b70
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
mov edx, dword [ebp - 0x94c]
lea ecx, [ebp - 0x94c]
mov esi, dword [ebp - 0x93c]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xc08], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x934], eax
lea eax, [ebp - 0x94c]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406420
nop
cmp word [ecx], 0x22
je 0x4063dd
add ecx, 2
cmp ecx, edi
jne 0x4063d0
cmp ecx, edi
je 0x406420
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 0x406414
movzx edi, word [eax]
cmp edi, 0x22
je 0x406404
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x4063f6
mov esi, dword [ebp - 0x93c]
jmp 0x40641a
mov esi, dword [ebp - 0xc08]
mov edx, dword [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x4077f9
mov edi, dword [ebp - 0x934]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
sub esi, edi
mov dword [ebp - 0x93c], 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.00412460
add esp, 0xc
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
push eax
push 0
push str.enable
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x406761
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0
push str.count
push str.servers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x406761
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235d4
push str.urlpgm
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x988], 0
push eax
lea eax, [ebp - 0x3c0]
mov word [ebp - 0x998], cx
push eax
lea ecx, [ebp - 0x998]
mov dword [ebp - 0x984], 7
call fcn.00404b70
push 7
xor eax, eax
mov byte [ebp - 4], 0x11
push str.http:__
lea ecx, [ebp - 0x9e0]
mov dword [ebp - 0x9d0], 0
mov dword [ebp - 0x9cc], 7
mov word [ebp - 0x9e0], ax
call fcn.00404b70
lea eax, [ebp - 0x9e0]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x998]
push eax
call fcn.00404c90
add esp, 8
test al, al
jne 0x4065cd
push 8
push str.https:__
lea ecx, [ebp - 0x9e0]
call fcn.00404b70
lea eax, [ebp - 0x9e0]
push eax
lea eax, [ebp - 0x998]
push eax
call fcn.00404c90
add esp, 8
test al, al
je 0x40670b
mov edi, dword [ebp - 0x9d0]
test edi, edi
je 0x40670b
cmp dword [ebp - 0x984], 8
lea eax, [ebp - 0x998]
mov ecx, dword [ebp - 0x988]
cmovae eax, dword [ebp - 0x998]
cmp edi, ecx
jae 0x40670b
lea edx, [eax + edi*2]
mov esi, 0
sub ecx, edi
je 0x406621
cmp word [edx], 0x2f
je 0x40661f
nop
cmp ecx, 1
je 0x406621
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x406610
mov esi, edx
test esi, esi
je 0x40670b
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x40670b
lea eax, [ebp - 0xbfa]
sub esi, edi
push eax
push esi
push edi
lea eax, [ebp - 0x998]
push eax
lea ecx, [ebp - 0x964]
call fcn.00404880
push 0
push 0x423d84
lea ecx, [ebp - 0x964]
mov byte [ebp - 4], 0x13
call fcn.00404dd0
mov esi, eax
cmp esi, 0xffffffff
je 0x4066d0
test esi, esi
je 0x4066d0
push esi
push 0
lea eax, [ebp - 0x964]
push eax
lea ecx, [ebp - 0xa8c]
call fcn.00404b30
lea eax, [ebp - 0xbfa]
push eax
push dword [ebp - 0x954]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x964]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404880
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00414efa
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc18], esi
call fcn.00402d50
jmp 0x406700
cmp dword [ebp - 0x950], 8
lea eax, [ebp - 0x964]
push dword [ebp - 0x954]
cmovae eax, dword [ebp - 0x964]
lea ecx, [ebp - 0xa8c]
push eax
call fcn.00404b70
mov dword [ebp - 0xc18], 0
lea ecx, [ebp - 0x964]
call fcn.00402d50
cmp dword [ebp - 0x938], 8
lea eax, [ebp - 0x94c]
cmovae eax, dword [ebp - 0x94c]
push eax
push 0
push 0x423d88
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xc1c]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xc1c], ecx
lea ecx, [ebp - 0x9e0]
call fcn.00402d50
lea ecx, [ebp - 0x998]
call fcn.00402d50
lea ecx, [ebp - 0x94c]
mov byte [ebp - 4], 8
call fcn.00402d50
call fcn.00407fe0
cmp eax, 0x6010100
jb 0x4067b2
call fcn.00408130
test al, al
je 0x4067b2
call fcn.00408170
xor ecx, ecx
test al, al
setne cl
add ecx, 0x837
push ecx
call fcn.00403b30
mov edx, eax
add esp, 4
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4067a5
jmp 0x40680b
call fcn.00407fe0
cmp eax, 0x6010000
jb 0x4067ed
call fcn.00408170
xor ecx, ecx
test al, al
setne cl
add ecx, 0x835
push ecx
call fcn.00403b30
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4067e0
jmp 0x40680b
push 0x834
call fcn.00403b30
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406800
sub edx, esi
lea ecx, [ebp - 0x980]
sar edx, 1
push edx
push eax
call fcn.00404b70
xor eax, eax
mov dword [ebp - 0x9a0], 0
push eax
push 0x4235d4
lea ecx, [ebp - 0x9b0]
mov dword [ebp - 0x99c], 7
mov word [ebp - 0x9b0], ax
call fcn.00404b70
cmp dword [ebp - 0x96c], 8
lea ecx, [ebp - 0x980]
mov eax, dword [ebp - 0x970]
cmovae ecx, dword [ebp - 0x980]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0xc08], ecx
cmp eax, 1
jb 0x40758f
lea eax, [ecx + eax*2]
mov esi, ecx
mov dword [ebp - 0xc00], eax
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x4068a6
cmp word [esi], 0x2f
je 0x4068a4
cmp ecx, 1
je 0x4068a6
add esi, 2
dec ecx
cmp word [esi], 0x2f
jne 0x406895
mov edx, esi
mov esi, edx
test esi, esi
je 0x40758f
movzx ecx, word [esi]
mov edi, 0x2f
mov edx, 1
mov eax, 0x423da8
cmp ecx, edi
jb 0x4068f2
mov dword [ebp - 0xb48], esi
sub dword [ebp - 0xb48], eax
cmp cx, di
ja 0x4068f2
cmp edx, 1
je 0x4068fd
mov ecx, dword [ebp - 0xb48]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x4068d5
mov eax, dword [ebp - 0xc00]
add esi, 2
jmp 0x406882
sub esi, dword [ebp - 0xc08]
sar esi, 1
cmp esi, 0xffffffff
je 0x40758f
lea eax, [ebp - 0xbfa]
push eax
push esi
push 0
lea eax, [ebp - 0x980]
push eax
lea ecx, [ebp - 0x964]
call fcn.00404880
or dword [ebp - 0xc04], 0x10
lea ecx, [ebp - 0x9b0]
call fcn.00402d50
movups xmm0, xmmword [ebp - 0x964]
xor eax, eax
lea ecx, [ebp - 0x964]
mov word [ebp - 0x964], ax
movups xmmword [ebp - 0x9b0], xmm0
movq xmm0, qword [ebp - 0x954]
movq qword [ebp - 0x9a0], xmm0
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x950], 7
call fcn.00402d50
lea eax, [ebp - 0xbfa]
push eax
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x980]
push eax
lea ecx, [ebp - 0x964]
call fcn.00404880
mov esi, dword [ebp - 0xc04]
lea ecx, [ebp - 0x980]
or esi, 0x20
mov dword [ebp - 0xc04], esi
mov dword [ebp - 0xc10], esi
call fcn.00402d50
movups xmm0, xmmword [ebp - 0x964]
xor eax, eax
lea ecx, [ebp - 0x964]
mov word [ebp - 0x964], ax
movups xmmword [ebp - 0x980], xmm0
movq xmm0, qword [ebp - 0x954]
movq qword [ebp - 0x970], xmm0
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x950], 7
call fcn.00402d50
push 0xd
xor eax, eax
mov dword [ebp - 0x9e8], 0
push 0x423dac
lea ecx, [ebp - 0x9f8]
mov dword [ebp - 0x9e4], 7
mov word [ebp - 0x9f8], ax
call fcn.00404b70
cmp dword [ebp - 0x96c], 8
lea edi, [ebp - 0x980]
mov eax, dword [ebp - 0x970]
cmovae edi, dword [ebp - 0x980]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0xb48], edi
cmp eax, 1
jb 0x406b81
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0xb48]
mov edi, eax
sub edi, 0x423da8
cmp word [eax], 0x2f
mov dword [ebp - 0xc0c], eax
jne 0x406ac1
mov ecx, 0x2f
mov esi, 1
mov edx, ecx
mov eax, 0x423da8
cmp cx, dx
ja 0x406ab5
cmp esi, 1
je 0x406ad1
movzx ecx, word [edi + eax + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x406a9d
mov ecx, dword [ebp - 0xb48]
mov eax, dword [ebp - 0xc0c]
cmp eax, ecx
je 0x406b7b
sub eax, 2
sub edi, 2
jmp 0x406a7d
mov eax, dword [ebp - 0xc0c]
sub eax, dword [ebp - 0xb48]
sar eax, 1
cmp eax, 0xffffffff
je 0x406b7b
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x970]
cmp ecx, eax
jae 0x406b81
lea eax, [ebp - 0xbfa]
push eax
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x980]
push eax
lea ecx, [ebp - 0x964]
call fcn.00404880
mov eax, dword [ebp - 0xc04]
lea ecx, [ebp - 0x9f8]
or eax, 0x40
mov dword [ebp - 0xc04], eax
mov dword [ebp - 0xc10], eax
call fcn.00402d50
movups xmm0, xmmword [ebp - 0x964]
xor eax, eax
lea ecx, [ebp - 0x964]
mov word [ebp - 0x964], ax
movups xmmword [ebp - 0x9f8], xmm0
movq xmm0, qword [ebp - 0x954]
movq qword [ebp - 0x9e8], xmm0
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x950], 7
call fcn.00402d50
mov eax, dword [ebp - 0x970]
cmp dword [ebp - 0x96c], 8
lea ecx, [ebp - 0x980]
cmovae ecx, dword [ebp - 0x980]
mov dword [ebp - 0xc08], ecx
cmp eax, 0xf
jb 0x406d9c
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc00], eax
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x406bd6
cmp word [edi], 0x7b
je 0x406bd4
cmp ecx, 1
je 0x406bd6
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x406bc5
mov edx, edi
mov edi, edx
test edi, edi
je 0x406d9c
movzx ecx, word [edi]
mov esi, 0x7b
mov edx, 0xf
mov eax, str.versionSwitch
cmp ecx, esi
jb 0x406c22
mov dword [ebp - 0xb48], edi
sub dword [ebp - 0xb48], eax
cmp cx, si
ja 0x406c22
cmp edx, 1
je 0x406c2d
mov ecx, dword [ebp - 0xb48]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx esi, word [eax]
cmp cx, si
jae 0x406c05
mov eax, dword [ebp - 0xc00]
add edi, 2
jmp 0x406bb2
sub edi, dword [ebp - 0xc08]
sar edi, 1
cmp edi, 0xffffffff
je 0x406d9c
mov ecx, dword [ebp - 0xa64]
test ecx, ecx
jne 0x406c97
push 6
mov dword [ebp - 0x988], ecx
xor eax, eax
push str.stable
lea ecx, [ebp - 0x998]
mov dword [ebp - 0x984], 7
mov word [ebp - 0x998], ax
call fcn.00404b70
mov edx, dword [ebp - 0xc04]
lea eax, [ebp - 0x998]
or edx, 1
mov byte [ebp - 4], 0x16
mov dword [ebp - 0xc04], edx
mov dword [ebp - 0xc10], edx
jmp 0x406d47
cmp dword [ebp - 0xa60], 8
lea eax, [ebp - 0xa74]
cmovae eax, dword [ebp - 0xa74]
mov dword [ebp - 0xc00], eax
cmp ecx, 8
jae 0x406cd2
movups xmm0, xmmword [eax]
mov dword [ebp - 0x954], ecx
mov dword [ebp - 0x950], 7
movups xmmword [ebp - 0x964], xmm0
jmp 0x406d25
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x964]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403c20
mov ecx, dword [ebp - 0xa64]
mov dword [ebp - 0x964], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xc00]
push eax
call fcn.004117c0
mov eax, dword [ebp - 0xa64]
add esp, 0xc
mov dword [ebp - 0x954], eax
mov dword [ebp - 0x950], esi
mov ecx, dword [ebp - 0xc04]
lea eax, [ebp - 0x964]
or ecx, 2
mov dword [ebp - 4], 0x17
mov dword [ebp - 0xc04], ecx
mov dword [ebp - 0xc10], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x406d52
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x980]
call fcn.00404fc0
mov eax, dword [ebp - 0xc04]
test al, 2
je 0x406d86
and eax, 0xfffffffd
lea ecx, [ebp - 0x964]
mov dword [ebp - 0xc04], eax
call fcn.00402d50
mov eax, dword [ebp - 0xc04]
mov dword [ebp - 4], 0x15
test al, 1
je 0x406d9c
lea ecx, [ebp - 0x998]
call fcn.00402d50
cmp dword [ebp - 0x9e4], 8
lea eax, [ebp - 0x9f8]
cmovae eax, dword [ebp - 0x9f8]
push eax
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 esi, eax
mov dword [ebp - 0xc0c], esi
cmp esi, 0xffffffff
jne 0x406e29
push 2
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9f8]
call fcn.00402d50
jmp 0x4075ad
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 - 0xad0]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406ee7
cmp dword [ebp - 0xacc], 0
ja 0x406ee7
jb 0x406e82
cmp dword [ebp - 0xad0], 0x6400000
jae 0x406ee7
push 0x70
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf9], 0
jne 0x406ed7
push 0x3e9
call fcn.00403b30
push 0x2779
mov esi, eax
call fcn.00403b30
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0xb7c]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9f8]
call fcn.00402d50
jmp 0x4075ad
push 0x27
xor eax, eax
mov dword [ebp - 0x9b8], 0
push str.User_Agent:_avast__Antivirus__instup__r_n
lea ecx, [ebp - 0x9c8]
mov dword [ebp - 0x9b4], 7
mov word [ebp - 0x9c8], ax
call fcn.00404b70
cmp dword [ebp - 0xa7c], 0
lea edi, [ebp - 0xb98]
push edi
lea edi, [ebp - 0xb74]
mov byte [ebp - 4], 0x18
push edi
lea edi, [ebp - 0xb78]
push edi
lea edx, [ebp - 0x9c8]
lea ecx, [ebp - 0x980]
push esi
je 0x406fb8
cmp dword [ebp - 0x9b4], 8
lea eax, [ebp - 0xa8c]
cmovae edx, dword [ebp - 0x9c8]
cmp dword [ebp - 0x96c], 8
push edx
cmovae ecx, dword [ebp - 0x980]
cmp dword [ebp - 0xa78], 8
push ecx
cmovae eax, dword [ebp - 0xa8c]
push dword [ebp - 0xc18]
push eax
call fcn.00402730
add esp, 0x20
test al, al
jne 0x407108
cmp byte [ebp - 0xc1c], al
je 0x406ffb
lea edi, [ebp - 0xb98]
push edi
lea edi, [ebp - 0xb74]
push edi
lea edi, [ebp - 0xb78]
push edi
lea edx, [ebp - 0x9c8]
lea ecx, [ebp - 0x980]
push esi
cmp dword [ebp - 0x9b4], 8
lea eax, [ebp - 0x9b0]
cmovae edx, dword [ebp - 0x9c8]
cmp dword [ebp - 0x96c], 8
push edx
cmovae ecx, dword [ebp - 0x980]
cmp dword [ebp - 0x99c], 8
push ecx
cmovae eax, dword [ebp - 0x9b0]
push eax
call fcn.004025b0
add esp, 0x1c
test al, al
jne 0x407108
push 0x8ca
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf9], 0
jne 0x4070ed
mov eax, dword [ebp - 0x968]
cmp eax, 0x15
je 0x407064
cmp eax, 0x16
je 0x407064
push 0x3e9
call fcn.00403b30
push 0x277a
mov esi, eax
call fcn.00403b30
add esp, 8
push 0x409
push 0x10
push esi
jmp 0x4070e0
push str.Avast_One
push 0x2774
call fcn.00403b30
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.00403b30
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.00404820
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.00404820
add esp, 0x1c
lea eax, [ebp - 0x930]
push 0x409
push 0x10
push str.Avast_One
push eax
push dword [ebp - 0xb7c]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9c8]
call fcn.00402d50
lea ecx, [ebp - 0x9f8]
call fcn.00402d50
jmp 0x4075ad
push esi
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 dword [ebp - 0xc0c], eax
cmp eax, 0xffffffff
jne 0x407158
push 0x6e
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4070ed
push 0
push eax
call fcn.00408410
mov esi, dword [ebp - 0xc0c]
add esp, 8
test al, al
jne 0x4071b6
push 1
push esi
call fcn.00408410
add esp, 8
test al, al
jne 0x4071b6
push 2
push esi
call fcn.00408410
add esp, 8
test al, al
jne 0x4071b6
push 0x6fe
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4070ed
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004038c0
add esp, 8
test al, al
je 0x4071de
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb70]
lea eax, [ebp - 0xbf8]
push eax
movups xmmword [ebp - 0xbf8], xmm0
movups xmm0, xmmword [ebp - 0xb60]
movups xmmword [ebp - 0xbe8], xmm0
movq xmm0, qword [ebp - 0xb50]
movq qword [ebp - 0xbd8], xmm0
mov dword [ebp - 0xbd4], str.microstub_download
call fcn.004043e0
lea eax, [ebp - 0xbf8]
push eax
call fcn.00404440
add esp, 8
mov dword [ebp - 0x954], 0
xor eax, eax
mov dword [ebp - 0x950], 7
lea ecx, [ebp - 0x964]
mov word [ebp - 0x964], ax
push 1
push 0x423e6c
call fcn.00404b70
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x19
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407270
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x964]
call fcn.00403e50
push eax
lea ecx, [ebp - 0x30]
call fcn.00404840
push 0x22
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
call fcn.00404e90
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa14]
call fcn.00404840
lea ecx, [ebp - 0x30]
call fcn.00402d50
lea ecx, [ebp - 0x964]
mov byte [ebp - 4], 0x1d
call fcn.00402d50
mov esi, dword [ebp - 0xc14]
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072e0
sub ecx, edx
sar ecx, 1
je 0x40731f
push 0x20
lea ecx, [ebp - 0xa14]
call fcn.00404e90
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407303
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa14]
call fcn.00403e50
cmp dword [ebp - 0xb58], 0
je 0x407361
push 9
push 0x423e70
lea ecx, [ebp - 0xa14]
call fcn.00403e50
mov edx, dword [ebp - 0xb58]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407345
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa14]
call fcn.00403e50
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0xa14]
call fcn.00403e50
mov edx, dword [ebp - 0xb60]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407380
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa14]
call fcn.00403e50
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0xa14]
call fcn.00403e50
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073b7
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa14]
call fcn.00403e50
cmp word [ebp - 0x1c0], 0
je 0x407422
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0xa14]
call fcn.00403e50
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407400
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa14]
call fcn.00403e50
push 0x40
lea eax, [ebp - 0xb40]
mov dword [ebp - 0xb44], 0x44
push 0
push eax
call fcn.00411ee0
add esp, 0xc
lea ecx, [ebp - 0xba8]
cmp dword [ebp - 0xa00], 8
lea eax, [ebp - 0xa14]
cmovae eax, dword [ebp - 0xa14]
push ecx
lea ecx, [ebp - 0xb44]
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 0x4074b8
push 0x23f
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa14]
call fcn.00402d50
jmp 0x4070ed
push dword [ebp - 0xba0]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0xba4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40750b
push 0x236
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa14]
call fcn.00402d50
jmp 0x4070ed
mov eax, dword [ebp - 0xb7c]
test eax, eax
je 0x407525
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0xba8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x9fc]
push eax
push dword [ebp - 0xba8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40755d
push dword [ebp - 0x9fc]
lea eax, [ebp - 0xb50]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa14]
call fcn.00402d50
lea ecx, [ebp - 0x9c8]
call fcn.00402d50
lea ecx, [ebp - 0x9f8]
call fcn.00402d50
lea ecx, [ebp - 0x9b0]
mov byte [ebp - 4], 8
call fcn.00402d50
jmp 0x4075bc
push 0x57
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9b0]
mov byte [ebp - 4], 8
call fcn.00402d50
lea eax, [ebp - 0xb70]
push eax
call fcn.004043e0
lea eax, [ebp - 0xb70]
push eax
call fcn.00404440
mov eax, dword [ebp - 0xc0c]
add esp, 8
cmp eax, 0xffffffff
je 0x4075e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xba4]
test eax, eax
je 0x4075fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xba8]
test eax, eax
je 0x40760b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00407fe0
cmp eax, 0x6010000
jb 0x40770d
push dword [ebp - 0xb54]
call fcn.00403ae0
add esp, 4
test al, al
je 0x40770d
mov eax, dword [ebp - 0xb70]
cmp eax, 0x4c7
je 0x40770d
test eax, eax
jne 0x40766a
mov eax, dword [ebp - 0xb50]
test eax, eax
je 0x40770d
cmp eax, 0xa003
je 0x40770d
cmp eax, 0xa104
je 0x40770d
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.00411ee0
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 0x40770d
push 0x2f
call fcn.00404000
push eax
call fcn.004129d4
add esp, 8
mov esi, eax
push 0x5c
call fcn.00404000
push eax
call fcn.004129d4
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x423800
push eax
cmovb edi, esi
call fcn.00404800
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.00404800
add esp, 0x18
push 0
call fcn.00404000
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x40770d
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00404000
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0xc20]
test esi, esi
je 0x407725
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.00404170
mov esi, dword [ebp - 0xb70]
lea ecx, [ebp - 0xa8c]
add esp, 4
cmp dword [ebp - 0xb50], 0x103
cmovne esi, dword [ebp - 0xb50]
call fcn.00402d50
lea ecx, [ebp - 0xa2c]
call fcn.00402d50
lea ecx, [ebp - 0xae8]
call fcn.00402d50
lea ecx, [ebp - 0xaa4]
call fcn.00402d50
lea ecx, [ebp - 0xa74]
call fcn.00402d50
lea ecx, [ebp - 0x980]
call fcn.00402d50
lea ecx, [ebp - 0xa44]
call fcn.00402d50
lea ecx, [ebp - 0xa5c]
call fcn.00402d50
lea ecx, [ebp - 0xabc]
call fcn.00402d50
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.00410bbe
mov esp, ebp
pop ebp
ret 0x10
call fcn.00414650
call fcn.00414650
call fcn.00414650
call fcn.00414650
call fcn.004049e0
call fcn.00414650
call fcn.00414650
call fcn.00414650
call fcn.00414650
call fcn.004049e0
int3