Function at 0x405be0
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 0x423140
mov eax, dword fs:[0]
push eax
sub esp, 0xc4c
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 esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0xc34], edi
mov dword [ebp - 0xb70], esi
or esi, 0xffffffff
mov dword [ebp - 0xc44], eax
xor eax, eax
mov dword [ebp - 0xc30], edi
mov dword [ebp - 0xc58], eax
mov dword [ebp - 0xc3c], eax
mov dword [ebp - 0xc38], esi
mov dword [ebp - 0x964], esi
movups xmmword [ebp - 0xbd8], xmm0
mov dword [ebp - 0xac4], eax
mov dword [ebp - 0xac0], 7
mov word [ebp - 0xad4], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 0xa48], 7
mov word [ebp - 0xa5c], ax
mov dword [ebp - 0xa64], eax
mov dword [ebp - 0xa60], 7
mov word [ebp - 0xa74], ax
mov dword [ebp - 0x96c], eax
mov dword [ebp - 0x968], 7
mov word [ebp - 0x97c], ax
mov dword [ebp - 0xa94], eax
mov dword [ebp - 0xa90], 7
mov word [ebp - 0xaa4], ax
mov dword [ebp - 0xaac], eax
mov dword [ebp - 0xaa8], 7
mov word [ebp - 0xabc], ax
mov dword [ebp - 0xb08], eax
mov dword [ebp - 0xb04], 7
mov word [ebp - 0xb18], ax
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa30], 7
mov word [ebp - 0xa44], ax
mov dword [ebp - 0xadc], eax
mov dword [ebp - 0xad8], 7
mov word [ebp - 0xaec], ax
mov word [ebp - 0x140], ax
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
xor al, al
mov dword [ebp - 0xc50], eax
mov byte [ebp - 0xc29], al
xor eax, eax
mov dword [ebp - 0xc54], eax
mov dword [ebp - 0xb6c], eax
lea eax, [ebp - 0xb7c]
push 0x103
push eax
mov byte [ebp - 4], 8
movups xmmword [ebp - 0xb9c], xmm0
movups xmmword [ebp - 0xb8c], xmm0
movq qword [ebp - 0xb7c], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [ebp - 0xc44]
lea eax, [ebp - 0xa80]
push 0x424bfc
xorps xmm0, xmm0
push edi
push eax
movups xmmword [ebp - 0xbc8], xmm0
call fcn.004035c0
add esp, 0xc
mov al, byte [eax + 8]
mov byte [ebp - 0xc2a], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
lea eax, [ebp - 0xa8c]
push str._langId
push edi
push eax
mov dword [ebp - 0xc40], esi
call fcn.004035c0
add esp, 0xc
cmp byte [ebp - 0xa84], 0
jne 0x405e14
push str._language
lea eax, [ebp - 0xa80]
push edi
push eax
call fcn.004035c0
add esp, 0xc
movq xmm0, qword [eax]
movq qword [ebp - 0xa8c], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0xa84], eax
test al, al
je 0x405ec2
mov edx, dword [ebp - 0xa8c]
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]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x960]
call fcn.00405460
mov byte [ebp - 4], 9
call fcn.0041611b
cmp dword [ebp - 0x94c], 8
lea esi, [ebp - 0x960]
mov edi, eax
lea eax, [ebp - 0xb74]
cmovae esi, dword [ebp - 0x960]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0041612e
add esp, 0xc
cmp esi, dword [ebp - 0xb74]
je 0x4085dd
cmp dword [edi], 0x22
je 0x4085d3
movzx esi, ax
lea ecx, [ebp - 0x960]
mov dword [ebp - 0xc40], esi
call fcn.00402fa0
mov edi, dword [ebp - 0xc44]
mov byte [ebp - 4], 0xa
call fcn.00408df0
cmp eax, 0x6000000
jb 0x405f79
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00408c80
add esp, 4
cmp eax, 0x3000
jae 0x405f79
push 0x52f
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc2a], 0
jne 0x405f28
push esi
push 0x277b
call fcn.00403e50
add esp, 8
mov byte [ebp - 4], 8
jmp 0x4083bf
mov dword [ebp - 4], 8
call fcn.00408e90
test al, al
je 0x405fd0
push 0xc1
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc2a], 0
jne 0x4083bf
mov edi, dword [ebp - 0xc40]
push edi
push 0x277c
call fcn.00403e50
add esp, 8
jmp 0x4083bf
push 0x4b0
call fcn.00403d50
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xc58], eax
test eax, eax
je 0x406044
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406044
push 0x420
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x4b1
call fcn.00403d50
push eax
call fcn.00401230
add esp, 8
test al, al
jne 0x4083bf
push 0x4b2
call fcn.00403d50
push eax
call fcn.00401230
add esp, 8
jmp 0x4083bf
lea eax, [ebp - 0x30]
push eax
call fcn.0040dd80
mov esi, eax
add esp, 4
lea eax, [ebp - 0xa5c]
cmp eax, esi
je 0x4060e1
mov edx, dword [ebp - 0xa48]
cmp edx, 8
jb 0x4060a0
mov ecx, dword [ebp - 0xa5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406096
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085e7
push edx
push ecx
call fcn.00411a7f
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 0x40611b
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406111
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085ec
push edx
push ecx
call fcn.00411a7f
add esp, 8
cmp dword [ebp - 0xa48], 8
lea eax, [ebp - 0xa5c]
cmovae eax, dword [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xb88]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x940]
push eax
call fcn.0040a030
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x9a8]
push eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x9a8], xmm0
call fcn.0040e480
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0xa74]
cmp eax, esi
je 0x4061f7
mov edx, dword [ebp - 0xa60]
cmp edx, 8
jb 0x4061b6
mov ecx, dword [ebp - 0xa74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4061ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085f1
push edx
push ecx
call fcn.00411a7f
add esp, 8
mov dword [ebp - 0xa64], 0
xor eax, eax
mov dword [ebp - 0xa60], 7
mov word [ebp - 0xa74], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa74], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa64], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x406231
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406227
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085f6
push edx
push ecx
call fcn.00411a7f
add esp, 8
cmp dword [ebp - 0xa60], 8
lea eax, [ebp - 0xa74]
cmovae eax, dword [ebp - 0xa74]
push eax
lea eax, [ebp - 0xb8c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._cookie
lea eax, [ebp - 0xb24]
push edi
push eax
call fcn.004035c0
add esp, 0xc
cmp byte [ebp - 0xb1c], 0
je 0x406290
mov eax, dword [ebp - 0xb20]
cmp eax, 0x40
jae 0x406290
push eax
push dword [ebp - 0xb24]
lea ecx, [ebp - 0xad4]
call fcn.00405460
jmp 0x40629f
lea eax, [ebp - 0xad4]
push eax
call fcn.004034a0
add esp, 4
cmp dword [ebp - 0xac4], 0
je 0x4062ca
cmp dword [ebp - 0xac0], 8
lea eax, [ebp - 0xad4]
cmovae eax, dword [ebp - 0xad4]
push eax
lea eax, [ebp - 0xb84]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x998], 0
push eax
lea eax, [ebp - 0x998]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.00403be0
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x406311
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xb94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x998]
lea eax, [ebp - 0xb80]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call fcn.00408df0
cmp eax, 0x6020000
jae 0x40633d
call fcn.00408f80
test al, al
je 0x40651e
push 0
push 0
mov byte [ebp - 0xc34], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xb74], eax
lea eax, [ebp - 0xb6c]
push eax
push 0x4252dc
push 1
push 0
push 0x4252ec
mov dword [ebp - 0xb6c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4063e5
mov ecx, dword [ebp - 0xb6c]
mov dword [ebp - 0x964], 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x34]
lea eax, [ebp - 0x964]
push eax
push ecx
mov ecx, esi
call dword [0x424300]
call esi
mov edi, eax
test edi, edi
js 0x4063cb
mov eax, dword [ebp - 0xc34]
mov ecx, 1
test dword [ebp - 0x964], 0x440
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0xc34], eax
mov eax, dword [ebp - 0xb6c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x424300]
call esi
test edi, edi
jns 0x4063ec
mov byte [ebp - 0xc34], 1
cmp dword [ebp - 0xb74], 0
jl 0x4063fb
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0xc34], 0
jne 0x40651e
push 0x8ca
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc2a], 0
jne 0x4083bf
mov eax, dword [ebp - 0x998]
cmp eax, 0x15
je 0x406482
cmp eax, 0x16
je 0x406482
mov edi, dword [ebp - 0xc40]
push edi
push 0x2711
call fcn.00403d90
push edi
push 0x277a
mov esi, eax
call fcn.00403d90
add esp, 0x10
push 0x409
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x4083bf
mov esi, dword [ebp - 0xc40]
push str.Avast_One
push esi
push 0x2774
call fcn.00403d90
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.00403d90
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.0041615a
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push 0x1f4
push eax
call fcn.0041615a
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 0x4083bf
movups xmm0, xmmword [ebp - 0xb9c]
lea eax, [ebp - 0xc00]
push eax
movups xmmword [ebp - 0xc00], xmm0
movups xmm0, xmmword [ebp - 0xb8c]
movups xmmword [ebp - 0xbf0], xmm0
movq xmm0, qword [ebp - 0xb7c]
movq qword [ebp - 0xbe0], xmm0
mov dword [ebp - 0xbdc], str.microstub_start
call fcn.00404830
lea eax, [ebp - 0xc00]
push eax
call fcn.00404890
mov eax, dword [ebp - 0xb70]
xorps xmm0, xmm0
mov esi, dword [ebp - 0xc44]
mov edi, dword [ebp - 0xc40]
mov dword [ebp - 0xbb8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbb4], eax
mov eax, dword [ebp - 0x998]
push str._ppi_icd
mov dword [ebp - 0xbb0], eax
lea eax, [ebp - 0x9a4]
push esi
push eax
mov word [ebp - 0xbac], di
movq qword [ebp - 0xba8], xmm0
mov dword [ebp - 0xba0], 0
call fcn.004035c0
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x406611
lea eax, [ebp - 0xbb8]
push eax
call fcn.00401ca0
mov esi, eax
add esp, 4
test esi, esi
je 0x40660b
push 0x4c7
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4083bf
mov esi, dword [ebp - 0xc44]
cmp byte [ebp - 0xc2a], 0
jne 0x40663b
push 0
push 0
lea eax, [ebp - 0xbb8]
push eax
push 0x401e60
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.004033b0
add esp, 4
test al, al
jne 0x406676
push 3
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4083bf
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.00404280
push str._cust_ini
lea eax, [ebp - 0xb00]
push esi
push eax
call fcn.004035c0
add esp, 0x10
cmp byte [ebp - 0xaf8], 0
je 0x406cc7
push dword [ebp - 0xafc]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xb00]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.00405460
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], 0xc
mov dword [ebp - 0xc3c], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406781
cmp word [ecx], 0x22
je 0x40673e
add ecx, 2
cmp ecx, edi
jne 0x406731
cmp ecx, edi
je 0x406781
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 0x406775
movzx edi, word [eax]
cmp edi, 0x22
je 0x406765
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x406757
mov esi, dword [ebp - 0x938]
jmp 0x40677b
mov esi, dword [ebp - 0xc3c]
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 0x4085fb
mov edi, dword [ebp - 0xb70]
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.004132e0
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 0x406c4f
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 0x406c4f
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 0x4245f4
push 0x424cd8
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xabc]
call fcn.00405460
push 0x3a
lea ecx, [ebp - 0xabc]
call fcn.00405780
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.00404c10
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 0x406916
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x960]
call fcn.00405460
mov esi, dword [ebp - 0x94c]
mov edx, dword [ebp - 0x950]
mov eax, 0xc
mov dword [ebp - 0xc30], eax
cmp esi, 8
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x960]
cmovae eax, dword [ebp - 0x960]
lea ecx, [ebp - 0xabc]
push edx
push eax
call fcn.004040f0
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0xc
call fcn.00402fa0
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 0x4245f4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0xb18]
call fcn.00405460
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 0x4245f4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406bd4
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x99c], 0
push eax
lea eax, [ebp - 0x9a4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x9a4], xmm0
call fcn.00409d20
add esp, 8
mov ecx, dword [ebp - 0x9a0]
mov eax, dword [ebp - 0x9a4]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 0xf
mov byte [ebp - 0x960], 0
call fcn.004052e0
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 - 0xa44]
add eax, edx
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x94c], 0x10
mov dword [ebp - 0xb74], eax
cmovae edi, dword [ebp - 0x960]
cmp dword [ebp - 0xa30], 8
mov eax, dword [ebp - 0xa34]
cmovae ecx, dword [ebp - 0xa44]
mov esi, dword [ebp - 0xb74]
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0xb70], eax
lea ecx, [ebp - 0x994]
lea eax, [ebp - 0xa44]
cmovae eax, dword [ebp - 0xa44]
mov dword [ebp - 0xc3c], eax
xor eax, eax
mov word [ebp - 0x994], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00405a50
push dword [ebp - 0xa2c]
lea ecx, [ebp - 0x994]
push esi
push edi
call fcn.004048f0
mov ecx, dword [ebp - 0xc3c]
lea eax, [ebp - 0xa44]
mov edx, dword [ebp - 0xb70]
push dword [ebp - 0x984]
sub edx, ecx
mov byte [ebp - 4], 0x10
sar edx, 1
cmp dword [ebp - 0xa30], 8
cmovae eax, dword [ebp - 0xa44]
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 - 0xa44]
call fcn.004058b0
mov edx, dword [ebp - 0x980]
mov byte [ebp - 4], 0xf
cmp edx, 8
jb 0x406b8b
mov ecx, dword [ebp - 0x994]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406b81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408600
push edx
push ecx
call fcn.00411a7f
add esp, 8
lea ecx, [ebp - 0x960]
call fcn.00404e10
mov ecx, dword [ebp - 0x9a4]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x406bd4
mov edx, dword [ebp - 0x99c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406bca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408605
push edx
push ecx
call fcn.00411a7f
add esp, 8
cmp dword [ebp - 0xaa8], 8
lea eax, [ebp - 0xabc]
cmovae eax, dword [ebp - 0xabc]
cmp dword [ebp - 0xb04], 8
mov dword [ebp - 0xbc8], eax
lea eax, [ebp - 0xb18]
cmovae eax, dword [ebp - 0xb18]
cmp dword [ebp - 0xa30], 8
mov dword [ebp - 0xbc0], eax
lea eax, [ebp - 0xa44]
cmovae eax, dword [ebp - 0xa44]
cmp dword [ebp - 0x934], 8
mov dword [ebp - 0xbbc], 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 - 0xbc4], 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 0x4245f4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406cb2
lea ecx, [ebp - 0x548]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c90
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xaa4]
call fcn.00405460
lea ecx, [ebp - 0x948]
mov byte [ebp - 4], 8
call fcn.00402fa0
mov esi, dword [ebp - 0xc44]
push str._smbupd
lea eax, [ebp - 0xa80]
push esi
push eax
call fcn.004035c0
add esp, 0xc
cmp byte [ebp - 0xa78], 0
je 0x407112
push dword [ebp - 0xa7c]
xor eax, eax
mov dword [ebp - 0x938], 0
push dword [ebp - 0xa80]
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x934], 7
mov word [ebp - 0x948], ax
call fcn.00405460
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], 0x11
mov dword [ebp - 0xc3c], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0x948]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x406dba
cmp word [ecx], 0x22
je 0x406d72
add ecx, 2
cmp ecx, edi
jne 0x406d65
cmp ecx, edi
je 0x406dba
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 0x406dae
nop dword [eax + eax]
movzx edi, word [eax]
cmp edi, 0x22
je 0x406d9e
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x406d90
mov esi, dword [ebp - 0x938]
jmp 0x406db4
mov esi, dword [ebp - 0xc3c]
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 0x40860a
mov edi, dword [ebp - 0xb70]
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.004132e0
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 0x407101
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 0x407101
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 0x4245f4
push str.urlpgm
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x9a0], 0
push eax
lea eax, [ebp - 0x3c0]
mov word [ebp - 0x9b0], cx
push eax
lea ecx, [ebp - 0x9b0]
mov dword [ebp - 0x99c], 7
call fcn.00405460
push 7
xor eax, eax
mov byte [ebp - 4], 0x12
push str.http:__
lea ecx, [ebp - 0x994]
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 7
mov word [ebp - 0x994], ax
call fcn.00405460
lea eax, [ebp - 0x994]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x9b0]
push eax
call fcn.00405580
add esp, 8
test al, al
jne 0x406f67
push 8
push str.https:__
lea ecx, [ebp - 0x994]
call fcn.00405460
lea eax, [ebp - 0x994]
push eax
lea eax, [ebp - 0x9b0]
push eax
call fcn.00405580
add esp, 8
test al, al
je 0x4070ab
mov edi, dword [ebp - 0x984]
test edi, edi
je 0x4070ab
cmp dword [ebp - 0x99c], 8
lea eax, [ebp - 0x9b0]
mov ecx, dword [ebp - 0x9a0]
cmovae eax, dword [ebp - 0x9b0]
cmp edi, ecx
jae 0x4070ab
lea edx, [eax + edi*2]
mov esi, 0
sub ecx, edi
je 0x406fc1
cmp word [edx], 0x2f
je 0x406fbf
nop dword [eax]
cmp ecx, 1
je 0x406fc1
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x406fb0
mov esi, edx
test esi, esi
je 0x4070ab
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x4070ab
lea eax, [ebp - 0xc29]
sub esi, edi
push eax
push esi
push edi
lea eax, [ebp - 0x9b0]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404d30
push 0
push 0x424bf4
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x14
call fcn.004056c0
mov esi, eax
cmp esi, 0xffffffff
je 0x407070
test esi, esi
je 0x407070
push esi
push 0
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0xaec]
call fcn.00405420
lea eax, [ebp - 0xc29]
push eax
push dword [ebp - 0x950]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x960]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404d30
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00415e2a
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc54], esi
call fcn.00402fa0
jmp 0x4070a0
cmp dword [ebp - 0x94c], 8
lea eax, [ebp - 0x960]
push dword [ebp - 0x950]
cmovae eax, dword [ebp - 0x960]
lea ecx, [ebp - 0xaec]
push eax
call fcn.00405460
mov dword [ebp - 0xc54], 0
lea ecx, [ebp - 0x960]
call fcn.00402fa0
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 - 0xc50]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xc50], ecx
lea ecx, [ebp - 0x994]
call fcn.00402fa0
lea ecx, [ebp - 0x9b0]
call fcn.00402fa0
lea ecx, [ebp - 0x948]
call fcn.00402fa0
mov esi, dword [ebp - 0xc44]
xor edi, edi
mov dword [ebp - 0x9cc], 7
xor eax, eax
mov dword [ebp - 0x9d0], edi
mov word [ebp - 0x9e0], ax
mov byte [ebp - 4], 0x15
call fcn.00408df0
cmp eax, 0x6010100
jb 0x40749a
call fcn.00408f40
test al, al
je 0x40749a
push str._geo
lea eax, [ebp - 0x9a4]
push esi
push eax
call fcn.004035c0
add esp, 0xc
cmp byte [ebp - 0x99c], 0
je 0x407185
lea eax, [ebp - 0x9e0]
push eax
lea ecx, [ebp - 0xc29]
call fcn.00404ef0
mov edi, eax
jmp 0x40749a
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 - 0xc48], esi
call fcn.00412d60
lea eax, [ebp - 0xbc8]
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.00402560
add esp, 0x38
test al, al
je 0x407486
mov eax, dword [ebp - 0xb70]
test eax, eax
je 0x407486
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.004052e0
push 0xb
push str._country_:_
lea ecx, [ebp - 0x994]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x984], 0
mov dword [ebp - 0x980], 0xf
mov byte [ebp - 0x994], 0
call fcn.004052e0
cmp dword [ebp - 0x980], 0x10
lea edx, [ebp - 0x994]
lea edi, [ebp - 0x994]
mov byte [ebp - 4], 0x17
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 - 0x964], edx
cmovae edi, dword [ebp - 0x994]
cmp dword [ebp - 0x934], 0x10
mov dword [ebp - 0xc3c], edi
cmovae eax, dword [ebp - 0x948]
add eax, dword [ebp - 0x938]
cmp dword [ebp - 0x934], 0x10
mov dword [ebp - 0xb74], eax
cmovae esi, dword [ebp - 0x948]
sub ecx, edi
sub eax, esi
mov dword [ebp - 0xc34], esi
cmp eax, ecx
jl 0x407371
mov eax, dword [ebp - 0xb74]
sub eax, ecx
mov ecx, esi
mov dword [ebp - 0xc4c], eax
sub ecx, edi
mov dword [ebp - 0xb6c], ecx
cmp dword [ebp - 0xc3c], edx
je 0x407377
mov al, byte [edi]
mov byte [ebp - 0xc29], al
mov al, byte [edi + ecx]
movzx eax, al
push eax
call fcn.00415f79
mov si, ax
mov al, byte [ebp - 0xc29]
movzx ecx, al
push ecx
call fcn.00415f79
add esp, 8
cmp si, ax
jne 0x40733f
inc edi
cmp edi, dword [ebp - 0x964]
je 0x407369
mov ecx, dword [ebp - 0xb6c]
jmp 0x407300
mov esi, dword [ebp - 0xc34]
cmp esi, dword [ebp - 0xc4c]
je 0x407371
mov ecx, dword [ebp - 0xb6c]
inc esi
mov edx, dword [ebp - 0x964]
inc ecx
mov edi, dword [ebp - 0xc3c]
mov dword [ebp - 0xc34], esi
jmp 0x4072f2
mov esi, dword [ebp - 0xc34]
jmp 0x407377
mov esi, dword [ebp - 0xb74]
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 0x407464
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.00413980
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 0x407464
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 0xf
mov byte [ebp - 0x960], 0
cmp esi, edi
je 0x407414
sub edi, esi
lea ecx, [ebp - 0x960]
push edi
push esi
call fcn.004052e0
lea eax, [ebp - 0x960]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004042c0
add esp, 8
lea ecx, [ebp - 0x9e0]
push eax
call fcn.00404eb0
lea ecx, [ebp - 0x30]
call fcn.00402fa0
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x17
call fcn.00404e10
lea eax, [ebp - 0x9e0]
push eax
lea ecx, [ebp - 0xc29]
call fcn.00404ef0
mov edi, eax
jmp 0x407466
xor edi, edi
lea ecx, [ebp - 0x994]
call fcn.00404e10
lea ecx, [ebp - 0x948]
mov byte [ebp - 4], 0x15
call fcn.00404e10
mov esi, dword [ebp - 0xc48]
test esi, esi
je 0x40749a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.00408df0
cmp eax, 0x6010100
jb 0x4074e3
call fcn.00408f40
test al, al
je 0x4074e3
test edi, edi
je 0x4074e3
push edi
call fcn.00403d50
mov edx, eax
add esp, 4
test edx, edx
je 0x4074e3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4074c7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x97c]
call fcn.00405460
cmp dword [ebp - 0x96c], 0
jne 0x40759c
call fcn.00408df0
cmp eax, 0x6010100
jb 0x407532
call fcn.00408f40
test al, al
je 0x407532
call fcn.00408f80
xor ecx, ecx
test al, al
setne cl
add ecx, 0x837
push ecx
call fcn.00403d50
mov edx, eax
add esp, 4
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x407525
jmp 0x40758b
call fcn.00408df0
cmp eax, 0x6010000
jb 0x40756d
call fcn.00408f80
xor ecx, ecx
test al, al
setne cl
add ecx, 0x835
push ecx
call fcn.00403d50
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x407560
jmp 0x40758b
push 0x834
call fcn.00403d50
mov edx, eax
add esp, 4
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x407580
sub edx, esi
lea ecx, [ebp - 0x97c]
sar edx, 1
push edx
push eax
call fcn.00405460
xor eax, eax
mov dword [ebp - 0x9b8], 0
push eax
push 0x4245f4
lea ecx, [ebp - 0x9c8]
mov dword [ebp - 0x9b4], 7
mov word [ebp - 0x9c8], ax
call fcn.00405460
cmp dword [ebp - 0x968], 8
lea ecx, [ebp - 0x97c]
mov eax, dword [ebp - 0x96c]
cmovae ecx, dword [ebp - 0x97c]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0xc4c], ecx
cmp eax, 1
jb 0x408387
lea eax, [ecx + eax*2]
mov esi, ecx
mov dword [ebp - 0xc48], eax
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x407626
cmp word [esi], 0x2f
je 0x407624
cmp ecx, 1
je 0x407626
add esi, 2
dec ecx
cmp word [esi], 0x2f
jne 0x407615
mov edx, esi
mov esi, edx
test esi, esi
je 0x408387
movzx ecx, word [esi]
mov edx, 0x2f
mov edi, 1
mov eax, 0x424e9c
cmp ecx, edx
jb 0x407672
mov dword [ebp - 0xb6c], esi
sub dword [ebp - 0xb6c], eax
cmp cx, dx
ja 0x407672
cmp edi, 1
je 0x40767d
mov ecx, dword [ebp - 0xb6c]
add eax, 2
dec edi
movzx ecx, word [ecx + eax]
movzx edx, word [eax]
cmp cx, dx
jae 0x407655
mov eax, dword [ebp - 0xc48]
add esi, 2
jmp 0x407602
sub esi, dword [ebp - 0xc4c]
sar esi, 1
cmp esi, 0xffffffff
je 0x408387
lea eax, [ebp - 0xc29]
push eax
push esi
push 0
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404d30
or dword [ebp - 0xc30], 0x10
lea ecx, [ebp - 0x9c8]
call fcn.00402fa0
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0x9c8], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0x9b8], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402fa0
lea eax, [ebp - 0xc29]
push eax
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404d30
mov esi, dword [ebp - 0xc30]
lea ecx, [ebp - 0x97c]
or esi, 0x20
mov dword [ebp - 0xc30], esi
mov dword [ebp - 0xc34], esi
call fcn.00402fa0
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.00402fa0
push 0xd
xor eax, eax
mov dword [ebp - 0xa18], 0
push 0x424ea0
lea ecx, [ebp - 0xa28]
mov dword [ebp - 0xa14], 7
mov word [ebp - 0xa28], ax
call fcn.00405460
cmp dword [ebp - 0x968], 8
lea edi, [ebp - 0x97c]
mov eax, dword [ebp - 0x96c]
cmovae edi, dword [ebp - 0x97c]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0xb6c], edi
cmp eax, 1
jb 0x407901
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0xb6c]
mov edi, eax
sub edi, 0x424e9c
cmp word [eax], 0x2f
mov dword [ebp - 0xc38], eax
jne 0x407841
mov ecx, 0x2f
mov esi, 1
mov edx, ecx
mov eax, 0x424e9c
cmp cx, dx
ja 0x407835
cmp esi, 1
je 0x407851
movzx ecx, word [eax + edi + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x40781d
mov ecx, dword [ebp - 0xb6c]
mov eax, dword [ebp - 0xc38]
cmp eax, ecx
je 0x4078fb
sub eax, 2
sub edi, 2
jmp 0x4077fd
mov eax, dword [ebp - 0xc38]
sub eax, dword [ebp - 0xb6c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4078fb
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x96c]
cmp ecx, eax
jae 0x407901
lea eax, [ebp - 0xc29]
push eax
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x960]
call fcn.00404d30
mov eax, dword [ebp - 0xc30]
lea ecx, [ebp - 0xa28]
or eax, 0x40
mov dword [ebp - 0xc30], eax
mov dword [ebp - 0xc34], eax
call fcn.00402fa0
movups xmm0, xmmword [ebp - 0x960]
xor eax, eax
lea ecx, [ebp - 0x960]
mov word [ebp - 0x960], ax
movups xmmword [ebp - 0xa28], xmm0
movq xmm0, qword [ebp - 0x950]
movq qword [ebp - 0xa18], xmm0
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x94c], 7
call fcn.00402fa0
mov eax, dword [ebp - 0x96c]
cmp dword [ebp - 0x968], 8
lea ecx, [ebp - 0x97c]
cmovae ecx, dword [ebp - 0x97c]
mov dword [ebp - 0xc4c], ecx
cmp eax, 0xf
jb 0x407b1c
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc48], eax
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x407956
cmp word [edi], 0x7b
je 0x407954
cmp ecx, 1
je 0x407956
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x407945
mov edx, edi
mov edi, edx
test edi, edi
je 0x407b1c
movzx ecx, word [edi]
mov esi, 0x7b
mov edx, 0xf
mov eax, str.versionSwitch
cmp ecx, esi
jb 0x4079a2
mov dword [ebp - 0xb6c], edi
sub dword [ebp - 0xb6c], eax
cmp cx, si
ja 0x4079a2
cmp edx, 1
je 0x4079ad
mov ecx, dword [ebp - 0xb6c]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx esi, word [eax]
cmp cx, si
jae 0x407985
mov eax, dword [ebp - 0xc48]
add edi, 2
jmp 0x407932
sub edi, dword [ebp - 0xc4c]
sar edi, 1
cmp edi, 0xffffffff
je 0x407b1c
mov ecx, dword [ebp - 0xa94]
test ecx, ecx
jne 0x407a17
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.00405460
mov edx, dword [ebp - 0xc30]
lea eax, [ebp - 0x994]
or edx, 1
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0xc30], edx
mov dword [ebp - 0xc34], edx
jmp 0x407ac7
cmp dword [ebp - 0xa90], 8
lea eax, [ebp - 0xaa4]
cmovae eax, dword [ebp - 0xaa4]
mov dword [ebp - 0xc48], eax
cmp ecx, 8
jae 0x407a52
movups xmm0, xmmword [eax]
mov dword [ebp - 0x950], ecx
mov dword [ebp - 0x94c], 7
movups xmmword [ebp - 0x960], xmm0
jmp 0x407aa5
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.00403ec0
mov ecx, dword [ebp - 0xa94]
mov dword [ebp - 0x960], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xc48]
push eax
call fcn.00412640
mov eax, dword [ebp - 0xa94]
add esp, 0xc
mov dword [ebp - 0x950], eax
mov dword [ebp - 0x94c], esi
mov ecx, dword [ebp - 0xc30]
lea eax, [ebp - 0x960]
or ecx, 2
mov dword [ebp - 4], 0x1c
mov dword [ebp - 0xc30], ecx
mov dword [ebp - 0xc34], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x407ad2
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x97c]
call fcn.004058b0
mov eax, dword [ebp - 0xc30]
test al, 2
je 0x407b06
and eax, 0xfffffffd
lea ecx, [ebp - 0x960]
mov dword [ebp - 0xc30], eax
call fcn.00402fa0
mov eax, dword [ebp - 0xc30]
mov dword [ebp - 4], 0x1a
test al, 1
je 0x407b1c
lea ecx, [ebp - 0x994]
call fcn.00402fa0
cmp dword [ebp - 0xa14], 8
lea eax, [ebp - 0xa28]
cmovae eax, dword [ebp - 0xa28]
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 0x407ba9
push 2
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa28]
call fcn.00402fa0
jmp 0x4083a5
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 - 0xaf4]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x407c6f
cmp dword [ebp - 0xaf0], 0
ja 0x407c6f
jb 0x407c02
cmp dword [ebp - 0xaf4], 0x6400000
jae 0x407c6f
push 0x70
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc2a], 0
jne 0x407c5f
mov edi, dword [ebp - 0xc40]
push edi
push 0x2711
call fcn.00403d90
push edi
push 0x2779
mov esi, eax
call fcn.00403d90
add esp, 0x10
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0xba8]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0xa28]
call fcn.00402fa0
jmp 0x4083a5
push 0x27
xor eax, eax
mov dword [ebp - 0x9e8], 0
push str.User_Agent:_avast__Antivirus__instup__r_n
lea ecx, [ebp - 0x9f8]
mov dword [ebp - 0x9e4], 7
mov word [ebp - 0x9f8], ax
call fcn.00405460
cmp dword [ebp - 0xadc], 0
lea edi, [ebp - 0xbc8]
push edi
lea edi, [ebp - 0xba0]
mov byte [ebp - 4], 0x1d
push edi
lea edi, [ebp - 0xba4]
push edi
lea edx, [ebp - 0x9f8]
lea ecx, [ebp - 0x97c]
push esi
je 0x407d40
cmp dword [ebp - 0x9e4], 8
lea eax, [ebp - 0xaec]
cmovae edx, dword [ebp - 0x9f8]
cmp dword [ebp - 0x968], 8
push edx
cmovae ecx, dword [ebp - 0x97c]
cmp dword [ebp - 0xad8], 8
push ecx
cmovae eax, dword [ebp - 0xaec]
push dword [ebp - 0xc54]
push eax
call fcn.00402930
add esp, 0x20
test al, al
jne 0x407ea0
cmp byte [ebp - 0xc50], al
je 0x407d83
lea edi, [ebp - 0xbc8]
push edi
lea edi, [ebp - 0xba0]
push edi
lea edi, [ebp - 0xba4]
push edi
lea edx, [ebp - 0x9f8]
lea ecx, [ebp - 0x97c]
push esi
cmp dword [ebp - 0x9e4], 8
lea eax, [ebp - 0x9c8]
cmovae edx, dword [ebp - 0x9f8]
cmp dword [ebp - 0x968], 8
push edx
cmovae ecx, dword [ebp - 0x97c]
cmp dword [ebp - 0x9b4], 8
push ecx
cmovae eax, dword [ebp - 0x9c8]
push eax
call fcn.004027b0
add esp, 0x1c
test al, al
jne 0x407ea0
push 0x8ca
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0xc2a], 0
jne 0x407e85
mov eax, dword [ebp - 0x998]
cmp eax, 0x15
je 0x407df4
cmp eax, 0x16
je 0x407df4
mov edi, dword [ebp - 0xc40]
push edi
push 0x2711
call fcn.00403d90
push edi
push 0x277a
mov esi, eax
call fcn.00403d90
add esp, 0x10
push 0x409
push 0x10
push esi
jmp 0x407e78
mov esi, dword [ebp - 0xc40]
push str.Avast_One
push esi
push 0x2774
call fcn.00403d90
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.00403d90
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.00404cd0
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.00404cd0
add esp, 0x1c
lea eax, [ebp - 0x930]
push 0x409
push 0x10
push str.Avast_One
push eax
push dword [ebp - 0xba8]
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 0x9f8]
call fcn.00402fa0
lea ecx, [ebp - 0xa28]
call fcn.00402fa0
jmp 0x4083a5
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 0x407ef0
push 0x6e
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407e85
push 0
push eax
call fcn.00409220
mov esi, dword [ebp - 0xc38]
add esp, 8
test al, al
jne 0x407f4e
push 1
push esi
call fcn.00409220
add esp, 8
test al, al
jne 0x407f4e
push 2
push esi
call fcn.00409220
add esp, 8
test al, al
jne 0x407f4e
push 0x6fe
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407e85
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.00403ae0
add esp, 8
test al, al
je 0x407f76
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xb90]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0xb9c]
lea eax, [ebp - 0xc28]
push eax
movups xmmword [ebp - 0xc28], xmm0
movups xmm0, xmmword [ebp - 0xb8c]
movups xmmword [ebp - 0xc18], xmm0
movq xmm0, qword [ebp - 0xb7c]
movq qword [ebp - 0xc08], xmm0
mov dword [ebp - 0xc04], str.microstub_download
call fcn.00404830
lea eax, [ebp - 0xc28]
push eax
call fcn.00404890
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 0x424f5c
call fcn.00405460
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x1e
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408003
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x960]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x30]
call fcn.00404cf0
push 0x22
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1f
call fcn.00405780
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa10]
call fcn.00404cf0
lea ecx, [ebp - 0x30]
call fcn.00402fa0
lea ecx, [ebp - 0x960]
mov byte [ebp - 4], 0x22
call fcn.00402fa0
mov edi, dword [ebp - 0xc44]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408070
sub ecx, edx
sar ecx, 1
je 0x4080af
push 0x20
lea ecx, [ebp - 0xa10]
call fcn.00405780
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408093
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xa10]
call fcn.004040f0
cmp dword [ebp - 0xb84], 0
je 0x4080f1
push 9
push 0x424f60
lea ecx, [ebp - 0xa10]
call fcn.004040f0
mov edx, dword [ebp - 0xb84]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4080d5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa10]
call fcn.004040f0
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0xa10]
call fcn.004040f0
mov edx, dword [ebp - 0xb8c]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408110
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa10]
call fcn.004040f0
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0xa10]
call fcn.004040f0
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408147
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa10]
call fcn.004040f0
cmp word [ebp - 0x1c0], 0
je 0x4081b2
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0xa10]
call fcn.004040f0
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408190
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa10]
call fcn.004040f0
push str._geo
lea eax, [ebp - 0x9a4]
push edi
push eax
call fcn.004035c0
add esp, 0xc
mov al, byte [eax + 8]
test al, al
jne 0x40820f
cmp dword [ebp - 0x9d0], 0
je 0x40820f
push 6
push str.__geo:
lea ecx, [ebp - 0xa10]
call fcn.004040f0
cmp dword [ebp - 0x9cc], 8
lea eax, [ebp - 0x9e0]
push dword [ebp - 0x9d0]
cmovae eax, dword [ebp - 0x9e0]
lea ecx, [ebp - 0xa10]
push eax
call fcn.004040f0
push 0x40
lea eax, [ebp - 0xb64]
mov dword [ebp - 0xb68], 0x44
push 0
push eax
call fcn.00412d60
add esp, 0xc
lea ecx, [ebp - 0xbd8]
cmp dword [ebp - 0x9fc], 8
lea eax, [ebp - 0xa10]
cmovae eax, dword [ebp - 0xa10]
push ecx
lea ecx, [ebp - 0xb68]
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 0x4082a5
push 0x23f
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa10]
call fcn.00402fa0
jmp 0x407e85
push dword [ebp - 0xbd0]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0xbd4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4082f8
push 0x236
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa10]
call fcn.00402fa0
jmp 0x407e85
mov eax, dword [ebp - 0xba8]
test eax, eax
je 0x408312
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0xbd8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xbd8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40834a
push dword [ebp - 0xa2c]
lea eax, [ebp - 0xb7c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0xa10]
call fcn.00402fa0
lea ecx, [ebp - 0x9f8]
call fcn.00402fa0
lea ecx, [ebp - 0xa28]
call fcn.00402fa0
lea ecx, [ebp - 0x9c8]
call fcn.00402fa0
lea ecx, [ebp - 0x9e0]
mov byte [ebp - 4], 8
call fcn.00402fa0
jmp 0x4083bf
push 0x57
lea eax, [ebp - 0xb9c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x9c8]
call fcn.00402fa0
lea ecx, [ebp - 0x9e0]
mov byte [ebp - 4], 8
call fcn.00402fa0
lea eax, [ebp - 0xb9c]
push eax
call fcn.00404830
lea eax, [ebp - 0xb9c]
push eax
call fcn.00404890
mov eax, dword [ebp - 0xc38]
add esp, 8
cmp eax, 0xffffffff
je 0x4083ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbd4]
test eax, eax
je 0x4083fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbd8]
test eax, eax
je 0x40840e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00408df0
cmp eax, 0x6010000
jb 0x408514
push dword [ebp - 0xb80]
call fcn.00403d00
add esp, 4
test al, al
je 0x408514
mov eax, dword [ebp - 0xb9c]
cmp eax, 0x4c7
je 0x408514
test eax, eax
jne 0x40846d
mov eax, dword [ebp - 0xb7c]
test eax, eax
je 0x408514
cmp eax, 0xa003
je 0x408514
cmp eax, 0xa104
je 0x408514
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.00412d60
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 0x408514
push 0x2f
call fcn.004042a0
push eax
call fcn.00413854
add esp, 8
mov esi, eax
push 0x5c
call fcn.004042a0
push eax
call fcn.00413854
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x424840
push eax
cmovb edi, esi
call fcn.00404cb0
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.00404cb0
add esp, 0x18
push 0
call fcn.004042a0
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x408514
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.004042a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0xc58]
test esi, esi
je 0x40852c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.004045a0
mov esi, dword [ebp - 0xb9c]
lea ecx, [ebp - 0xaec]
add esp, 4
cmp dword [ebp - 0xb7c], 0x103
cmovne esi, dword [ebp - 0xb7c]
call fcn.00402fa0
lea ecx, [ebp - 0xa44]
call fcn.00402fa0
lea ecx, [ebp - 0xb18]
call fcn.00402fa0
lea ecx, [ebp - 0xabc]
call fcn.00402fa0
lea ecx, [ebp - 0xaa4]
call fcn.00402fa0
lea ecx, [ebp - 0x97c]
call fcn.00402fa0
lea ecx, [ebp - 0xa74]
call fcn.00402fa0
lea ecx, [ebp - 0xa5c]
call fcn.00402fa0
lea ecx, [ebp - 0xad4]
call fcn.00402fa0
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.00411a3e
mov esp, ebp
pop ebp
ret 0x10
push str.stoi_argument_out_of_range
call fcn.0041143d
push str.invalid_stoi_argument
call fcn.004113fd
call fcn.00415580
call fcn.00415580
call fcn.00415580
call fcn.00415580
call fcn.004052d0
call fcn.00415580
call fcn.00415580
call fcn.004052d0
int3