Function at 0x405d80
Capabilities:
Check mutex on windows
Copy file
Delete file
Get common file path
Get disk size
Identify system language via api
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423386
mov eax, dword fs:[0]
push eax
sub esp, 0xc50
mov eax, dword [0x42f008]
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 - 0xc3c], eax
xor eax, eax
mov dword [ebp - 0xc34], eax
mov dword [ebp - 0xc30], edi
mov dword [ebp - 0xc2c], eax
mov dword [ebp - 0xc5c], eax
mov dword [ebp - 0xc40], eax
mov dword [ebp - 0xc38], esi
mov dword [ebp - 0xc44], esi
movups xmmword [ebp - 0xbd4], xmm0
mov dword [ebp - 0xac0], eax
mov dword [ebp - 0xabc], 7
mov word [ebp - 0xad0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa60], eax
mov dword [ebp - 0xa5c], 7
mov word [ebp - 0xa70], ax
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa44], 7
mov word [ebp - 0xa58], ax
mov dword [ebp - 0x96c], eax
mov dword [ebp - 0x968], 7
mov word [ebp - 0x97c], ax
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa8c], 7
mov word [ebp - 0xaa0], ax
mov dword [ebp - 0xaa8], eax
mov dword [ebp - 0xaa4], 7
mov word [ebp - 0xab8], ax
mov dword [ebp - 0xb10], eax
mov dword [ebp - 0xb0c], 7
mov word [ebp - 0xb20], ax
mov dword [ebp - 0xa30], eax
mov dword [ebp - 0xa2c], 7
mov word [ebp - 0xa40], ax
mov dword [ebp - 0xad8], eax
mov dword [ebp - 0xad4], 7
mov word [ebp - 0xae8], ax
mov word [ebp - 0x140], ax
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
xor al, al
mov dword [ebp - 0xc58], eax
mov byte [ebp - 0xb65], al
xor eax, eax
mov dword [ebp - 0xc54], eax
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0xb78]
push 0x103
push eax
mov byte [ebp - 4], 8
movups xmmword [ebp - 0xb98], xmm0
movups xmmword [ebp - 0xb88], xmm0
movq qword [ebp - 0xb78], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x424c30
push dword [ebp - 0xc3c]
lea eax, [ebp - 0xa7c]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xbc4], xmm0
call fcn.00403600
add esp, 0xc
mov al, byte [eax + 8]
mov byte [ebp - 0xc25], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov dword [ebp - 0xc48], esi
push str._langId
push dword [ebp - 0xc3c]
lea eax, [ebp - 0xa88]
push eax
call fcn.00403600
add esp, 0xc
cmp byte [ebp - 0xa80], 0
jne 0x405fbb
push str._language
push dword [ebp - 0xc3c]
lea eax, [ebp - 0xa7c]
push eax
call fcn.00403600
add esp, 0xc
movq xmm0, qword [eax]
movq qword [ebp - 0xa88], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0xa80], eax
test al, al
je 0x406065
mov edx, dword [ebp - 0xa88]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
mov word [ebp - 0x960], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405fe3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x960]
call fcn.00404af0
mov byte [ebp - 4], 9
call fcn.00417a1a
cmp dword [ebp - 0x94c], 8
lea esi, [ebp - 0x960]
mov edi, eax
lea eax, [ebp - 0xb6c]
cmovae esi, dword [ebp - 0x960]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.00417a2d
add esp, 0xc
cmp esi, dword [ebp - 0xb6c]
je 0x4088c8
cmp dword [edi], 0x22
je 0x4088be
movzx esi, ax
lea ecx, [ebp - 0x960]
mov dword [ebp - 0xc48], esi
call fcn.00402fe0
mov edi, dword [ebp - 0xc30]
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00408f50
add esp, 4
cmp eax, 0x3000
jae 0x40610c
push 0x52f
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc25], 0
jne 0x4060bb
push esi
push 0x277b
call fcn.00403e90
add esp, 8
mov byte [ebp - 4], 8
jmp 0x40869f
mov dword [ebp - 4], 8
call fcn.00409160
test al, al
je 0x406207
push 0x839
call fcn.00403d90
mov edx, eax
mov dword [ebp - 0x950], 0
mov ecx, edx
mov dword [ebp - 0x94c], 7
add esp, 4
xor eax, eax
mov word [ebp - 0x960], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406151
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x960]
call fcn.00404af0
cmp dword [ebp - 0x950], 0
mov byte [ebp - 4], 0xc
jne 0x4061c3
push 0xbe
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc25], 0
jne 0x4061b8
mov edi, dword [ebp - 0xc48]
push edi
push 0x277c
call fcn.00403e90
add esp, 8
lea ecx, [ebp - 0x960]
jmp 0x408696
mov edx, dword [ebp - 0x94c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x406207
mov ecx, dword [ebp - 0x960]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4061fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088d2
push edx
push ecx
call fcn.00411ccf
add esp, 8
push 0x4b0
call fcn.00403d90
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xc5c], eax
test eax, eax
je 0x40627b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40627b
push 0x420
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x4b1
call fcn.00403d90
push eax
call fcn.00401230
add esp, 8
test al, al
jne 0x40869f
push 0x4b2
call fcn.00403d90
push eax
call fcn.00401230
add esp, 8
jmp 0x40869f
lea eax, [ebp - 0x30]
push eax
call fcn.0040e040
mov esi, eax
add esp, 4
lea eax, [ebp - 0xa70]
cmp eax, esi
je 0x406318
mov edx, dword [ebp - 0xa5c]
cmp edx, 8
jb 0x4062d7
mov ecx, dword [ebp - 0xa70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4062cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088d7
push edx
push ecx
call fcn.00411ccf
add esp, 8
mov dword [ebp - 0xa60], 0
xor eax, eax
mov dword [ebp - 0xa5c], 7
mov word [ebp - 0xa70], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa60], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x406352
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406348
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088dc
push edx
push ecx
call fcn.00411ccf
add esp, 8
cmp dword [ebp - 0xa5c], 8
lea eax, [ebp - 0xa70]
cmovae eax, dword [ebp - 0xa70]
push eax
lea eax, [ebp - 0xb84]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x940]
push eax
call fcn.0040a2f0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x9a4], xmm0
call fcn.0040e6d0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0xa58]
cmp eax, esi
je 0x40642e
mov edx, dword [ebp - 0xa44]
cmp edx, 8
jb 0x4063ed
mov ecx, dword [ebp - 0xa58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e1
push edx
push ecx
call fcn.00411ccf
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 0x406468
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40645e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e6
push edx
push ecx
call fcn.00411ccf
add esp, 8
cmp dword [ebp - 0xa44], 8
lea eax, [ebp - 0xa58]
cmovae eax, dword [ebp - 0xa58]
push eax
lea eax, [ebp - 0xb88]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0xc3c]
lea eax, [ebp - 0xafc]
push str._cookie
push esi
push eax
call fcn.00403600
add esp, 0xc
cmp byte [ebp - 0xaf4], 0
je 0x4064cd
mov eax, dword [ebp - 0xaf8]
cmp eax, 0x40
jae 0x4064cd
push eax
push dword [ebp - 0xafc]
lea ecx, [ebp - 0xad0]
call fcn.00404af0
jmp 0x4064dc
lea eax, [ebp - 0xad0]
push eax
call fcn.004034e0
add esp, 4
cmp dword [ebp - 0xac0], 0
je 0x406507
cmp dword [ebp - 0xabc], 8
lea eax, [ebp - 0xad0]
cmovae eax, dword [ebp - 0xad0]
push eax
lea eax, [ebp - 0xb80]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x964], 0
push eax
lea eax, [ebp - 0x964]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.00403c20
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x40654e
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xb90]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x964]
lea eax, [ebp - 0xb7c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call fcn.004090c0
cmp eax, 0x6020000
jae 0x40657a
call fcn.00409260
test al, al
je 0x406767
push 0
push 0
mov byte [ebp - 0xc34], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xb6c], eax
lea eax, [ebp - 0xb68]
push eax
push 0x42531c
push 1
push 0
push 0x42532c
mov dword [ebp - 0xb68], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x406622
mov ecx, dword [ebp - 0xb68]
mov dword [ebp - 0xb70], 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x34]
lea eax, [ebp - 0xb70]
push eax
push ecx
mov ecx, esi
call dword [0x424300]
call esi
mov edi, eax
test edi, edi
js 0x406608
mov eax, dword [ebp - 0xc34]
mov ecx, 1
test dword [ebp - 0xb70], 0x440
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0xc34], eax
mov eax, dword [ebp - 0xb68]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x424300]
call esi
test edi, edi
jns 0x406629
mov byte [ebp - 0xc34], 1
cmp dword [ebp - 0xb6c], 0
jl 0x406638
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0xc34], 0
jne 0x40675b
push 0x8ca
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc25], 0
jne 0x40869f
mov eax, dword [ebp - 0x964]
cmp eax, 0x15
je 0x4066bf
cmp eax, 0x16
je 0x4066bf
mov edi, dword [ebp - 0xc48]
push edi
push 0x2711
call fcn.00403dd0
push edi
push 0x277a
mov esi, eax
call fcn.00403dd0
add esp, 0x10
push 0x409
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40869f
mov esi, dword [ebp - 0xc48]
push str.Avast_One
push esi
push 0x2774
call fcn.00403dd0
add esp, 8
push eax
lea eax, [ebp - 0x930]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.Avast_One
push esi
push 0x2775
call fcn.00403dd0
add esp, 8
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.00417a59
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push 0x1f4
push eax
call fcn.00417a59
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 0x40869f
mov edi, dword [ebp - 0xc30]
mov esi, dword [ebp - 0xc3c]
call fcn.00409250
test al, al
jne 0x4067ca
mov eax, dword [ebp - 0x964]
cmp eax, 0x15
je 0x406780
cmp eax, 0x16
jne 0x4067ca
push 0xc000001d
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xc000001d
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc25], 0
jne 0x40869f
mov edi, dword [ebp - 0xc48]
push edi
push 0x277d
call fcn.00403e90
add esp, 8
jmp 0x40869f
movups xmm0, xmmword [ebp - 0xb98]
lea eax, [ebp - 0xbfc]
push eax
movups xmmword [ebp - 0xbfc], xmm0
movups xmm0, xmmword [ebp - 0xb88]
movups xmmword [ebp - 0xbec], xmm0
movq xmm0, qword [ebp - 0xb78]
movq qword [ebp - 0xbdc], xmm0
mov dword [ebp - 0xbd8], str.microstub_start
call fcn.004048c0
lea eax, [ebp - 0xbfc]
push eax
call fcn.00404920
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0xbb0], eax
mov eax, dword [ebp - 0x964]
push str._ppi_icd
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0x9a0]
mov dword [ebp - 0xbb4], edi
mov edi, dword [ebp - 0xc48]
push esi
push eax
mov word [ebp - 0xba8], di
movq qword [ebp - 0xba4], xmm0
mov dword [ebp - 0xb9c], 0
call fcn.00403600
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x4068b1
lea eax, [ebp - 0xbb4]
push eax
call fcn.00401cf0
mov esi, eax
add esp, 4
test esi, esi
je 0x4068ab
push 0x4c7
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40869f
mov esi, dword [ebp - 0xc3c]
cmp byte [ebp - 0xc25], 0
jne 0x4068db
push 0
push 0
lea eax, [ebp - 0xbb4]
push eax
push 0x401ea0
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.004033f0
add esp, 4
test al, al
jne 0x406916
push 3
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40869f
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.004042c0
push str._cust_ini
lea eax, [ebp - 0xb08]
push esi
push eax
call fcn.00403600
add esp, 0x10
cmp byte [ebp - 0xb00], 0
je 0x406f67
push dword [ebp - 0xb04]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xb08]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.00404af0
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], 0xd
mov dword [ebp - 0xc40], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xc44], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406a21
cmp word [ecx], 0x22
je 0x4069de
add ecx, 2
cmp ecx, edi
jne 0x4069d1
cmp ecx, edi
je 0x406a21
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 0x406a15
movzx edi, word [eax]
cmp edi, 0x22
je 0x406a05
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x4069f7
mov esi, dword [ebp - 0x938]
jmp 0x406a1b
mov esi, dword [ebp - 0xc40]
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 0x4088eb
mov edi, dword [ebp - 0xc44]
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.00413570
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 0x406eef
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 0x406eef
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 0x424604
push 0x424d0c
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xab8]
call fcn.00404af0
push 0x3a
lea ecx, [ebp - 0xab8]
call fcn.004058d0
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.00404f40
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 0x406bb6
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x960]
call fcn.00404af0
mov esi, dword [ebp - 0x94c]
mov edx, dword [ebp - 0x950]
mov eax, 0xc
mov dword [ebp - 0xc2c], eax
cmp esi, 8
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x960]
cmovae eax, dword [ebp - 0x960]
lea ecx, [ebp - 0xab8]
push edx
push eax
call fcn.00404130
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0xd
call fcn.00402fe0
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 0x424604
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xb20]
call fcn.00404af0
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 0x424604
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406e74
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x998], 0
push eax
lea eax, [ebp - 0x9a0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x9a0], xmm0
call fcn.0040a000
add esp, 8
mov ecx, dword [ebp - 0x99c]
mov eax, dword [ebp - 0x9a0]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 0xf
mov byte [ebp - 0x960], 0
call fcn.004049f0
cmp dword [ebp - 0x94c], 0x10
lea edx, [ebp - 0x960]
mov eax, dword [ebp - 0x950]
lea edi, [ebp - 0x960]
cmovae edx, dword [ebp - 0x960]
lea ecx, [ebp - 0xa40]
add eax, edx
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x94c], 0x10
mov dword [ebp - 0xb6c], eax
cmovae edi, dword [ebp - 0x960]
cmp dword [ebp - 0xa2c], 8
mov eax, dword [ebp - 0xa30]
cmovae ecx, dword [ebp - 0xa40]
mov esi, dword [ebp - 0xb6c]
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc44], eax
lea ecx, [ebp - 0x994]
lea eax, [ebp - 0xa40]
cmovae eax, dword [ebp - 0xa40]
mov dword [ebp - 0xc40], eax
xor eax, eax
mov word [ebp - 0x994], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00405ba0
push dword [ebp - 0xa28]
lea ecx, [ebp - 0x994]
push esi
push edi
call fcn.00404c20
mov ecx, dword [ebp - 0xc40]
lea eax, [ebp - 0xa40]
mov edx, dword [ebp - 0xc44]
push dword [ebp - 0x984]
sub edx, ecx
mov byte [ebp - 4], 0x11
sar edx, 1
cmp dword [ebp - 0xa2c], 8
cmovae eax, dword [ebp - 0xa40]
sub ecx, eax
lea eax, [ebp - 0x994]
sar ecx, 1
cmp dword [ebp - 0x980], 8
cmovae eax, dword [ebp - 0x994]
push eax
push edx
push ecx
lea ecx, [ebp - 0xa40]
call fcn.00405a00
mov edx, dword [ebp - 0x980]
mov byte [ebp - 4], 0x10
cmp edx, 8
jb 0x406e2b
mov ecx, dword [ebp - 0x994]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406e21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088f0
push edx
push ecx
call fcn.00411ccf
add esp, 8
lea ecx, [ebp - 0x960]
call fcn.00404480
mov ecx, dword [ebp - 0x9a0]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x406e74
mov edx, dword [ebp - 0x998]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406e6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088f5
push edx
push ecx
call fcn.00411ccf
add esp, 8
cmp dword [ebp - 0xaa4], 8
lea eax, [ebp - 0xab8]
cmovae eax, dword [ebp - 0xab8]
cmp dword [ebp - 0xb0c], 8
mov dword [ebp - 0xbc4], eax
lea eax, [ebp - 0xb20]
cmovae eax, dword [ebp - 0xb20]
cmp dword [ebp - 0xa2c], 8
mov dword [ebp - 0xbbc], eax
lea eax, [ebp - 0xa40]
cmovae eax, dword [ebp - 0xa40]
cmp dword [ebp - 0x934], 8
mov dword [ebp - 0xbb8], 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 - 0xbc0], 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 0x424604
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406f52
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f30
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xaa0]
call fcn.00404af0
lea ecx, [ebp - 0x948]
mov byte [ebp - 4], 8
call fcn.00402fe0
mov esi, dword [ebp - 0xc3c]
push str._smbupd
lea eax, [ebp - 0xa7c]
push esi
push eax
call fcn.00403600
add esp, 0xc
cmp byte [ebp - 0xa74], 0
je 0x4073aa
push dword [ebp - 0xa78]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xa7c]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.00404af0
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], 0x12
mov dword [ebp - 0xc40], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xc44], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x40705a
cmp word [ecx], 0x22
je 0x407012
add ecx, 2
cmp ecx, edi
jne 0x407005
cmp ecx, edi
je 0x40705a
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 0x40704e
nop dword [eax + eax]
movzx edi, word [eax]
cmp edi, 0x22
je 0x40703e
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x407030
mov esi, dword [ebp - 0x938]
jmp 0x407054
mov esi, dword [ebp - 0xc40]
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 0x4088fa
mov edi, dword [ebp - 0xc44]
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.00413570
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 0x407399
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 0x407399
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 0x424604
push str.urlpgm
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x99c], 0
push eax
lea eax, [ebp - 0x3c0]
mov word [ebp - 0x9ac], cx
push eax
lea ecx, [ebp - 0x9ac]
mov dword [ebp - 0x998], 7
call fcn.00404af0
push 7
xor eax, eax
mov byte [ebp - 4], 0x13
push str.http:__
lea ecx, [ebp - 0x994]
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 7
mov word [ebp - 0x994], ax
call fcn.00404af0
lea eax, [ebp - 0x994]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x9ac]
push eax
call fcn.004056a0
add esp, 8
test al, al
jne 0x407207
push 8
push str.https:__
lea ecx, [ebp - 0x994]
call fcn.00404af0
lea eax, [ebp - 0x994]
push eax
lea eax, [ebp - 0x9ac]
push eax
call fcn.004056a0
add esp, 8
test al, al
je 0x407343
mov esi, dword [ebp - 0x984]
test esi, esi
je 0x407343
cmp dword [ebp - 0x998], 8
lea edi, [ebp - 0x9ac]
mov eax, 0x2f
cmovae edi, dword [ebp - 0x9ac]
mov word [ebp - 0xb68], ax
mov eax, dword [ebp - 0x99c]
cmp esi, eax
jae 0x407343
lea ecx, [ebp - 0xb68]
sub eax, esi
push ecx
push eax
lea eax, [edi + esi*2]
push eax
call fcn.004057e0
add esp, 0xc
test eax, eax
je 0x407343
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x407343
lea ecx, [ebp - 0xb65]
sub eax, esi
push ecx
push eax
push esi
lea eax, [ebp - 0x9ac]
push eax
lea ecx, [ebp - 0x960]
call fcn.00405060
push 0
push 0x424958
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x15
call fcn.00405810
mov esi, eax
cmp esi, 0xffffffff
je 0x407308
test esi, esi
je 0x407308
push esi
push 0
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0xae8]
call fcn.00405660
lea eax, [ebp - 0xb65]
push eax
push dword [ebp - 0x950]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405060
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.004160ba
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc54], esi
call fcn.00402fe0
jmp 0x407338
cmp dword [ebp - 0x94c], 8
lea eax, [ebp - 0x960]
push dword [ebp - 0x950]
cmovae eax, dword [ebp - 0x960]
lea ecx, [ebp - 0xae8]
push eax
call fcn.00404af0
mov dword [ebp - 0xc54], 0
lea ecx, [ebp - 0x960]
call fcn.00402fe0
cmp dword [ebp - 0x934], 8
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
push eax
push 0
push str.allow_fallback
push str.mirror
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xc58]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xc58], ecx
lea ecx, [ebp - 0x994]
call fcn.00402fe0
lea ecx, [ebp - 0x9ac]
call fcn.00402fe0
lea ecx, [ebp - 0x948]
call fcn.00402fe0
mov esi, dword [ebp - 0xc3c]
xor edi, edi
mov dword [ebp - 0x9c8], 7
xor eax, eax
mov dword [ebp - 0x9cc], edi
mov word [ebp - 0x9dc], ax
mov byte [ebp - 4], 0x16
call fcn.004090c0
cmp eax, 0x6010100
jb 0x40777e
call fcn.00409210
test al, al
je 0x40777e
push str._geo
lea eax, [ebp - 0x9a0]
push esi
push eax
call fcn.00403600
add esp, 0xc
cmp byte [ebp - 0x998], 0
je 0x407464
lea ecx, [ebp - 0x9a0]
call fcn.00405d20
xor ecx, ecx
mov dword [ebp - 0x950], edi
mov word [ebp - 0x960], cx
lea ecx, [ebp - 0x960]
mov dword [ebp - 0x94c], 7
push dword [eax + 4]
push dword [eax]
call fcn.00404af0
lea eax, [ebp - 0x960]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0xb65]
call fcn.00405280
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x16
mov edi, eax
call fcn.00402fe0
jmp 0x40777e
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x10000
mov esi, eax
push 0
push esi
mov dword [ebp - 0xc4c], esi
call fcn.00412ff0
lea eax, [ebp - 0xbc4]
mov dword [ebp - 0xb70], 0
push eax
push 0
push 0
lea eax, [ebp - 0xb70]
push eax
push 0x10000
push esi
push 0
push 1
push str._v2_info
push 0x1bb
push str.ip_info.ff.avast.com
call fcn.004025a0
add esp, 0x38
test al, al
je 0x40776a
mov eax, dword [ebp - 0xb70]
test eax, eax
je 0x40776a
push eax
push esi
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x938], 0
mov dword [ebp - 0x934], 0xf
mov byte [ebp - 0x948], 0
call fcn.004049f0
push 0xb
push str._country_:_
lea ecx, [ebp - 0x994]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 0xf
mov byte [ebp - 0x994], 0
call fcn.004049f0
cmp dword [ebp - 0x980], 0x10
lea edx, [ebp - 0x994]
lea edi, [ebp - 0x994]
mov byte [ebp - 4], 0x19
cmovae edx, dword [ebp - 0x994]
lea eax, [ebp - 0x948]
add edx, dword [ebp - 0x984]
lea esi, [ebp - 0x948]
cmp dword [ebp - 0x980], 0x10
mov ecx, edx
mov dword [ebp - 0xc44], edx
cmovae edi, dword [ebp - 0x994]
cmp dword [ebp - 0x934], 0x10
mov dword [ebp - 0xc40], edi
cmovae eax, dword [ebp - 0x948]
add eax, dword [ebp - 0x938]
cmp dword [ebp - 0x934], 0x10
mov dword [ebp - 0xb6c], eax
cmovae esi, dword [ebp - 0x948]
sub ecx, edi
sub eax, esi
mov dword [ebp - 0xc34], esi
cmp eax, ecx
jl 0x407651
mov eax, dword [ebp - 0xb6c]
sub eax, ecx
mov ecx, esi
mov dword [ebp - 0xc50], eax
sub ecx, edi
mov dword [ebp - 0xc30], ecx
cmp dword [ebp - 0xc40], edx
je 0x407657
nop
mov al, byte [edi]
mov byte [ebp - 0xb65], al
mov al, byte [edi + ecx]
movzx eax, al
push eax
call fcn.00416209
mov si, ax
mov al, byte [ebp - 0xb65]
movzx ecx, al
push ecx
call fcn.00416209
add esp, 8
cmp si, ax
jne 0x40761f
inc edi
cmp edi, dword [ebp - 0xc44]
je 0x407649
mov ecx, dword [ebp - 0xc30]
jmp 0x4075e0
mov esi, dword [ebp - 0xc34]
cmp esi, dword [ebp - 0xc50]
je 0x407651
mov ecx, dword [ebp - 0xc30]
inc esi
mov edx, dword [ebp - 0xc44]
inc ecx
mov edi, dword [ebp - 0xc40]
mov dword [ebp - 0xc34], esi
jmp 0x4075d1
mov esi, dword [ebp - 0xc34]
jmp 0x407657
mov esi, dword [ebp - 0xb6c]
mov ecx, dword [ebp - 0x934]
lea eax, [ebp - 0x948]
mov edx, dword [ebp - 0x948]
cmp ecx, 0x10
mov edi, dword [ebp - 0x938]
cmovae eax, edx
add eax, edi
cmp esi, eax
je 0x407748
add esi, dword [ebp - 0x984]
lea eax, [ebp - 0x948]
cmp ecx, 0x10
cmovae eax, edx
add edi, eax
mov eax, edi
sub eax, esi
push eax
push 0x22
push esi
call fcn.00413c10
add esp, 0xc
test eax, eax
cmovne edi, eax
cmp dword [ebp - 0x934], 0x10
lea eax, [ebp - 0x948]
cmovae eax, dword [ebp - 0x948]
add eax, dword [ebp - 0x938]
cmp edi, eax
je 0x407748
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 0xf
mov byte [ebp - 0x960], 0
cmp esi, edi
je 0x4076f8
sub edi, esi
lea ecx, [ebp - 0x960]
push edi
push esi
call fcn.004049f0
lea eax, [ebp - 0x960]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404300
add esp, 8
lea ecx, [ebp - 0x9dc]
push eax
call fcn.00405210
lea ecx, [ebp - 0x30]
call fcn.00402fe0
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x19
call fcn.00404480
lea eax, [ebp - 0x9dc]
push eax
lea ecx, [ebp - 0xb65]
call fcn.00405280
mov edi, eax
jmp 0x40774a
xor edi, edi
lea ecx, [ebp - 0x994]
call fcn.00404480
lea ecx, [ebp - 0x948]
mov byte [ebp - 4], 0x16
call fcn.00404480
mov esi, dword [ebp - 0xc4c]
test esi, esi
je 0x40777e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.004090c0
cmp eax, 0x6010100
jb 0x4077b9
call fcn.00409210
test al, al
je 0x4077b9
call fcn.00409250
test al, al
je 0x4077b9
test edi, edi
je 0x4077b9
push edi
call fcn.00403d90
add esp, 4
test eax, eax
je 0x4077b9
push eax
lea ecx, [ebp - 0x97c]
call fcn.00405250
cmp dword [ebp - 0x96c], 0
jne 0x40786c
call fcn.004090c0
cmp eax, 0x6010100
jb 0x407823
call fcn.00409210
test al, al
je 0x407823
call fcn.00409250
test al, al
je 0x407823
mov esi, 0x837
call fcn.00409160
test al, al
je 0x4077f9
mov esi, 0x839
jmp 0x407808
call fcn.00409260
test al, al
mov ecx, 0x838
cmovne esi, ecx
push esi
call fcn.00403d90
mov edx, eax
add esp, 4
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x407816
jmp 0x40785b
call fcn.004090c0
cmp eax, 0x6010000
jb 0x40786c
call fcn.00409260
xor ecx, ecx
test al, al
setne cl
add ecx, 0x835
push ecx
call fcn.00403d90
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x407850
sub edx, esi
lea ecx, [ebp - 0x97c]
sar edx, 1
push edx
push eax
call fcn.00404af0
xor eax, eax
mov dword [ebp - 0x9b4], 0
push eax
push 0x424604
lea ecx, [ebp - 0x9c4]
mov dword [ebp - 0x9b0], 7
mov word [ebp - 0x9c4], ax
call fcn.00404af0
cmp dword [ebp - 0x968], 8
lea ecx, [ebp - 0x97c]
mov eax, dword [ebp - 0x96c]
cmovae ecx, dword [ebp - 0x97c]
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0xc50], ecx
cmp eax, 1
jb 0x408667
lea eax, [ecx + eax*2]
mov esi, ecx
mov dword [ebp - 0xc4c], eax
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x4078f6
cmp word [esi], 0x2f
je 0x4078f4
cmp ecx, 1
je 0x4078f6
add esi, 2
dec ecx
cmp word [esi], 0x2f
jne 0x4078e5
mov edx, esi
mov esi, edx
test esi, esi
je 0x408667
movzx ecx, word [esi]
mov edx, 0x2f
mov edi, 1
mov eax, 0x424ed4
cmp ecx, edx
jb 0x407942
mov dword [ebp - 0xc30], esi
sub dword [ebp - 0xc30], eax
cmp cx, dx
ja 0x407942
cmp edi, 1
je 0x40794d
mov ecx, dword [ebp - 0xc30]
add eax, 2
dec edi
movzx ecx, word [ecx + eax]
movzx edx, word [eax]
cmp cx, dx
jae 0x407925
mov eax, dword [ebp - 0xc4c]
add esi, 2
jmp 0x4078d2
sub esi, dword [ebp - 0xc50]
sar esi, 1
cmp esi, 0xffffffff
je 0x408667
lea eax, [ebp - 0xb65]
push eax
push esi
push 0
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x960]
call fcn.00405060
or dword [ebp - 0xc2c], 0x10
lea ecx, [ebp - 0x9c4]
call fcn.00402fe0
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x9c4], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x9b4], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402fe0
lea eax, [ebp - 0xb65]
push eax
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x960]
call fcn.00405060
mov esi, dword [ebp - 0xc2c]
lea ecx, [ebp - 0x97c]
or esi, 0x20
mov dword [ebp - 0xc2c], esi
mov dword [ebp - 0xc34], esi
call fcn.00402fe0
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x97c], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x96c], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402fe0
push 0xd
xor eax, eax
mov dword [ebp - 0xa14], 0
push 0x424ed8
lea ecx, [ebp - 0xa24]
mov dword [ebp - 0xa10], 7
mov word [ebp - 0xa24], ax
call fcn.00404af0
cmp dword [ebp - 0x968], 8
lea edi, [ebp - 0x97c]
mov eax, dword [ebp - 0x96c]
cmovae edi, dword [ebp - 0x97c]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0xb68], edi
cmp eax, 1
jb 0x407bd1
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0xb68]
mov edi, eax
sub edi, 0x424ed4
cmp word [eax], 0x2f
mov dword [ebp - 0xc38], eax
jne 0x407b11
mov ecx, 0x2f
mov esi, 1
mov edx, ecx
mov eax, 0x424ed4
cmp cx, dx
ja 0x407b05
cmp esi, 1
je 0x407b21
movzx ecx, word [eax + edi + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x407aed
mov ecx, dword [ebp - 0xb68]
mov eax, dword [ebp - 0xc38]
cmp eax, ecx
je 0x407bcb
sub eax, 2
sub edi, 2
jmp 0x407acd
mov eax, dword [ebp - 0xc38]
sub eax, dword [ebp - 0xb68]
sar eax, 1
cmp eax, 0xffffffff
je 0x407bcb
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x96c]
cmp ecx, eax
jae 0x407bd1
lea eax, [ebp - 0xb65]
push eax
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x960]
call fcn.00405060
mov eax, dword [ebp - 0xc2c]
lea ecx, [ebp - 0xa24]
or eax, 0x40
mov dword [ebp - 0xc2c], eax
mov dword [ebp - 0xc34], eax
call fcn.00402fe0
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0xa24], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0xa14], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402fe0
mov eax, dword [ebp - 0x96c]
cmp dword [ebp - 0x968], 8
lea ecx, [ebp - 0x97c]
cmovae ecx, dword [ebp - 0x97c]
mov dword [ebp - 0xc50], ecx
cmp eax, 0xf
jb 0x407dec
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc4c], eax
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x407c26
cmp word [edi], 0x7b
je 0x407c24
cmp ecx, 1
je 0x407c26
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x407c15
mov edx, edi
mov edi, edx
test edi, edi
je 0x407dec
movzx ecx, word [edi]
mov esi, 0x7b
mov edx, 0xf
mov eax, str.versionSwitch
cmp ecx, esi
jb 0x407c72
mov dword [ebp - 0xc30], edi
sub dword [ebp - 0xc30], eax
cmp cx, si
ja 0x407c72
cmp edx, 1
je 0x407c7d
mov ecx, dword [ebp - 0xc30]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx esi, word [eax]
cmp cx, si
jae 0x407c55
mov eax, dword [ebp - 0xc4c]
add edi, 2
jmp 0x407c02
sub edi, dword [ebp - 0xc50]
sar edi, 1
cmp edi, 0xffffffff
je 0x407dec
mov ecx, dword [ebp - 0xa90]
test ecx, ecx
jne 0x407ce7
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.00404af0
mov edx, dword [ebp - 0xc2c]
lea eax, [ebp - 0x994]
or edx, 1
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xc2c], edx
mov dword [ebp - 0xc34], edx
jmp 0x407d97
cmp dword [ebp - 0xa8c], 8
lea eax, [ebp - 0xaa0]
cmovae eax, dword [ebp - 0xaa0]
mov dword [ebp - 0xc4c], eax
cmp ecx, 8
jae 0x407d22
movups xmm0, xmmword [eax]
mov dword [ebp - 0x950], ecx
mov dword [ebp - 0x94c], 7
movups xmmword [ebp - 0x960], xmm0
jmp 0x407d75
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.00403f00
mov ecx, dword [ebp - 0xa90]
mov dword [ebp - 0x960], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xc4c]
push eax
call fcn.004128d0
mov eax, dword [ebp - 0xa90]
add esp, 0xc
mov dword [ebp - 0x950], eax
mov dword [ebp - 0x94c], esi
mov ecx, dword [ebp - 0xc2c]
lea eax, [ebp - 0x960]
or ecx, 2
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc2c], ecx
mov dword [ebp - 0xc34], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x407da2
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x97c]
call fcn.00405a00
mov eax, dword [ebp - 0xc2c]
test al, 2
je 0x407dd6
and eax, 0xfffffffd
lea ecx, [ebp - 0x960]
mov dword [ebp - 0xc2c], eax
call fcn.00402fe0
mov eax, dword [ebp - 0xc2c]
mov dword [ebp - 4], 0x1c
test al, 1
je 0x407dec
lea ecx, [ebp - 0x994]
call fcn.00402fe0
cmp dword [ebp - 0xa10], 8
lea eax, [ebp - 0xa24]
cmovae eax, dword [ebp - 0xa24]
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 - 0xc38], esi
cmp esi, 0xffffffff
jne 0x407e79
push 2
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa24]
call fcn.00402fe0
jmp 0x408685
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 - 0xaf0]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x407f43
cmp dword [ebp - 0xaec], 0
ja 0x407f43
jb 0x407ed6
cmp dword [ebp - 0xaf0], 0x6400000
jae 0x407f43
push 0x70
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc25], 0
jne 0x407f33
mov edi, dword [ebp - 0xc48]
push edi
push 0x2711
call fcn.00403dd0
push edi
push 0x2779
mov esi, eax
call fcn.00403dd0
add esp, 0x10
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0xba4]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0xa24]
call fcn.00402fe0
jmp 0x408685
push 0x27
xor eax, eax
mov dword [ebp - 0x9e4], 0
push str.User_Agent:_avast__Antivirus__instup__r_n
lea ecx, [ebp - 0x9f4]
mov dword [ebp - 0x9e0], 7
mov word [ebp - 0x9f4], ax
call fcn.00404af0
cmp dword [ebp - 0xad8], 0
lea edi, [ebp - 0xbc4]
push edi
lea edi, [ebp - 0xb9c]
mov byte [ebp - 4], 0x1f
push edi
lea edi, [ebp - 0xba0]
push edi
lea edx, [ebp - 0x9f4]
lea ecx, [ebp - 0x97c]
push esi
je 0x408018
cmp dword [ebp - 0x9e0], 8
lea eax, [ebp - 0xae8]
cmovae edx, dword [ebp - 0x9f4]
cmp dword [ebp - 0x968], 8
push edx
cmovae ecx, dword [ebp - 0x97c]
cmp dword [ebp - 0xad4], 8
push ecx
cmovae eax, dword [ebp - 0xae8]
push dword [ebp - 0xc54]
push eax
call fcn.00402970
add esp, 0x20
test al, al
jne 0x408178
cmp byte [ebp - 0xc58], al
je 0x40805b
lea edi, [ebp - 0xbc4]
push edi
lea edi, [ebp - 0xb9c]
push edi
lea edi, [ebp - 0xba0]
push edi
lea edx, [ebp - 0x9f4]
lea ecx, [ebp - 0x97c]
push esi
cmp dword [ebp - 0x9e0], 8
lea eax, [ebp - 0x9c4]
cmovae edx, dword [ebp - 0x9f4]
cmp dword [ebp - 0x968], 8
push edx
cmovae ecx, dword [ebp - 0x97c]
cmp dword [ebp - 0x9b0], 8
push ecx
cmovae eax, dword [ebp - 0x9c4]
push eax
call fcn.004027f0
add esp, 0x1c
test al, al
jne 0x408178
push 0x8ca
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc25], 0
jne 0x40815d
mov eax, dword [ebp - 0x964]
cmp eax, 0x15
je 0x4080cc
cmp eax, 0x16
je 0x4080cc
mov edi, dword [ebp - 0xc48]
push edi
push 0x2711
call fcn.00403dd0
push edi
push 0x277a
mov esi, eax
call fcn.00403dd0
add esp, 0x10
push 0x409
push 0x10
push esi
jmp 0x408150
mov esi, dword [ebp - 0xc48]
push str.Avast_One
push esi
push 0x2774
call fcn.00403dd0
add esp, 8
push eax
lea eax, [ebp - 0x930]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.Avast_One
push esi
push 0x2775
call fcn.00403dd0
add esp, 8
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.00405000
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.00405000
add esp, 0x1c
lea eax, [ebp - 0x930]
push 0x409
push 0x10
push str.Avast_One
push eax
push dword [ebp - 0xba4]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9f4]
call fcn.00402fe0
lea ecx, [ebp - 0xa24]
call fcn.00402fe0
jmp 0x408685
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 - 0xc38], eax
cmp eax, 0xffffffff
jne 0x4081c8
push 0x6e
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40815d
push 0
push eax
call fcn.00409500
mov esi, dword [ebp - 0xc38]
add esp, 8
test al, al
jne 0x408226
push 1
push esi
call fcn.00409500
add esp, 8
test al, al
jne 0x408226
push 2
push esi
call fcn.00409500
add esp, 8
test al, al
jne 0x408226
push 0x6fe
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40815d
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.00403b20
add esp, 8
test al, al
je 0x40824e
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xb8c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb98]
lea eax, [ebp - 0xc24]
push eax
movups xmmword [ebp - 0xc24], xmm0
movups xmm0, xmmword [ebp - 0xb88]
movups xmmword [ebp - 0xc14], xmm0
movq xmm0, qword [ebp - 0xb78]
movq qword [ebp - 0xc04], xmm0
mov dword [ebp - 0xc00], str.microstub_download
call fcn.004048c0
lea eax, [ebp - 0xc24]
push eax
call fcn.00404920
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 0x424f94
call fcn.00404af0
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x20
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082e0
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x960]
call fcn.00404130
push eax
lea ecx, [ebp - 0x30]
call fcn.00405020
push 0x22
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.004058d0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa0c]
call fcn.00405020
lea ecx, [ebp - 0x30]
call fcn.00402fe0
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x24
call fcn.00402fe0
mov edi, dword [ebp - 0xc3c]
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408350
sub ecx, edx
sar ecx, 1
je 0x40838f
push 0x20
lea ecx, [ebp - 0xa0c]
call fcn.004058d0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408373
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xa0c]
call fcn.00404130
cmp dword [ebp - 0xb80], 0
je 0x4083d1
push 9
push 0x424f98
lea ecx, [ebp - 0xa0c]
call fcn.00404130
mov edx, dword [ebp - 0xb80]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4083b5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0c]
call fcn.00404130
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0xa0c]
call fcn.00404130
mov edx, dword [ebp - 0xb88]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4083f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0c]
call fcn.00404130
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0xa0c]
call fcn.00404130
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408427
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa0c]
call fcn.00404130
cmp word [ebp - 0x1c0], 0
je 0x408492
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0xa0c]
call fcn.00404130
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408470
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa0c]
call fcn.00404130
push str._geo
lea eax, [ebp - 0x9a0]
push edi
push eax
call fcn.00403600
add esp, 0xc
mov al, byte [eax + 8]
test al, al
jne 0x4084ef
cmp dword [ebp - 0x9cc], 0
je 0x4084ef
push 6
push str.__geo:
lea ecx, [ebp - 0xa0c]
call fcn.00404130
cmp dword [ebp - 0x9c8], 8
lea eax, [ebp - 0x9dc]
push dword [ebp - 0x9cc]
cmovae eax, dword [ebp - 0x9dc]
lea ecx, [ebp - 0xa0c]
push eax
call fcn.00404130
push 0x40
lea eax, [ebp - 0xb60]
mov dword [ebp - 0xb64], 0x44
push 0
push eax
call fcn.00412ff0
add esp, 0xc
lea ecx, [ebp - 0xbd4]
cmp dword [ebp - 0x9f8], 8
lea eax, [ebp - 0xa0c]
cmovae eax, dword [ebp - 0xa0c]
push ecx
lea ecx, [ebp - 0xb64]
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 0x408585
push 0x23f
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa0c]
call fcn.00402fe0
jmp 0x40815d
push dword [ebp - 0xbcc]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0xbd0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4085d8
push 0x236
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa0c]
call fcn.00402fe0
jmp 0x40815d
mov eax, dword [ebp - 0xba4]
test eax, eax
je 0x4085f2
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0xbd4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xa28]
push eax
push dword [ebp - 0xbd4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40862a
push dword [ebp - 0xa28]
lea eax, [ebp - 0xb78]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa0c]
call fcn.00402fe0
lea ecx, [ebp - 0x9f4]
call fcn.00402fe0
lea ecx, [ebp - 0xa24]
call fcn.00402fe0
lea ecx, [ebp - 0x9c4]
call fcn.00402fe0
lea ecx, [ebp - 0x9dc]
mov byte [ebp - 4], 8
call fcn.00402fe0
jmp 0x40869f
push 0x57
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9c4]
call fcn.00402fe0
lea ecx, [ebp - 0x9dc]
mov byte [ebp - 4], 8
call fcn.00402fe0
lea eax, [ebp - 0xb98]
push eax
call fcn.004048c0
lea eax, [ebp - 0xb98]
push eax
call fcn.00404920
mov eax, dword [ebp - 0xc38]
add esp, 8
cmp eax, 0xffffffff
je 0x4086cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbd0]
test eax, eax
je 0x4086dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbd4]
test eax, eax
je 0x4086ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004090c0
cmp eax, 0x6010000
jb 0x4087ff
push dword [ebp - 0xb7c]
call fcn.00403d40
add esp, 4
test al, al
je 0x4087ff
mov eax, dword [ebp - 0xb98]
cmp eax, 0x4c7
je 0x4087ff
test eax, eax
jne 0x408758
mov eax, dword [ebp - 0xb78]
test eax, eax
je 0x4087ff
cmp eax, 0xa003
je 0x4087ff
cmp eax, 0xa104
je 0x4087ff
cmp eax, 0xac58
je 0x4087ff
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.00412ff0
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 0x4087ff
push 0x2f
call fcn.004042e0
push eax
call fcn.00413ae4
add esp, 8
mov esi, eax
push 0x5c
call fcn.004042e0
push eax
call fcn.00413ae4
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x424850
push eax
cmovb edi, esi
call fcn.00404fe0
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.00404fe0
add esp, 0x18
push 0
call fcn.004042e0
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x4087ff
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.004042e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0xc5c]
test esi, esi
je 0x408817
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.00404630
mov esi, dword [ebp - 0xb98]
lea ecx, [ebp - 0xae8]
add esp, 4
cmp dword [ebp - 0xb78], 0x103
cmovne esi, dword [ebp - 0xb78]
call fcn.00402fe0
lea ecx, [ebp - 0xa40]
call fcn.00402fe0
lea ecx, [ebp - 0xb20]
call fcn.00402fe0
lea ecx, [ebp - 0xab8]
call fcn.00402fe0
lea ecx, [ebp - 0xaa0]
call fcn.00402fe0
lea ecx, [ebp - 0x97c]
call fcn.00402fe0
lea ecx, [ebp - 0xa58]
call fcn.00402fe0
lea ecx, [ebp - 0xa70]
call fcn.00402fe0
lea ecx, [ebp - 0xad0]
call fcn.00402fe0
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.00411c8e
mov esp, ebp
pop ebp
ret 0x10
push str.stoi_argument_out_of_range
call fcn.0041168d
push str.invalid_stoi_argument
call fcn.0041164d
call fcn.00415810
call fcn.00415810
call fcn.00415810
call fcn.00415810
call fcn.00415810
call fcn.00404980
call fcn.00415810
call fcn.00415810
call fcn.00404980
int3