Function at 0x404a00
Capabilities:
Check mutex on windows
Copy file
Delete file
Get common file path
Get disk size
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x794
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x780], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x794], esi
mov dword [ebp - 0x790], eax
xor eax, eax
mov dword [ebp - 0x784], esi
mov dword [ebp - 0x79c], esi
mov dword [ebp - 0x788], esi
mov dword [ebp - 0x78c], edi
movups xmmword [ebp - 0x704], xmm0
mov dword [ebp - 0x624], esi
mov dword [ebp - 0x620], 7
mov word [ebp - 0x634], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c4], eax
mov dword [ebp - 0x5c0], 7
mov word [ebp - 0x5d4], ax
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5d8], 7
mov word [ebp - 0x5ec], ax
mov dword [ebp - 0x5f4], eax
mov dword [ebp - 0x5f0], 7
mov word [ebp - 0x604], ax
mov dword [ebp - 0x60c], eax
mov dword [ebp - 0x608], 7
mov word [ebp - 0x61c], ax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x664], 7
mov word [ebp - 0x678], ax
mov dword [ebp - 0x59c], eax
mov dword [ebp - 0x598], 7
mov word [ebp - 0x5ac], ax
mov word [ebp - 0x140], ax
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
lea eax, [ebp - 0x6d4]
push 0x103
push eax
mov byte [ebp - 4], 7
movups xmmword [ebp - 0x6f4], xmm0
movups xmmword [ebp - 0x6e4], xmm0
movq qword [ebp - 0x6d4], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x780]
xorps xmm0, xmm0
mov dword [ebp - 0x718], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x714], eax
mov eax, dword [ebp - 0x790]
push str._silent
push eax
lea eax, [ebp - 0x658]
movq qword [ebp - 0x710], xmm0
push eax
mov dword [ebp - 0x708], esi
movups xmmword [ebp - 0x728], xmm0
call fcn.00402dc0
add esp, 0xc
mov byte [ebp - 4], 8
mov al, byte [eax + 8]
mov byte [ebp - 0x779], al
call fcn.00406ae0
cmp eax, 0x6000000
jb 0x404c48
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00406970
add esp, 4
cmp eax, 0x3000
jae 0x404c48
push 0x52f
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x779], 0
jne 0x404c1b
push 0x3ef
call fcn.00403590
add esp, 4
mov byte [ebp - 4], 7
jmp 0x4060f1
mov dword [ebp - 4], 7
call fcn.00406b80
test al, al
je 0x404c98
push 0xc1
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x779], 0
jne 0x4060f1
push 0x3f0
call fcn.00403590
add esp, 4
jmp 0x4060f1
push 0x44c
call fcn.00403550
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x79c], eax
test eax, eax
je 0x404d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404d0c
push 0x420
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x44d
call fcn.00403550
push eax
call fcn.004011b0
add esp, 8
test al, al
jne 0x4060f1
push 0x44e
call fcn.00403550
push eax
call fcn.004011b0
add esp, 8
jmp 0x4060f1
lea eax, [ebp - 0x578]
push eax
call fcn.0040ba10
mov esi, eax
add esp, 4
lea eax, [ebp - 0x5d4]
cmp eax, esi
je 0x404dac
mov edx, dword [ebp - 0x5c0]
cmp edx, 8
jb 0x404d6b
mov ecx, dword [ebp - 0x5d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404d61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062f0
push edx
push ecx
call fcn.0040f69f
add esp, 8
mov dword [ebp - 0x5c4], 0
xor eax, eax
mov dword [ebp - 0x5c0], 7
mov word [ebp - 0x5d4], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x5d4], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x5c4], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x564]
cmp edx, 8
jb 0x404dec
mov ecx, dword [ebp - 0x578]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404de2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062f5
push edx
push ecx
call fcn.0040f69f
add esp, 8
cmp dword [ebp - 0x5c0], 8
lea eax, [ebp - 0x5d4]
cmovae eax, dword [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x6e0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x558]
push eax
call fcn.00407cc0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x5bc]
push eax
lea eax, [ebp - 0x578]
push eax
movups xmmword [ebp - 0x5bc], xmm0
call fcn.0040c110
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x5ec]
cmp eax, esi
je 0x404ecb
mov edx, dword [ebp - 0x5d8]
cmp edx, 8
jb 0x404e8a
mov ecx, dword [ebp - 0x5ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404e80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062fa
push edx
push ecx
call fcn.0040f69f
add esp, 8
mov dword [ebp - 0x5dc], 0
xor eax, eax
mov dword [ebp - 0x5d8], 7
mov word [ebp - 0x5ec], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x5ec], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x5dc], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x564]
cmp edx, 8
jb 0x404f0b
mov ecx, dword [ebp - 0x578]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404f01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062ff
push edx
push ecx
call fcn.0040f69f
add esp, 8
cmp dword [ebp - 0x5d8], 8
lea eax, [ebp - 0x5ec]
cmovae eax, dword [ebp - 0x5ec]
push eax
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0x790]
lea eax, [ebp - 0x684]
push str._cookie
push esi
push eax
call fcn.00402dc0
add esp, 0xc
cmp byte [ebp - 0x67c], 0
je 0x404f70
mov eax, dword [ebp - 0x680]
cmp eax, 0x40
jae 0x404f70
push eax
push dword [ebp - 0x684]
lea ecx, [ebp - 0x634]
call fcn.00404480
jmp 0x404f7f
lea eax, [ebp - 0x634]
push eax
call fcn.00402ca0
add esp, 4
cmp dword [ebp - 0x624], 0
je 0x404faa
cmp dword [ebp - 0x620], 8
lea eax, [ebp - 0x634]
cmovae eax, dword [ebp - 0x634]
push eax
lea eax, [ebp - 0x6dc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x6cc], 0
push eax
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.004033e0
add esp, 0x10
cmp word [ebp - 0x100], 0
je 0x404ff1
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x6cc]
lea eax, [ebp - 0x6d8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0x6f4]
lea eax, [ebp - 0x750]
push eax
movups xmmword [ebp - 0x750], xmm0
movups xmm0, xmmword [ebp - 0x6e4]
movups xmmword [ebp - 0x740], xmm0
movq xmm0, qword [ebp - 0x6d4]
movq qword [ebp - 0x730], xmm0
mov dword [ebp - 0x72c], str.microstub_start
call fcn.00403df0
lea eax, [ebp - 0x750]
push eax
call fcn.00403e50
push str._ppi_icd
lea eax, [ebp - 0x5b8]
push esi
push eax
call fcn.00402dc0
add esp, 0x14
mov al, byte [eax + 8]
test al, al
je 0x4050ad
push dword [ebp - 0x780]
call fcn.00401910
mov esi, eax
add esp, 4
test esi, esi
je 0x4050a7
push 0x4c7
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060f1
mov esi, dword [ebp - 0x790]
cmp byte [ebp - 0x779], 0
jne 0x4050d7
push 0
push 0
lea eax, [ebp - 0x718]
push eax
push 0x401ab0
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.00402bb0
add esp, 4
test al, al
jne 0x405112
push 3
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060f1
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.00403a00
push str._cust_ini
lea eax, [ebp - 0x658]
push esi
push eax
call fcn.00402dc0
add esp, 0x10
cmp byte [ebp - 0x650], 0
je 0x4057b8
push dword [ebp - 0x654]
xor eax, eax
mov dword [ebp - 0x550], 0
push dword [ebp - 0x658]
lea ecx, [ebp - 0x560]
mov dword [ebp - 0x54c], 7
mov word [ebp - 0x560], ax
call fcn.00404480
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
mov edx, dword [ebp - 0x560]
lea ecx, [ebp - 0x560]
mov esi, dword [ebp - 0x550]
cmovae eax, edx
cmovae ecx, edx
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x78c], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x780], eax
lea eax, [ebp - 0x560]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x405220
nop dword [eax]
cmp word [ecx], 0x22
je 0x4051dd
add ecx, 2
cmp ecx, edi
jne 0x4051d0
cmp ecx, edi
je 0x405220
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 0x405214
movzx edi, word [eax]
cmp edi, 0x22
je 0x405204
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x4051f6
mov esi, dword [ebp - 0x550]
jmp 0x40521a
mov esi, dword [ebp - 0x78c]
mov edx, dword [ebp - 0x560]
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x406304
mov edi, dword [ebp - 0x780]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
sub esi, edi
mov dword [ebp - 0x550], esi
sub esi, edx
lea ecx, [eax + edx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edi*2]
push eax
push ecx
call fcn.00410f00
add esp, 0xc
lea eax, [ebp - 0x560]
cmp dword [ebp - 0x54c], 8
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.Enabled
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x405712
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.ProxyType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x405712
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225b4
push 0x422bc8
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x64c]
call fcn.00404480
push 0x3a
lea ecx, [ebp - 0x64c]
call fcn.004045a0
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.Port
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx eax, ax
push eax
lea eax, [ebp - 0x16]
push eax
call fcn.004041d0
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x568], edx
mov word [ebp - 0x578], ax
add esp, 8
lea eax, [ebp - 0x16]
mov esi, 7
mov dword [ebp - 0x564], esi
cmp ecx, eax
je 0x4053b5
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x578]
call fcn.00404480
mov esi, dword [ebp - 0x564]
mov edx, dword [ebp - 0x568]
mov eax, 0xc
mov dword [ebp - 0x784], eax
mov dword [ebp - 0x794], eax
cmp esi, 8
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x578]
cmovae eax, dword [ebp - 0x578]
lea ecx, [ebp - 0x64c]
push edx
push eax
call fcn.00403870
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0xa
call fcn.00402770
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225b4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x678]
call fcn.00404480
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x100
lea eax, [ebp - 0x3c0]
push eax
push 0x4225b4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405697
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x5b0], 0
push eax
lea eax, [ebp - 0x5b8]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x5b8], xmm0
call fcn.004079d0
add esp, 8
mov ecx, dword [ebp - 0x5b4]
mov eax, dword [ebp - 0x5b8]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00404340
cmp dword [ebp - 0x1c], 0x10
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x5ac]
add eax, edx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x788], eax
cmovae edi, dword [ebp - 0x30]
cmp dword [ebp - 0x598], 8
mov eax, dword [ebp - 0x59c]
cmovae ecx, dword [ebp - 0x5ac]
mov esi, dword [ebp - 0x788]
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 7
lea eax, [ecx + eax*2]
mov dword [ebp - 0x780], eax
lea ecx, [ebp - 0x578]
lea eax, [ebp - 0x5ac]
cmovae eax, dword [ebp - 0x5ac]
mov dword [ebp - 0x78c], eax
xor eax, eax
mov word [ebp - 0x578], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00404870
push dword [ebp - 0x57c]
lea ecx, [ebp - 0x578]
push esi
push edi
call fcn.00403eb0
mov ecx, dword [ebp - 0x78c]
lea eax, [ebp - 0x5ac]
mov edx, dword [ebp - 0x780]
push dword [ebp - 0x568]
sub edx, ecx
mov byte [ebp - 4], 0xe
sar edx, 1
cmp dword [ebp - 0x598], 8
cmovae eax, dword [ebp - 0x5ac]
sub ecx, eax
lea eax, [ebp - 0x578]
sar ecx, 1
cmp dword [ebp - 0x564], 8
cmovae eax, dword [ebp - 0x578]
push eax
push edx
push ecx
lea ecx, [ebp - 0x5ac]
call fcn.004046d0
mov edx, dword [ebp - 0x564]
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x40560f
mov ecx, dword [ebp - 0x578]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406309
push edx
push ecx
call fcn.0040f69f
add esp, 8
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x405647
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40563d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40630e
push edx
push ecx
call fcn.0040f69f
add esp, 8
mov ecx, dword [ebp - 0x5b8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x405697
mov edx, dword [ebp - 0x5b0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40568d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406313
push edx
push ecx
call fcn.0040f69f
add esp, 8
cmp dword [ebp - 0x638], 8
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
cmp dword [ebp - 0x664], 8
mov dword [ebp - 0x728], eax
lea eax, [ebp - 0x678]
cmovae eax, dword [ebp - 0x678]
cmp dword [ebp - 0x598], 8
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x5ac]
cmovae eax, dword [ebp - 0x5ac]
cmp dword [ebp - 0x54c], 8
mov dword [ebp - 0x71c], eax
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0
push str.AuthorizationType
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x724], eax
cmp dword [ebp - 0x54c], 8
lea eax, [ebp - 0x560]
cmovae eax, dword [ebp - 0x560]
push eax
push 0x40
lea eax, [ebp - 0x448]
push eax
push 0x4225b4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405774
lea ecx, [ebp - 0x448]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405752
sub ecx, edx
lea eax, [ebp - 0x448]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x61c]
call fcn.00404480
mov edx, dword [ebp - 0x54c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4057b8
mov ecx, dword [ebp - 0x560]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406318
push edx
push ecx
call fcn.0040f69f
add esp, 8
call fcn.00406ae0
cmp eax, 0x6010000
jb 0x405839
push 0x7d1
call fcn.00403550
mov dword [ebp - 0x788], eax
call fcn.00406c30
test al, al
mov edx, 0x8fc
mov ecx, 0x898
cmovne ecx, edx
add ecx, dword [ebp - 0x6cc]
push ecx
call fcn.00403550
mov edx, eax
add esp, 8
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x405800
sub edx, esi
lea ecx, [ebp - 0x604]
sar edx, 1
push edx
push eax
call fcn.00404480
call fcn.00406c30
test al, al
mov ecx, 0xc80
mov edx, 0xce4
cmovne ecx, edx
add ecx, dword [ebp - 0x6cc]
push ecx
jmp 0x40588a
push 0x7d2
call fcn.00403550
mov dword [ebp - 0x788], eax
mov eax, dword [ebp - 0x6cc]
add eax, 0x834
push eax
call fcn.00403550
mov edx, eax
add esp, 8
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x405862
sub edx, esi
lea ecx, [ebp - 0x604]
sar edx, 1
push edx
push eax
call fcn.00404480
mov eax, dword [ebp - 0x6cc]
add eax, 0xc80
push eax
call fcn.00403550
add esp, 4
mov dword [ebp - 0x78c], eax
cmp dword [ebp - 0x5f0], 8
lea ecx, [ebp - 0x604]
mov eax, dword [ebp - 0x5f4]
cmovae ecx, dword [ebp - 0x604]
mov dword [ebp - 0x798], ecx
cmp eax, 0xf
jb 0x405a9c
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x7a0], eax
nop
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x4058f4
cmp word [edi], 0x7b
je 0x4058f2
cmp ecx, 1
je 0x4058f4
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x4058e3
mov edx, edi
mov edi, edx
test edi, edi
je 0x405a9c
movzx ecx, word [edi]
mov esi, 0x7b
mov edx, 0xf
mov eax, str.versionSwitch
cmp ecx, esi
jb 0x405940
mov dword [ebp - 0x780], edi
sub dword [ebp - 0x780], eax
cmp cx, si
ja 0x405940
cmp edx, 1
je 0x40594b
mov ecx, dword [ebp - 0x780]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx esi, word [eax]
cmp cx, si
jae 0x405923
mov eax, dword [ebp - 0x7a0]
add edi, 2
jmp 0x4058d0
sub edi, dword [ebp - 0x798]
sar edi, 1
cmp edi, 0xffffffff
je 0x405a9c
mov ecx, dword [ebp - 0x60c]
test ecx, ecx
jne 0x40599a
push 6
mov dword [ebp - 0x20], ecx
xor eax, eax
push str.stable
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00404480
mov ecx, dword [ebp - 0x784]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xf
or ecx, 1
jmp 0x405a3e
cmp dword [ebp - 0x608], 8
lea eax, [ebp - 0x61c]
cmovae eax, dword [ebp - 0x61c]
mov dword [ebp - 0x798], eax
cmp ecx, 8
jae 0x4059d5
movups xmm0, xmmword [eax]
mov dword [ebp - 0x568], ecx
mov dword [ebp - 0x564], 7
movups xmmword [ebp - 0x578], xmm0
jmp 0x405a28
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x578]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403640
mov ecx, dword [ebp - 0x60c]
mov dword [ebp - 0x578], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x798]
push eax
call fcn.00410260
mov eax, dword [ebp - 0x60c]
add esp, 0xc
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], esi
mov ecx, dword [ebp - 0x784]
lea eax, [ebp - 0x578]
mov dword [ebp - 4], 0x10
or ecx, 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x794], ecx
mov dword [ebp - 0x784], ecx
mov ecx, dword [eax + 0x10]
jb 0x405a55
mov eax, dword [eax]
push ecx
push eax
push 0xf
push edi
lea ecx, [ebp - 0x604]
call fcn.004046d0
mov eax, dword [ebp - 0x784]
test al, 2
je 0x405a89
and eax, 0xfffffffd
lea ecx, [ebp - 0x578]
mov dword [ebp - 0x784], eax
call fcn.00402770
mov eax, dword [ebp - 0x784]
mov dword [ebp - 4], 7
test al, 1
je 0x405a9c
lea ecx, [ebp - 0x30]
call fcn.00402770
push dword [ebp - 0x78c]
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x548]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x548]
push 0
push 0x80
push 2
push 0
push 1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405b09
push 2
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060f1
push 4
push 0
lea eax, [ebp - 0x548]
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 - 0x660]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x405bbc
cmp dword [ebp - 0x65c], 0
ja 0x405bbc
jb 0x405b5e
cmp dword [ebp - 0x660], 0x6400000
jae 0x405bbc
push 0x70
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x779], 0
jne 0x4060f1
push 0x3e9
call fcn.00403550
push 0x3ed
mov esi, eax
call fcn.00403550
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0x710]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x4060f1
cmp dword [ebp - 0x5f0], 8
lea ecx, [ebp - 0x728]
push ecx
lea ecx, [ebp - 0x708]
push ecx
lea ecx, [ebp - 0x70c]
push ecx
lea eax, [ebp - 0x604]
cmovae eax, dword [ebp - 0x604]
push edi
push eax
push dword [ebp - 0x788]
call fcn.004020b0
add esp, 0x18
test al, al
jne 0x405c5f
push 0x8ca
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp - 0x779], 0
jne 0x4060f1
push 0x3e9
call fcn.00403550
push 0x3ee
mov esi, eax
call fcn.00403550
add esp, 8
push 0x409
push 0x10
push esi
push eax
push dword [ebp - 0x710]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x4060f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push 1
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405cae
push 0x6e
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060f1
push 0
push edi
call fcn.00406ed0
add esp, 8
test al, al
jne 0x405cf7
push 1
push edi
call fcn.00406ed0
add esp, 8
test al, al
jne 0x405cf7
push 0x6fe
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060f1
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.004032e0
add esp, 8
test al, al
je 0x405d1f
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0x6f4]
lea eax, [ebp - 0x778]
push eax
movups xmmword [ebp - 0x778], xmm0
movups xmm0, xmmword [ebp - 0x6e4]
movups xmmword [ebp - 0x768], xmm0
movq xmm0, qword [ebp - 0x6d4]
movq qword [ebp - 0x758], xmm0
mov dword [ebp - 0x754], str.microstub_download
call fcn.00403df0
lea eax, [ebp - 0x778]
push eax
call fcn.00403e50
add esp, 8
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
push 1
push 0x422cd4
call fcn.00404480
lea ecx, [ebp - 0x548]
mov byte [ebp - 4], 0x11
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405da0
sub ecx, edx
lea eax, [ebp - 0x548]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403870
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x578], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x568], xmm0
mov word [eax], cx
push 0x22
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 0x12
call fcn.004045a0
movups xmm0, xmmword [ebp - 0x578]
xor eax, eax
mov word [ebp - 0x578], ax
movups xmmword [ebp - 0x594], xmm0
movq xmm0, qword [ebp - 0x568]
movq qword [ebp - 0x584], xmm0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 7
lea ecx, [ebp - 0x578]
call fcn.00402770
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x15
call fcn.00402770
mov esi, dword [ebp - 0x790]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e57
sub ecx, edx
sar ecx, 1
je 0x405e9c
push 0x20
lea ecx, [ebp - 0x594]
call fcn.004045a0
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e80
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x594]
call fcn.00403870
cmp dword [ebp - 0x6dc], 0
je 0x405ede
push 9
push 0x422cd8
lea ecx, [ebp - 0x594]
call fcn.00403870
mov edx, dword [ebp - 0x6dc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ec2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x594]
call fcn.00403870
push 0xe
push str.__ga_clientid:
lea ecx, [ebp - 0x594]
call fcn.00403870
mov edx, dword [ebp - 0x6e4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x594]
call fcn.00403870
push 0xb
push str.__edat_dir:
lea ecx, [ebp - 0x594]
call fcn.00403870
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f37
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x594]
call fcn.00403870
cmp word [ebp - 0x1c0], 0
je 0x405fa2
push 0xe
push str.__sub_edition:
lea ecx, [ebp - 0x594]
call fcn.00403870
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f80
sub ecx, edx
lea eax, [ebp - 0x1c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x594]
call fcn.00403870
push 0x40
lea eax, [ebp - 0x6c4]
mov dword [ebp - 0x6c8], 0x44
push 0
push eax
call fcn.00410980
add esp, 0xc
lea ecx, [ebp - 0x704]
cmp dword [ebp - 0x580], 8
lea eax, [ebp - 0x594]
cmovae eax, dword [ebp - 0x594]
push ecx
lea ecx, [ebp - 0x6c8]
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 0x40603c
push 0x23f
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 7
call fcn.00402770
jmp 0x4060f1
push dword [ebp - 0x6fc]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x700]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x406090
push 0x236
lea eax, [ebp - 0x6f4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 7
call fcn.00402770
jmp 0x4060f1
mov eax, dword [ebp - 0x710]
test eax, eax
je 0x4060aa
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x704]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x57c]
push eax
push dword [ebp - 0x704]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4060e2
push dword [ebp - 0x57c]
lea eax, [ebp - 0x6d4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 7
call fcn.00402770
lea eax, [ebp - 0x6f4]
push eax
call fcn.00403df0
lea eax, [ebp - 0x6f4]
push eax
call fcn.00403e50
add esp, 8
cmp edi, 0xffffffff
je 0x406118
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x700]
test eax, eax
je 0x406129
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x40613a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406ae0
cmp eax, 0x6010000
jb 0x40623c
push dword [ebp - 0x6d8]
call fcn.00403500
add esp, 4
test al, al
je 0x40623c
mov eax, dword [ebp - 0x6f4]
cmp eax, 0x4c7
je 0x40623c
test eax, eax
jne 0x406199
mov eax, dword [ebp - 0x6d4]
test eax, eax
je 0x40623c
cmp eax, 0xa003
je 0x40623c
cmp eax, 0xa104
je 0x40623c
push 0x208
lea eax, [ebp - 0x3c8]
push 0
push eax
call fcn.00410980
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 0x40623c
push 0x2f
call fcn.00403a20
push eax
call fcn.00411474
add esp, 8
mov esi, eax
push 0x5c
call fcn.00403a20
push eax
call fcn.00411474
mov edi, eax
lea eax, [ebp - 0x3c8]
cmp edi, esi
push 0x4227b0
push eax
cmovb edi, esi
call fcn.00404210
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.00404210
add esp, 0x18
push 0
call fcn.00403a20
push eax
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x40623c
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00403a20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x79c]
test esi, esi
je 0x406254
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call fcn.00403b80
mov esi, dword [ebp - 0x6f4]
lea ecx, [ebp - 0x5ac]
add esp, 4
cmp dword [ebp - 0x6d4], 0x103
cmovne esi, dword [ebp - 0x6d4]
call fcn.00402770
lea ecx, [ebp - 0x678]
call fcn.00402770
lea ecx, [ebp - 0x64c]
call fcn.00402770
lea ecx, [ebp - 0x61c]
call fcn.00402770
lea ecx, [ebp - 0x604]
call fcn.00402770
lea ecx, [ebp - 0x5ec]
call fcn.00402770
lea ecx, [ebp - 0x5d4]
call fcn.00402770
lea ecx, [ebp - 0x634]
call fcn.00402770
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.0040f65e
mov esp, ebp
pop ebp
ret 0x10
call fcn.004130d1
call fcn.004130d1
call fcn.004130d1
call fcn.004130d1
call fcn.00404330
call fcn.004130d1
call fcn.004130d1
call fcn.004130d1
call fcn.004130d1
int3