Function at 0x4052d0
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 0x421e09
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x42d008]
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 - 0xc0c], eax
xor eax, eax
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc08], edi
mov dword [ebp - 0xbfc], eax
mov dword [ebp - 0xc20], eax
mov dword [ebp - 0xbf8], eax
mov dword [ebp - 0xc04], esi
mov dword [ebp - 0xc10], esi
movups xmmword [ebp - 0xb90], xmm0
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa8c], 7
mov word [ebp - 0xaa0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa44], 7
mov word [ebp - 0xa58], ax
mov dword [ebp - 0xa30], eax
mov dword [ebp - 0xa2c], 7
mov word [ebp - 0xa40], ax
mov dword [ebp - 0x968], eax
mov dword [ebp - 0x964], 7
mov word [ebp - 0x978], ax
mov dword [ebp - 0xa60], eax
mov dword [ebp - 0xa5c], 7
mov word [ebp - 0xa70], ax
mov dword [ebp - 0xaa8], eax
mov dword [ebp - 0xaa4], 7
mov word [ebp - 0xab8], ax
mov dword [ebp - 0xaec], eax
mov dword [ebp - 0xae8], 7
mov word [ebp - 0xafc], ax
mov dword [ebp - 0xa18], eax
mov dword [ebp - 0xa14], 7
mov word [ebp - 0xa28], ax
mov dword [ebp - 0xa78], eax
mov dword [ebp - 0xa74], 7
mov word [ebp - 0xa88], 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 - 0xc18], eax
mov byte [ebp - 0xbf2], al
lea eax, [ebp - 0xb48]
push 0x103
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0xc1c], esi
mov dword [ebp - 0xc00], esi
movups xmmword [ebp - 0xb68], xmm0
movups xmmword [ebp - 0xb58], xmm0
movq qword [ebp - 0xb48], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._silent
push dword [ebp - 0xc0c]
lea eax, [ebp - 0xac4]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xba0], xmm0
call fcn.00403380
add esp, 0xc
mov byte [ebp - 4], 9
mov al, byte [eax + 8]
mov byte [ebp - 0xbf1], al
call fcn.00407dc0
cmp eax, 0x6000000
jb 0x405557
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00407c50
add esp, 4
cmp eax, 0x3000
jae 0x405557
push 0x52f
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf1], 0
jne 0x405506
push 0x277b
call fcn.00403b50
add esp, 4
mov byte [ebp - 4], 8
jmp 0x40739c
mov dword [ebp - 4], 8
call fcn.00407e60
test al, al
je 0x4055a7
push 0xc1
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf1], 0
jne 0x40739c
push 0x277c
call fcn.00403b50
add esp, 4
jmp 0x40739c
push 0x4b0
call fcn.00403b10
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 0x40561b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40561b
push 0x420
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x4b1
call fcn.00403b10
push eax
call fcn.004011b0
add esp, 8
test al, al
jne 0x40739c
push 0x4b2
call fcn.00403b10
push eax
call fcn.004011b0
add esp, 8
jmp 0x40739c
lea eax, [ebp - 0x30]
push eax
call fcn.0040ccf0
mov esi, eax
add esp, 4
lea eax, [ebp - 0xa58]
cmp eax, esi
je 0x4056b8
mov edx, dword [ebp - 0xa44]
cmp edx, 8
jb 0x405677
mov ecx, dword [ebp - 0xa58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40566d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075ac
push edx
push ecx
call fcn.0041098f
add esp, 8
mov dword [ebp - 0xa48], 0
xor eax, eax
mov dword [ebp - 0xa44], 7
mov word [ebp - 0xa58], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa48], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4056f2
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4056e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075b1
push edx
push ecx
call fcn.0041098f
add esp, 8
cmp dword [ebp - 0xa44], 8
lea eax, [ebp - 0xa58]
cmovae eax, dword [ebp - 0xa58]
push eax
lea eax, [ebp - 0xb54]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x940]
push eax
call fcn.00408fa0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x9d4]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x9d4], xmm0
call fcn.0040d3f0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0xa40]
cmp eax, esi
je 0x4057ce
mov edx, dword [ebp - 0xa2c]
cmp edx, 8
jb 0x40578d
mov ecx, dword [ebp - 0xa40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405783
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075b6
push edx
push ecx
call fcn.0041098f
add esp, 8
mov dword [ebp - 0xa30], 0
xor eax, eax
mov dword [ebp - 0xa2c], 7
mov word [ebp - 0xa40], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa30], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x405808
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075bb
push edx
push ecx
call fcn.0041098f
add esp, 8
cmp dword [ebp - 0xa2c], 8
lea eax, [ebp - 0xa40]
cmovae eax, dword [ebp - 0xa40]
push eax
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0xc0c]
lea eax, [ebp - 0xad8]
push str._cookie
push esi
push eax
call fcn.00403380
add esp, 0xc
cmp byte [ebp - 0xad0], 0
je 0x40586d
mov eax, dword [ebp - 0xad4]
cmp eax, 0x40
jae 0x40586d
push eax
push dword [ebp - 0xad8]
lea ecx, [ebp - 0xaa0]
call fcn.00404b50
jmp 0x40587c
lea eax, [ebp - 0xaa0]
push eax
call fcn.00403260
add esp, 4
cmp dword [ebp - 0xa90], 0
je 0x4058a7
cmp dword [ebp - 0xa8c], 8
lea eax, [ebp - 0xaa0]
cmovae eax, dword [ebp - 0xaa0]
push eax
lea eax, [ebp - 0xb50]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x97c], 0
push eax
lea eax, [ebp - 0x97c]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.004039a0
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x4058ee
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xb60]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x97c]
lea eax, [ebp - 0xb4c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb68]
lea eax, [ebp - 0xbc8]
push eax
movups xmmword [ebp - 0xbc8], xmm0
movups xmm0, xmmword [ebp - 0xb58]
movups xmmword [ebp - 0xbb8], xmm0
movq xmm0, qword [ebp - 0xb48]
movq qword [ebp - 0xba8], xmm0
mov dword [ebp - 0xba4], str.microstub_start
call fcn.004043c0
lea eax, [ebp - 0xbc8]
push eax
call fcn.00404420
push str._ppi_icd
lea eax, [ebp - 0x9d0]
push esi
push eax
call fcn.00403380
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x4059ab
push dword [ebp - 0x97c]
push edi
call fcn.00401bf0
mov esi, eax
add esp, 8
test esi, esi
je 0x4059a5
push 0x4c7
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40739c
mov esi, dword [ebp - 0xc0c]
cmp byte [ebp - 0xbf1], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb7c], eax
mov eax, dword [ebp - 0x97c]
mov dword [ebp - 0xb80], edi
mov dword [ebp - 0xb78], eax
movq qword [ebp - 0xb74], xmm0
mov dword [ebp - 0xb6c], 0
jne 0x405a05
push 0
push 0
lea eax, [ebp - 0xb80]
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.00403170
add esp, 4
test al, al
jne 0x405a40
push 3
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40739c
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.00403fc0
push str._cust_ini
lea eax, [ebp - 0xae4]
push esi
push eax
call fcn.00403380
add esp, 0x10
cmp byte [ebp - 0xadc], 0
je 0x40611c
push dword [ebp - 0xae0]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xae4]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.00404b50
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
mov edx, dword [ebp - 0x948]
lea ecx, [ebp - 0x948]
mov esi, dword [ebp - 0x938]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xc08], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xc10], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x405b50
nop dword [eax + eax]
cmp word [ecx], 0x22
je 0x405b0d
add ecx, 2
cmp ecx, edi
jne 0x405b00
cmp ecx, edi
je 0x405b50
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 0x405b44
movzx edi, word [eax]
cmp edi, 0x22
je 0x405b34
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x405b26
mov esi, dword [ebp - 0x938]
jmp 0x405b4a
mov esi, dword [ebp - 0xc08]
mov edx, dword [ebp - 0x948]
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x4075c0
mov edi, dword [ebp - 0xc10]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
sub esi, edi
mov dword [ebp - 0x938], esi
sub esi, edx
lea ecx, [eax + edx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edi*2]
push eax
push ecx
call fcn.004121f0
add esp, 0xc
lea eax, [ebp - 0x948]
cmp dword [ebp - 0x934], 8
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.Enabled
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x40606b
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.ProxyType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x40606b
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235c4
push 0x423c18
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xab8]
call fcn.00404b50
push 0x3a
lea ecx, [ebp - 0xab8]
call fcn.00404e70
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.Port
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx eax, ax
push eax
lea eax, [ebp - 0x16]
push eax
call fcn.004047a0
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x950], edx
mov word [ebp - 0x960], ax
add esp, 8
lea eax, [ebp - 0x16]
mov esi, 7
mov dword [ebp - 0x94c], esi
cmp ecx, eax
je 0x405ce5
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x960]
call fcn.00404b50
mov esi, dword [ebp - 0x94c]
mov edx, dword [ebp - 0x950]
mov eax, 0xc
mov dword [ebp - 0xbfc], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0xab8]
cmp esi, 8
lea eax, [ebp - 0x960]
push edx
cmovae eax, dword [ebp - 0x960]
push eax
call fcn.00403e30
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0xb
call fcn.00402d30
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235c4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xafc]
call fcn.00404b50
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235c4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405ff0
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x9c8], 0
push eax
lea eax, [ebp - 0x9d0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x9d0], xmm0
call fcn.00408cb0
add esp, 8
mov ecx, dword [ebp - 0x9cc]
mov eax, dword [ebp - 0x9d0]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x994]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 0xf
mov byte [ebp - 0x994], 0
call fcn.004049d0
cmp dword [ebp - 0x980], 0x10
lea edx, [ebp - 0x994]
mov eax, dword [ebp - 0x984]
lea edi, [ebp - 0x994]
cmovae edx, dword [ebp - 0x994]
lea ecx, [ebp - 0xa28]
add eax, edx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x980], 0x10
mov dword [ebp - 0xc00], eax
cmovae edi, dword [ebp - 0x994]
cmp dword [ebp - 0xa14], 8
mov eax, dword [ebp - 0xa18]
cmovae ecx, dword [ebp - 0xa28]
mov esi, dword [ebp - 0xc00]
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc10], eax
lea ecx, [ebp - 0x960]
lea eax, [ebp - 0xa28]
cmovae eax, dword [ebp - 0xa28]
mov dword [ebp - 0xc08], eax
xor eax, eax
mov word [ebp - 0x960], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00405140
push dword [ebp - 0x9e0]
lea ecx, [ebp - 0x960]
push esi
push edi
call fcn.00404480
mov ecx, dword [ebp - 0xc08]
lea eax, [ebp - 0xa28]
mov edx, dword [ebp - 0xc10]
push dword [ebp - 0x950]
sub edx, ecx
mov byte [ebp - 4], 0xf
sar edx, 1
cmp dword [ebp - 0xa14], 8
cmovae eax, dword [ebp - 0xa28]
sub ecx, eax
lea eax, [ebp - 0x960]
sar ecx, 1
cmp dword [ebp - 0x94c], 8
cmovae eax, dword [ebp - 0x960]
push eax
push edx
push ecx
lea ecx, [ebp - 0xa28]
call fcn.00404fa0
mov edx, dword [ebp - 0x94c]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x405f59
mov ecx, dword [ebp - 0x960]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075c5
push edx
push ecx
call fcn.0041098f
add esp, 8
mov edx, dword [ebp - 0x980]
mov byte [ebp - 4], 0xd
cmp edx, 0x10
jb 0x405f97
mov ecx, dword [ebp - 0x994]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405f8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075ca
push edx
push ecx
call fcn.0041098f
add esp, 8
mov ecx, dword [ebp - 0x9d0]
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 0xf
mov byte [ebp - 0x994], 0
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x405ff0
mov edx, dword [ebp - 0x9c8]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405fe6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075cf
push edx
push ecx
call fcn.0041098f
add esp, 8
cmp dword [ebp - 0xaa4], 8
lea eax, [ebp - 0xab8]
cmovae eax, dword [ebp - 0xab8]
cmp dword [ebp - 0xae8], 8
mov dword [ebp - 0xba0], eax
lea eax, [ebp - 0xafc]
cmovae eax, dword [ebp - 0xafc]
cmp dword [ebp - 0xa14], 8
mov dword [ebp - 0xb98], eax
lea eax, [ebp - 0xa28]
cmovae eax, dword [ebp - 0xa28]
cmp dword [ebp - 0x934], 8
mov dword [ebp - 0xb94], eax
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.AuthorizationType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0xb9c], eax
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x40
lea eax, [ebp - 0x548]
push eax
push 0x4235c4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4060d2
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060b0
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa70]
call fcn.00404b50
mov edx, dword [ebp - 0x934]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x406116
mov ecx, dword [ebp - 0x948]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40610c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075d4
push edx
push ecx
call fcn.0041098f
add esp, 8
mov esi, dword [ebp - 0xc0c]
push str._smbupd
lea eax, [ebp - 0xac4]
push esi
push eax
call fcn.00403380
add esp, 0xc
cmp byte [ebp - 0xabc], 0
je 0x406560
push dword [ebp - 0xac0]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xac4]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.00404b50
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
mov edx, dword [ebp - 0x948]
lea ecx, [ebp - 0x948]
mov esi, dword [ebp - 0x938]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xc08], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xc10], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406210
nop word [eax + eax]
cmp word [ecx], 0x22
je 0x4061cd
add ecx, 2
cmp ecx, edi
jne 0x4061c0
cmp ecx, edi
je 0x406210
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 0x406204
movzx edi, word [eax]
cmp edi, 0x22
je 0x4061f4
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x4061e6
mov esi, dword [ebp - 0x938]
jmp 0x40620a
mov esi, dword [ebp - 0xc08]
mov edx, dword [ebp - 0x948]
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x4075d9
mov edi, dword [ebp - 0xc10]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
sub esi, edi
mov dword [ebp - 0x938], esi
sub esi, edx
lea ecx, [eax + edx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edi*2]
push eax
push ecx
call fcn.004121f0
add esp, 0xc
lea eax, [ebp - 0x948]
cmp dword [ebp - 0x934], 8
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.enable
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x406551
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.count
push str.servers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x406551
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4235c4
push str.urlpgm
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x984], 0
push eax
lea eax, [ebp - 0x3c0]
mov word [ebp - 0x994], cx
push eax
lea ecx, [ebp - 0x994]
mov dword [ebp - 0x980], 7
call fcn.00404b50
push 7
xor eax, eax
mov byte [ebp - 4], 0x11
push str.http:__
lea ecx, [ebp - 0x9dc]
mov dword [ebp - 0x9cc], 0
mov dword [ebp - 0x9c8], 7
mov word [ebp - 0x9dc], ax
call fcn.00404b50
lea eax, [ebp - 0x9dc]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x994]
push eax
call fcn.00404c70
add esp, 8
test al, al
jne 0x4063bd
push 8
push str.https:__
lea ecx, [ebp - 0x9dc]
call fcn.00404b50
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x994]
push eax
call fcn.00404c70
add esp, 8
test al, al
je 0x4064fb
mov edi, dword [ebp - 0x9cc]
test edi, edi
je 0x4064fb
cmp dword [ebp - 0x980], 8
lea eax, [ebp - 0x994]
mov ecx, dword [ebp - 0x984]
cmovae eax, dword [ebp - 0x994]
cmp edi, ecx
jae 0x4064fb
lea edx, [eax + edi*2]
mov esi, 0
sub ecx, edi
je 0x406411
cmp word [edx], 0x2f
je 0x40640f
nop
cmp ecx, 1
je 0x406411
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x406400
mov esi, edx
test esi, esi
je 0x4064fb
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x4064fb
lea eax, [ebp - 0xbf2]
sub esi, edi
push eax
push esi
push edi
lea eax, [ebp - 0x994]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404860
push 0
push 0x423d64
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x13
call fcn.00404db0
mov esi, eax
cmp esi, 0xffffffff
je 0x4064c0
test esi, esi
je 0x4064c0
push esi
push 0
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0xa88]
call fcn.00404b10
lea eax, [ebp - 0xbf2]
push eax
push dword [ebp - 0x950]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404860
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00414c8a
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc1c], esi
call fcn.00402d30
jmp 0x4064f0
cmp dword [ebp - 0x94c], 8
lea eax, [ebp - 0x960]
push dword [ebp - 0x950]
cmovae eax, dword [ebp - 0x960]
lea ecx, [ebp - 0xa88]
push eax
call fcn.00404b50
mov dword [ebp - 0xc1c], 0
lea ecx, [ebp - 0x960]
call fcn.00402d30
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push 0x423d68
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xc18]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0xc18], ecx
lea ecx, [ebp - 0x9dc]
call fcn.00402d30
lea ecx, [ebp - 0x994]
call fcn.00402d30
lea ecx, [ebp - 0x948]
mov byte [ebp - 4], 8
call fcn.00402d30
call fcn.00407dc0
cmp eax, 0x6010100
jb 0x40659d
call fcn.00407f10
xor ecx, ecx
test al, al
setne cl
add ecx, 0x837
push ecx
call fcn.00403b10
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406590
jmp 0x4065fb
call fcn.00407dc0
cmp eax, 0x6010000
jb 0x4065dd
call fcn.00407f10
xor ecx, ecx
test al, al
setne cl
add ecx, 0x835
push ecx
call fcn.00403b10
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4065d0
jmp 0x4065fb
push 0x834
call fcn.00403b10
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4065f0
sub edx, esi
lea ecx, [ebp - 0x978]
sar edx, 1
push edx
push eax
call fcn.00404b50
xor eax, eax
mov dword [ebp - 0x99c], 0
push eax
push 0x4235c4
lea ecx, [ebp - 0x9ac]
mov dword [ebp - 0x998], 7
mov word [ebp - 0x9ac], ax
call fcn.00404b50
cmp dword [ebp - 0x964], 8
lea ecx, [ebp - 0x978]
mov eax, dword [ebp - 0x968]
cmovae ecx, dword [ebp - 0x978]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0xc08], ecx
cmp eax, 1
jb 0x40736f
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 0x406696
cmp word [esi], 0x2f
je 0x406694
cmp ecx, 1
je 0x406696
add esi, 2
dec ecx
cmp word [esi], 0x2f
jne 0x406685
mov edx, esi
mov esi, edx
test esi, esi
je 0x40736f
movzx ecx, word [esi]
mov edi, 0x2f
mov edx, 1
mov eax, 0x423d88
cmp ecx, edi
jb 0x4066e2
mov dword [ebp - 0xbf8], esi
sub dword [ebp - 0xbf8], eax
cmp cx, di
ja 0x4066e2
cmp edx, 1
je 0x4066ed
mov ecx, dword [ebp - 0xbf8]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x4066c5
mov eax, dword [ebp - 0xc00]
add esi, 2
jmp 0x406672
sub esi, dword [ebp - 0xc08]
sar esi, 1
cmp esi, 0xffffffff
je 0x40736f
lea eax, [ebp - 0xbf2]
push eax
push esi
push 0
lea eax, [ebp - 0x978]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404860
or dword [ebp - 0xbfc], 0x10
lea ecx, [ebp - 0x9ac]
call fcn.00402d30
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x9ac], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x99c], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402d30
lea eax, [ebp - 0xbf2]
push eax
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x978]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404860
mov esi, dword [ebp - 0xbfc]
lea ecx, [ebp - 0x978]
or esi, 0x20
mov dword [ebp - 0xbfc], esi
mov dword [ebp - 0xc14], esi
call fcn.00402d30
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x978], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x968], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402d30
push 0xd
xor eax, eax
mov dword [ebp - 0x9e8], 0
push 0x423d8c
lea ecx, [ebp - 0x9f8]
mov dword [ebp - 0x9e4], 7
mov word [ebp - 0x9f8], ax
call fcn.00404b50
cmp dword [ebp - 0x964], 8
lea edi, [ebp - 0x978]
mov eax, dword [ebp - 0x968]
cmovae edi, dword [ebp - 0x978]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0xbf8], edi
cmp eax, 1
jb 0x406971
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0xbf8]
mov edi, eax
sub edi, 0x423d88
cmp word [eax], 0x2f
mov dword [ebp - 0xc04], eax
jne 0x4068b1
mov ecx, 0x2f
mov esi, 1
mov edx, ecx
mov eax, 0x423d88
cmp cx, dx
ja 0x4068a5
cmp esi, 1
je 0x4068c1
movzx ecx, word [edi + eax + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x40688d
mov ecx, dword [ebp - 0xbf8]
mov eax, dword [ebp - 0xc04]
cmp eax, ecx
je 0x40696b
sub eax, 2
sub edi, 2
jmp 0x40686d
mov eax, dword [ebp - 0xc04]
sub eax, dword [ebp - 0xbf8]
sar eax, 1
cmp eax, 0xffffffff
je 0x40696b
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x968]
cmp ecx, eax
jae 0x406971
lea eax, [ebp - 0xbf2]
push eax
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x978]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404860
mov eax, dword [ebp - 0xbfc]
lea ecx, [ebp - 0x9f8]
or eax, 0x40
mov dword [ebp - 0xbfc], eax
mov dword [ebp - 0xc14], eax
call fcn.00402d30
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x9f8], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x9e8], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402d30
mov eax, dword [ebp - 0x968]
cmp dword [ebp - 0x964], 8
lea ecx, [ebp - 0x978]
cmovae ecx, dword [ebp - 0x978]
mov dword [ebp - 0xc08], ecx
cmp eax, 0xf
jb 0x406b8c
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 0x4069c6
cmp word [edi], 0x7b
je 0x4069c4
cmp ecx, 1
je 0x4069c6
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x4069b5
mov edx, edi
mov edi, edx
test edi, edi
je 0x406b8c
movzx ecx, word [edi]
mov esi, 0x7b
mov edx, 0xf
mov eax, str.versionSwitch
cmp ecx, esi
jb 0x406a12
mov dword [ebp - 0xbf8], edi
sub dword [ebp - 0xbf8], eax
cmp cx, si
ja 0x406a12
cmp edx, 1
je 0x406a1d
mov ecx, dword [ebp - 0xbf8]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx esi, word [eax]
cmp cx, si
jae 0x4069f5
mov eax, dword [ebp - 0xc00]
add edi, 2
jmp 0x4069a2
sub edi, dword [ebp - 0xc08]
sar edi, 1
cmp edi, 0xffffffff
je 0x406b8c
mov ecx, dword [ebp - 0xa60]
test ecx, ecx
jne 0x406a87
push 6
mov dword [ebp - 0x984], ecx
xor eax, eax
push str.stable
lea ecx, [ebp - 0x994]
mov dword [ebp - 0x980], 7
mov word [ebp - 0x994], ax
call fcn.00404b50
mov edx, dword [ebp - 0xbfc]
lea eax, [ebp - 0x994]
or edx, 1
mov byte [ebp - 4], 0x16
mov dword [ebp - 0xbfc], edx
mov dword [ebp - 0xc14], edx
jmp 0x406b37
cmp dword [ebp - 0xa5c], 8
lea eax, [ebp - 0xa70]
cmovae eax, dword [ebp - 0xa70]
mov dword [ebp - 0xc00], eax
cmp ecx, 8
jae 0x406ac2
movups xmm0, xmmword [eax]
mov dword [ebp - 0x950], ecx
mov dword [ebp - 0x94c], 7
movups xmmword [ebp - 0x960], xmm0
jmp 0x406b15
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x960]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403c00
mov ecx, dword [ebp - 0xa60]
mov dword [ebp - 0x960], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xc00]
push eax
call fcn.00411550
mov eax, dword [ebp - 0xa60]
add esp, 0xc
mov dword [ebp - 0x950], eax
mov dword [ebp - 0x94c], esi
mov ecx, dword [ebp - 0xbfc]
lea eax, [ebp - 0x960]
or ecx, 2
mov dword [ebp - 4], 0x17
mov dword [ebp - 0xbfc], ecx
mov dword [ebp - 0xc14], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x406b42
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x978]
call fcn.00404fa0
mov eax, dword [ebp - 0xbfc]
test al, 2
je 0x406b76
and eax, 0xfffffffd
lea ecx, [ebp - 0x960]
mov dword [ebp - 0xbfc], eax
call fcn.00402d30
mov eax, dword [ebp - 0xbfc]
mov dword [ebp - 4], 0x15
test al, 1
je 0x406b8c
lea ecx, [ebp - 0x994]
call fcn.00402d30
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 - 0xc04], esi
cmp esi, 0xffffffff
jne 0x406c19
push 2
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9f8]
call fcn.00402d30
jmp 0x40738d
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 - 0xacc]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406cd3
cmp dword [ebp - 0xac8], 0
ja 0x406cd3
jb 0x406c6e
cmp dword [ebp - 0xacc], 0x6400000
jae 0x406cd3
push 0x70
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf1], 0
jne 0x406cc3
push 0x3e9
call fcn.00403b10
push 0x2779
mov esi, eax
call fcn.00403b10
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0xb74]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9f8]
call fcn.00402d30
jmp 0x40738d
push 0x27
xor eax, eax
mov dword [ebp - 0x9b4], 0
push str.User_Agent:_avast__Antivirus__instup__r_n
lea ecx, [ebp - 0x9c4]
mov dword [ebp - 0x9b0], 7
mov word [ebp - 0x9c4], ax
call fcn.00404b50
cmp dword [ebp - 0xa78], 0
lea edi, [ebp - 0xba0]
push edi
lea edi, [ebp - 0xb6c]
mov byte [ebp - 4], 0x18
push edi
lea edi, [ebp - 0xb70]
push edi
lea edx, [ebp - 0x9c4]
lea ecx, [ebp - 0x978]
push esi
je 0x406da4
cmp dword [ebp - 0x9b0], 8
lea eax, [ebp - 0xa88]
cmovae edx, dword [ebp - 0x9c4]
cmp dword [ebp - 0x964], 8
push edx
cmovae ecx, dword [ebp - 0x978]
cmp dword [ebp - 0xa74], 8
push ecx
cmovae eax, dword [ebp - 0xa88]
push dword [ebp - 0xc1c]
push eax
call fcn.00402710
add esp, 0x20
test al, al
jne 0x406ef1
cmp byte [ebp - 0xc18], al
je 0x406de7
lea edi, [ebp - 0xba0]
push edi
lea edi, [ebp - 0xb6c]
push edi
lea edi, [ebp - 0xb70]
push edi
lea edx, [ebp - 0x9c4]
lea ecx, [ebp - 0x978]
push esi
cmp dword [ebp - 0x9b0], 8
lea eax, [ebp - 0x9ac]
cmovae edx, dword [ebp - 0x9c4]
cmp dword [ebp - 0x964], 8
push edx
cmovae ecx, dword [ebp - 0x978]
cmp dword [ebp - 0x998], 8
push ecx
cmovae eax, dword [ebp - 0x9ac]
push eax
call fcn.00402590
add esp, 0x1c
test al, al
jne 0x406ef1
push 0x8ca
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xbf1], 0
jne 0x406ed6
mov eax, dword [ebp - 0x97c]
cmp eax, 0x15
je 0x406e4d
cmp eax, 0x16
je 0x406e4d
push 0x3e9
call fcn.00403b10
push 0x277a
mov esi, eax
call fcn.00403b10
add esp, 8
push 0x409
push 0x10
push esi
jmp 0x406ec9
push str.Avast_One
push 0x2774
call fcn.00403b10
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.00403b10
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.00404800
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.00404800
add esp, 0x1c
lea eax, [ebp - 0x930]
push 0x409
push 0x10
push str.Avast_One
push eax
push dword [ebp - 0xb74]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9c4]
call fcn.00402d30
lea ecx, [ebp - 0x9f8]
call fcn.00402d30
jmp 0x40738d
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 - 0xc04], eax
cmp eax, 0xffffffff
jne 0x406f41
push 0x6e
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406ed6
push 0
push eax
call fcn.004081b0
mov esi, dword [ebp - 0xc04]
add esp, 8
test al, al
jne 0x406f9f
push 1
push esi
call fcn.004081b0
add esp, 8
test al, al
jne 0x406f9f
push 2
push esi
call fcn.004081b0
add esp, 8
test al, al
jne 0x406f9f
push 0x6fe
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406ed6
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004038a0
add esp, 8
test al, al
je 0x406fc7
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xb5c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb68]
lea eax, [ebp - 0xbf0]
push eax
movups xmmword [ebp - 0xbf0], xmm0
movups xmm0, xmmword [ebp - 0xb58]
movups xmmword [ebp - 0xbe0], xmm0
movq xmm0, qword [ebp - 0xb48]
movq qword [ebp - 0xbd0], xmm0
mov dword [ebp - 0xbcc], str.microstub_download
call fcn.004043c0
lea eax, [ebp - 0xbf0]
push eax
call fcn.00404420
add esp, 8
mov dword [ebp - 0x950], 0
xor eax, eax
mov dword [ebp - 0x94c], 7
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
push 1
push 0x423e6c
call fcn.00404b50
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x19
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407054
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x960]
call fcn.00403e30
push eax
lea ecx, [ebp - 0x30]
call fcn.00404820
push 0x22
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
call fcn.00404e70
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa10]
call fcn.00404820
lea ecx, [ebp - 0x30]
call fcn.00402d30
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x1d
call fcn.00402d30
mov esi, dword [ebp - 0xc0c]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070c0
sub ecx, edx
sar ecx, 1
je 0x4070ff
push 0x20
lea ecx, [ebp - 0xa10]
call fcn.00404e70
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070e3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa10]
call fcn.00403e30
cmp dword [ebp - 0xb50], 0
je 0x407141
push 9
push 0x423e70
lea ecx, [ebp - 0xa10]
call fcn.00403e30
mov edx, dword [ebp - 0xb50]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407125
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa10]
call fcn.00403e30
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0xa10]
call fcn.00403e30
mov edx, dword [ebp - 0xb58]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407160
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa10]
call fcn.00403e30
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0xa10]
call fcn.00403e30
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407197
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa10]
call fcn.00403e30
cmp word [ebp - 0x1c0], 0
je 0x407202
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0xa10]
call fcn.00403e30
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4071e0
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa10]
call fcn.00403e30
push 0x40
lea eax, [ebp - 0xb3c]
mov dword [ebp - 0xb40], 0x44
push 0
push eax
call fcn.00411c70
add esp, 0xc
lea ecx, [ebp - 0xb90]
cmp dword [ebp - 0x9fc], 8
lea eax, [ebp - 0xa10]
cmovae eax, dword [ebp - 0xa10]
push ecx
lea ecx, [ebp - 0xb40]
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 0x407298
push 0x23f
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa10]
call fcn.00402d30
jmp 0x406ed6
push dword [ebp - 0xb88]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0xb8c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4072eb
push 0x236
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa10]
call fcn.00402d30
jmp 0x406ed6
mov eax, dword [ebp - 0xb74]
test eax, eax
je 0x407305
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0xb90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x9e0]
push eax
push dword [ebp - 0xb90]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40733d
push dword [ebp - 0x9e0]
lea eax, [ebp - 0xb48]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa10]
call fcn.00402d30
lea ecx, [ebp - 0x9c4]
call fcn.00402d30
lea ecx, [ebp - 0x9f8]
call fcn.00402d30
lea ecx, [ebp - 0x9ac]
mov byte [ebp - 4], 8
call fcn.00402d30
jmp 0x40739c
push 0x57
lea eax, [ebp - 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9ac]
mov byte [ebp - 4], 8
call fcn.00402d30
lea eax, [ebp - 0xb68]
push eax
call fcn.004043c0
lea eax, [ebp - 0xb68]
push eax
call fcn.00404420
mov eax, dword [ebp - 0xc04]
add esp, 8
cmp eax, 0xffffffff
je 0x4073c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb8c]
test eax, eax
je 0x4073da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb90]
test eax, eax
je 0x4073eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00407dc0
cmp eax, 0x6010000
jb 0x4074ed
push dword [ebp - 0xb4c]
call fcn.00403ac0
add esp, 4
test al, al
je 0x4074ed
mov eax, dword [ebp - 0xb68]
cmp eax, 0x4c7
je 0x4074ed
test eax, eax
jne 0x40744a
mov eax, dword [ebp - 0xb48]
test eax, eax
je 0x4074ed
cmp eax, 0xa003
je 0x4074ed
cmp eax, 0xa104
je 0x4074ed
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.00411c70
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 0x4074ed
push 0x2f
call fcn.00403fe0
push eax
call fcn.00412764
add esp, 8
mov esi, eax
push 0x5c
call fcn.00403fe0
push eax
call fcn.00412764
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x423800
push eax
cmovb edi, esi
call fcn.004047e0
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.004047e0
add esp, 0x18
push 0
call fcn.00403fe0
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x4074ed
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00403fe0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0xc20]
test esi, esi
je 0x407505
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.00404150
mov esi, dword [ebp - 0xb68]
lea ecx, [ebp - 0xa88]
add esp, 4
cmp dword [ebp - 0xb48], 0x103
cmovne esi, dword [ebp - 0xb48]
call fcn.00402d30
lea ecx, [ebp - 0xa28]
call fcn.00402d30
lea ecx, [ebp - 0xafc]
call fcn.00402d30
lea ecx, [ebp - 0xab8]
call fcn.00402d30
lea ecx, [ebp - 0xa70]
call fcn.00402d30
lea ecx, [ebp - 0x978]
call fcn.00402d30
lea ecx, [ebp - 0xa40]
call fcn.00402d30
lea ecx, [ebp - 0xa58]
call fcn.00402d30
lea ecx, [ebp - 0xaa0]
call fcn.00402d30
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.0041094e
mov esp, ebp
pop ebp
ret 0x10
call fcn.004143e0
call fcn.004143e0
call fcn.004143e0
call fcn.004143e0
call fcn.004049c0
call fcn.004143e0
call fcn.004143e0
call fcn.004143e0
call fcn.004143e0
call fcn.004049c0
int3