Function at 0x403420
Capabilities:
Check mutex on windows
Delete file
Extract resource via kernel32 functions
Get disk size
Get token privileges
Move file
Read .ini file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421706
mov eax, dword fs:[0]
push eax
sub esp, 0x7e4
mov eax, dword [0x42c00c]
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 edi, 0xffffffff
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x780], eax
xor eax, eax
mov dword [ebp - 0x548], edi
mov dword [ebp - 0x544], edi
movups xmmword [ebp - 0x718], xmm0
mov dword [ebp - 0x5f0], 0
mov dword [ebp - 0x5ec], 7
mov word [ebp - 0x600], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x61c], 7
mov word [ebp - 0x630], ax
mov dword [ebp - 0x608], eax
mov dword [ebp - 0x604], 7
mov word [ebp - 0x618], ax
mov dword [ebp - 0x5d4], eax
mov dword [ebp - 0x5d0], 7
mov word [ebp - 0x5e4], ax
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x64c], 7
mov word [ebp - 0x660], ax
mov dword [ebp - 0x5a0], eax
mov dword [ebp - 0x59c], 7
mov word [ebp - 0x5b0], ax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5b4], 7
mov word [ebp - 0x5c8], ax
mov word [ebp - 0x140], ax
mov word [ebp - 0x100], ax
mov word [ebp - 0x1c0], ax
lea eax, [ebp - 0x6cc]
push 0x103
push eax
movups xmmword [ebp - 0x6ec], xmm0
movups xmmword [ebp - 0x6dc], xmm0
movq qword [ebp - 0x6cc], xmm0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x704], eax
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x708], esi
movq qword [ebp - 0x700], xmm0
mov dword [ebp - 0x6f8], 0
movups xmmword [ebp - 0x728], xmm0
mov dword [ebp - 0x2dc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405a18
movzx eax, byte [ebp - 0x2d8]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2d4]
or ecx, eax
movzx eax, byte [ebp - 0x1c8]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x1c6]
or ecx, eax
cmp ecx, 0x6000000
jb 0x403763
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 0x6b0], 0
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405a40
mov edi, dword [ebp - 0x6b0]
mov dword [ebp - 0x77c], edi
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 9
push eax
push 0
push 0
push 0x19
push edi
mov dword [ebp - 0x568], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x568]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f9a3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5e8], esi
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 0xa
push eax
push dword [ebp - 0x568]
push esi
push 0x19
push dword [ebp - 0x6b0]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x405a68
mov eax, dword [esi]
push eax
mov dword [ebp - 0x54c], eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x405a90
push dword [ebp - 0x54c]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push dword [ebp - 0x54c]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
mov eax, dword [eax]
mov dword [ebp - 0x544], eax
call fcn.0040f9ac
add esp, 4
mov byte [ebp - 4], 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x544], 0x3000
jae 0x403760
push 0x52f
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, 0x3ef
call fcn.00402070
or edi, 0xffffffff
xor esi, esi
jmp 0x405665
or edi, 0xffffffff
mov dword [ebp - 4], 7
push 0
lea eax, [ebp - 0x6f0]
mov dword [ebp - 0x6f0], 0
push eax
push 0x44c
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [ebp - 0x6f0]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x568], esi
test esi, esi
je 0x403814
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403814
push 0x420
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6b0], 0
push eax
push 0x44d
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp - 0x6b0]
call fcn.004016c0
test al, al
jne 0x405665
mov ecx, 0x44e
call fcn.00402030
mov ecx, eax
call fcn.004016c0
jmp 0x405665
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00407fe0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x564]
xor eax, eax
mov dword [ebp - 0x554], 0
push 0x40
mov dword [ebp - 0x550], 7
mov word [ebp - 0x564], ax
mov dword [ebp - 0x54c], 8
call fcn.00405dd0
xor edi, edi
movzx esi, byte [ebp + edi - 0x38]
mov ecx, dword [ebp - 0x554]
mov eax, esi
shr eax, 4
movzx edx, word [eax*2 + 0x428e68]
cmp ecx, dword [ebp - 0x550]
jae 0x4038ab
cmp dword [ebp - 0x550], 8
lea eax, [ecx + 1]
mov dword [ebp - 0x554], eax
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x4038c5
push edx
mov byte [ebp - 0x544], 0
push dword [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x564]
call fcn.00402f20
mov ecx, dword [ebp - 0x554]
and esi, 0xf
movzx edx, word [esi*2 + 0x428e68]
mov esi, dword [ebp - 0x550]
cmp ecx, esi
jae 0x403906
lea eax, [ecx + 1]
cmp esi, 8
mov dword [ebp - 0x554], eax
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x403920
push edx
mov byte [ebp - 0x6b4], 0
push dword [ebp - 0x6b4]
push ecx
lea ecx, [ebp - 0x564]
call fcn.00402f20
inc edi
cmp edi, 0x20
jb 0x403861
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x61c]
mov dword [ebp - 0x54c], 4
cmp edx, 8
jb 0x40397b
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403971
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ab8
push edx
push ecx
call fcn.0040f81e
add esp, 8
movups xmm1, xmmword [ebp - 0x564]
cmp dword [ebp - 0x550], 8
lea ecx, [ebp - 0x630]
movq xmm0, qword [ebp - 0x554]
movd eax, xmm1
movups xmmword [ebp - 0x630], xmm1
cmovae ecx, eax
movq qword [ebp - 0x620], xmm0
push ecx
lea eax, [ebp - 0x6d8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call fcn.004074f0
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 0x58c], edx
call fcn.004074f0
mov dword [ebp - 0x544], edx
mov dword [ebp - 0x584], edx
mov dl, al
mov dword [ebp - 0x588], eax
and dl, 0x3f
mov ecx, dword [ebp - 0x58a]
or dl, 0x80
and ecx, 0xfff
mov byte [ebp - 0x588], dl
or ecx, 0x4000
mov word [ebp - 0x58a], cx
mov byte [ebp - 4], 0xd
sub esp, 8
mov eax, dword [ebp - 0x58c]
mov ecx, dword [ebp - 0x588]
shr eax, 0x10
mov dword [ebp - 0x6b8], eax
mov eax, ecx
shr eax, 8
movzx esi, al
movzx eax, dl
shl eax, 8
or esi, eax
mov dword [ebp - 0x554], 0
mov eax, ecx
mov dword [ebp - 0x6b4], esi
shr eax, 0x10
movzx eax, al
shl ax, 8
movzx edi, ax
shr ecx, 0x18
or edi, ecx
mov dword [ebp - 0x550], 7
mov ecx, dword [ebp - 0x544]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edi, 0x10
or edi, eax
movzx eax, byte [ebp - 0x584]
shl ax, 8
movzx eax, ax
or edi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl ax, 8
movzx esi, ax
xor eax, eax
shr ecx, 0x18
or esi, ecx
mov word [ebp - 0x564], ax
lea ecx, [ebp - 0x564]
call fcn.0040c040
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
movzx ecx, word [ebp - 0x58c]
cmovae eax, dword [ebp - 0x564]
push esi
push edi
push dword [ebp - 0x6b4]
mov dword [ebp - 0x54c], 0x14
push dword [ebp - 0x6b8]
push ecx
push dword [ebp - 0x6c4]
push str._08lx__04x__04x__04x__08x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea ecx, [ebp - 0x564]
push eax
call fcn.00402c10
mov edx, dword [ebp - 0x604]
cmp edx, 8
jb 0x403b44
mov ecx, dword [ebp - 0x618]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403b3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405abd
push edx
push ecx
call fcn.0040f81e
add esp, 8
movups xmm1, xmmword [ebp - 0x564]
lea ecx, [ebp - 0x618]
movq xmm0, qword [ebp - 0x554]
movd eax, xmm1
mov byte [ebp - 4], 7
cmp dword [ebp - 0x550], 8
movups xmmword [ebp - 0x618], xmm1
cmovae ecx, eax
lea eax, [ebp - 0x6dc]
movq qword [ebp - 0x608], xmm0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0x780]
lea ecx, [ebp - 0x58c]
push str._cookie
mov edx, esi
call fcn.00402200
add esp, 4
cmp byte [ebp - 0x584], 0
je 0x403bce
mov eax, dword [ebp - 0x588]
cmp eax, 0x40
jae 0x403bce
push eax
push dword [ebp - 0x58c]
lea ecx, [ebp - 0x600]
call fcn.00402930
jmp 0x403cce
push 0xa
push str.EDAT_ECOO
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x403cce
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0x400000
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403cc8
cmp edi, 0x40
jae 0x403cc8
test esi, esi
je 0x403cc8
push ecx
push edi
lea ecx, [ebp - 0x600]
call fcn.00402c10
cmp dword [ebp - 0x5ec], 8
lea ecx, [ebp - 0x600]
lea eax, [edi + esi]
cmovae ecx, dword [ebp - 0x600]
xor edx, edx
cmp esi, eax
cmova edi, edx
test edi, edi
je 0x403cc8
cmp edi, 0x20
jb 0x403cb2
lea eax, [esi - 1]
add eax, edi
cmp ecx, eax
ja 0x403c66
lea eax, [ecx - 2]
lea eax, [eax + edi*2]
cmp eax, esi
jae 0x403cb2
mov eax, edi
and eax, 0xffffffe0
nop dword [eax + eax]
movq xmm1, qword [esi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add edx, 0x20
movups xmmword [ecx], xmm1
movq xmm1, qword [esi + 8]
punpcklbw xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movq xmm1, qword [esi + 0x10]
punpcklbw xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movq xmm1, qword [esi + 0x18]
add esi, 0x20
punpcklbw xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, eax
jne 0x403c70
cmp edx, edi
je 0x403cc8
movzx eax, byte [esi]
lea ecx, [ecx + 2]
inc edx
mov word [ecx - 2], ax
lea esi, [esi + 1]
cmp edx, edi
jne 0x403cb6
mov esi, dword [ebp - 0x780]
cmp dword [ebp - 0x5f0], 0
je 0x403cf9
cmp dword [ebp - 0x5ec], 8
lea eax, [ebp - 0x600]
cmovae eax, dword [ebp - 0x600]
push eax
lea eax, [ebp - 0x6d4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x6b0], 0
push eax
lea eax, [ebp - 0x6b0]
xor ecx, ecx
push eax
lea edx, [ebp - 0x100]
call fcn.004020f0
add esp, 8
cmp word [ebp - 0x100], 0
je 0x403d3f
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [ebp - 0x6b0]
mov eax, 0xf
test edi, edi
cmovne eax, edi
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0x6ec]
lea eax, [ebp - 0x54c]
mov dword [ebp - 0x54c], 0
push eax
push 0
movups xmmword [ebp - 0x750], xmm0
lea eax, [ebp - 0x750]
movups xmm0, xmmword [ebp - 0x6dc]
push eax
push 0x4030e0
movups xmmword [ebp - 0x740], xmm0
push 0
movq xmm0, qword [ebp - 0x6cc]
movq qword [ebp - 0x730], xmm0
push 0
mov dword [ebp - 0x72c], str.microstub_start
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403dc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54c], 0
je 0x403dd7
lock inc dword [0x42d508]
lea eax, [ebp - 0x54c]
mov dword [ebp - 0x54c], 0
push eax
push 0
lea eax, [ebp - 0x750]
push eax
push 0x403220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403e0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54c], 0
je 0x403e1b
lock inc dword [0x42d508]
push str._silent
mov edx, esi
lea ecx, [ebp - 0x58c]
call fcn.00402200
add esp, 4
mov al, byte [eax + 8]
test al, al
jne 0x403e58
push 0
push 0
lea eax, [ebp - 0x708]
push eax
push 0x4014a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc0]
call fcn.00401f30
test al, al
jne 0x403e8f
push 3
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405659
push 4
push 0
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0xc0]
push eax
push 0x401f20
push 0xa
push 0x400000
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push str._cust_ini
mov edx, esi
lea ecx, [ebp - 0x58c]
call fcn.00402200
mov esi, 4
add esp, 4
cmp byte [ebp - 0x584], 0
mov dword [ebp - 0x548], esi
mov dword [ebp - 0x54c], esi
je 0x40463c
push dword [ebp - 0x588]
xor eax, eax
mov dword [ebp - 0x554], 0
push dword [ebp - 0x58c]
lea ecx, [ebp - 0x564]
mov dword [ebp - 0x550], 7
mov word [ebp - 0x564], ax
call fcn.00402930
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x564]
cmp dword [ebp - 0x550], 8
lea ecx, [ebp - 0x564]
mov edx, dword [ebp - 0x564]
mov esi, dword [ebp - 0x554]
cmovae eax, edx
cmovae ecx, edx
mov dword [ebp - 0x6b4], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x564]
cmovae eax, edx
lea edi, [eax + esi*2]
cmp ecx, edi
je 0x403fba
cmp word [ecx], 0x22
je 0x403f75
add ecx, 2
cmp ecx, edi
jne 0x403f68
cmp ecx, edi
je 0x403fba
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 0x403fae
nop
movzx edi, word [eax]
cmp edi, 0x22
je 0x403f9e
mov word [ecx], di
add ecx, 2
inc edx
add eax, 2
cmp edx, esi
jne 0x403f90
mov esi, dword [ebp - 0x554]
jmp 0x403fb4
mov esi, dword [ebp - 0x6b4]
mov edx, dword [ebp - 0x564]
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, edx
mov edx, ecx
sub edx, eax
sar edx, 1
cmp esi, edx
jb 0x405ac2
mov edi, dword [ebp - 0x6b8]
mov eax, esi
sub edi, ecx
sub eax, edx
sar edi, 1
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
sub esi, edi
mov dword [ebp - 0x554], 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.00410d70
add esp, 0xc
lea eax, [ebp - 0x564]
cmp dword [ebp - 0x550], 8
mov esi, 4
mov dword [ebp - 0x548], esi
cmovae eax, dword [ebp - 0x564]
push eax
push 0
push str.Enabled
push str.ProxySettings
mov dword [ebp - 0x54c], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x404590
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
mov dword [ebp - 0x548], esi
cmovae eax, dword [ebp - 0x564]
push eax
push 0
push str.ProxyType
push str.ProxySettings
mov dword [ebp - 0x54c], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x404590
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x3c0]
push eax
push 0x427eb4
push 0x428410
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x5b0]
call fcn.00402930
mov ecx, dword [ebp - 0x5a0]
mov edx, dword [ebp - 0x59c]
cmp ecx, edx
jae 0x404118
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x5a0], eax
lea eax, [ebp - 0x5b0]
cmovae eax, dword [ebp - 0x5b0]
mov dword [eax + ecx*2], 0x3a
jmp 0x404133
push 0x3a
mov byte [ebp - 0x544], 0
push dword [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x5b0]
call fcn.00402f20
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
push 0
push str.Port
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx ecx, ax
lea esi, [ebp - 0x16]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x404160
xor eax, eax
mov dword [ebp - 0x588], ecx
mov word [ebp - 0x598], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x584], 7
cmp esi, eax
je 0x4041b7
sub eax, esi
lea ecx, [ebp - 0x598]
sar eax, 1
push eax
push esi
call fcn.00402930
mov ecx, dword [ebp - 0x588]
mov eax, 0x64
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x54c], eax
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x584], 8
mov esi, dword [ebp - 0x5a0]
cmovae edx, dword [ebp - 0x598]
mov eax, dword [ebp - 0x59c]
sub eax, esi
mov dword [ebp - 0x544], esi
cmp ecx, eax
ja 0x404234
cmp dword [ebp - 0x59c], 8
lea edi, [ecx + esi]
lea eax, [ecx + ecx]
mov dword [ebp - 0x5a0], edi
push eax
mov eax, dword [ebp - 0x544]
lea esi, [ebp - 0x5b0]
cmovae esi, dword [ebp - 0x5b0]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40424f
push ecx
push edx
mov byte [ebp - 0x544], 0
push dword [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x5b0]
call fcn.00402ca0
mov ecx, dword [ebp - 0x598]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x584]
cmp eax, 8
jb 0x404293
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404289
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ac7
push edx
push ecx
call fcn.0040f81e
add esp, 8
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x3c0]
push eax
push 0x427eb4
push str.User
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x648]
call fcn.00402930
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x3c0]
push eax
push 0x427eb4
push str.Password
push str.ProxySettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x404515
xorps xmm0, xmm0
mov dword [ebp - 0x584], 0
movq qword [ebp - 0x58c], xmm0
push 0
push 0
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 0x10
push eax
push 0
push 1
push 0
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x548], 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [ebp - 0x548]
test eax, eax
je 0x405acc
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x584], 0
push eax
lea ecx, [ebp - 0x58c]
movq qword [ebp - 0x58c], xmm0
call fcn.004075e0
push 0
push 0
lea eax, [ebp - 0x548]
mov dword [ebp - 0x54c], 0xe4
push eax
push dword [ebp - 0x58c]
lea eax, [ebp - 0x3c0]
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x405af4
cmp dword [ebp - 0x5b4], 8
lea ecx, [ebp - 0x5c8]
mov eax, dword [ebp - 0x5b8]
cmovae ecx, dword [ebp - 0x5c8]
mov esi, dword [ebp - 0x588]
mov edi, dword [ebp - 0x58c]
mov dword [ebp - 0x20], 0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x6b4], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x5c8]
cmovae eax, dword [ebp - 0x5c8]
mov dword [ebp - 0x544], eax
xor eax, eax
mov word [ebp - 0x30], ax
mov eax, esi
sub eax, edi
push eax
call fcn.00405dd0
push dword [ebp - 0x5cc]
lea ecx, [ebp - 0x30]
push esi
push edi
call fcn.00405be0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x5c8]
mov ecx, dword [ebp - 0x544]
mov edx, dword [ebp - 0x6b4]
push dword [ebp - 0x20]
sub edx, ecx
sar edx, 1
cmp dword [ebp - 0x5b4], 8
cmovae eax, dword [ebp - 0x5c8]
sub ecx, eax
lea eax, [ebp - 0x30]
sar ecx, 1
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
push edx
push ecx
lea ecx, [ebp - 0x5c8]
call fcn.00406040
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4044b8
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4044ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b1c
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov byte [ebp - 4], 0xe
mov esi, 0x64
mov ecx, dword [ebp - 0x58c]
mov dword [ebp - 0x548], esi
mov dword [ebp - 0x54c], esi
test ecx, ecx
je 0x404515
mov edx, dword [ebp - 0x584]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4044fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b21
push edx
push ecx
call fcn.0040f81e
mov eax, esi
add esp, 8
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x54c], eax
cmp dword [ebp - 0x59c], 8
lea eax, [ebp - 0x5b0]
cmovae eax, dword [ebp - 0x5b0]
cmp dword [ebp - 0x634], 8
mov dword [ebp - 0x728], eax
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
cmp dword [ebp - 0x5b4], 8
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x5c8]
cmovae eax, dword [ebp - 0x5c8]
cmp dword [ebp - 0x550], 8
mov dword [ebp - 0x71c], eax
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
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 - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
push 0x40
lea eax, [ebp - 0x440]
push eax
push 0x427eb4
push str.avcfg:__settings_Common_VersionSwitch
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4045f2
lea ecx, [ebp - 0x440]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4045d0
sub ecx, edx
lea eax, [ebp - 0x440]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x660]
call fcn.00402930
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x550]
cmp edx, 8
jb 0x404636
mov ecx, dword [ebp - 0x564]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40462c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b26
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edi, dword [ebp - 0x6b0]
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405b2b
movzx eax, byte [ebp - 0x2d8]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2d4]
or ecx, eax
movzx eax, byte [ebp - 0x1c8]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x1c6]
or ecx, eax
push 0
cmp ecx, 0x6010000
jb 0x404798
lea eax, [ebp - 0x6f4]
mov dword [ebp - 0x6f4], 0
push eax
push 0x7d1
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x6f4]
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x6b0], 0
mov eax, dword fs:[0xc0]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
mov ecx, 0x8fc
mov eax, 0x898
mov dword [ebp - 0x6bc], 0
cmovne eax, ecx
lea ecx, [ebp - 0x6bc]
push 0
push ecx
add eax, edi
push eax
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp - 0x6bc]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404720
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5e4]
call fcn.00402930
mov dword [ebp - 0x6bc], 0
mov eax, dword fs:[0xc0]
mov dword [ebp - 0x6bc], eax
cmp dword [ebp - 0x6bc], 0
mov ecx, 0xce4
mov eax, 0xc80
mov dword [ebp - 0x6c0], 0
cmovne eax, ecx
lea ecx, [ebp - 0x6c0]
push 0
push ecx
add eax, edi
push eax
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp - 0x6c0]
mov dword [ebp - 0x6b4], edx
jmp 0x404842
lea eax, [ebp - 0x6c4]
mov dword [ebp - 0x6c4], 0
push eax
push 0x7d2
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x6c4]
lea ecx, [ebp - 0x6c0]
push 0
mov dword [ebp - 0x544], eax
lea eax, [edi + 0x834]
push ecx
push eax
push 0x400000
mov dword [ebp - 0x6c0], 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp - 0x6c0]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4047f5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5e4]
call fcn.00402930
push 0
lea ecx, [ebp - 0x6b8]
mov dword [ebp - 0x6b8], 0
push ecx
lea eax, [edi + 0xc80]
push eax
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x6b8]
mov dword [ebp - 0x6b4], eax
cmp dword [ebp - 0x5d0], 8
lea ecx, [ebp - 0x5e4]
mov eax, dword [ebp - 0x5d4]
cmovae ecx, dword [ebp - 0x5e4]
mov dword [ebp - 0x77c], ecx
cmp eax, 0xf
jb 0x404aae
add eax, 0xfffffff2
mov edi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x5e8], eax
nop dword [eax]
mov ecx, eax
mov edx, 0
sub ecx, edi
sar ecx, 1
je 0x4048a4
cmp word [edi], 0x7b
je 0x4048a2
cmp ecx, 1
je 0x4048a4
add edi, 2
dec ecx
cmp word [edi], 0x7b
jne 0x404893
mov edx, edi
mov edi, edx
test edi, edi
je 0x404aae
movzx ecx, word [edi]
mov esi, 0x7b
mov edx, 0xf
mov eax, str.versionSwitch
cmp ecx, esi
jb 0x4048f0
mov dword [ebp - 0x6b0], edi
sub dword [ebp - 0x6b0], eax
cmp cx, si
ja 0x4048f0
cmp edx, 1
je 0x4048fb
mov ecx, dword [ebp - 0x6b0]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx esi, word [eax]
cmp cx, si
jae 0x4048d3
mov eax, dword [ebp - 0x5e8]
add edi, 2
jmp 0x404880
sub edi, dword [ebp - 0x77c]
sar edi, 1
cmp edi, 0xffffffff
je 0x404aae
mov ecx, dword [ebp - 0x650]
test ecx, ecx
jne 0x404959
push 6
mov dword [ebp - 0x554], ecx
xor eax, eax
push str.stable
lea ecx, [ebp - 0x564]
mov dword [ebp - 0x550], 7
mov word [ebp - 0x564], ax
call fcn.00402930
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x564]
mov eax, dword [ebp - 0x548]
or eax, 1
jmp 0x4049e2
cmp dword [ebp - 0x64c], 8
lea eax, [ebp - 0x660]
cmovae eax, dword [ebp - 0x660]
mov dword [ebp - 0x77c], eax
cmp ecx, 8
jae 0x40498b
movups xmm0, xmmword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
movups xmmword [ebp - 0x30], xmm0
jmp 0x4049cf
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00402eb0
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 0x30], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x77c]
push eax
call fcn.004127e0
mov eax, dword [ebp - 0x650]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x548]
or eax, 2
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x548], eax
mov eax, dword [ecx + 0x10]
jb 0x4049f9
mov ecx, dword [ecx]
push eax
push ecx
push 0xf
push edi
lea ecx, [ebp - 0x5e4]
call fcn.00406040
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0x548]
test al, 2
je 0x404a63
mov edx, dword [ebp - 0x1c]
and eax, 0xfffffffd
mov dword [ebp - 0x548], eax
cmp edx, 8
jb 0x404a63
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b53
push edx
push ecx
call fcn.0040f81e
mov eax, dword [ebp - 0x548]
add esp, 8
mov dword [ebp - 4], 7
test al, 1
je 0x404aae
mov edx, dword [ebp - 0x550]
cmp edx, 8
jb 0x404aae
mov ecx, dword [ebp - 0x564]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404aa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b58
push edx
push ecx
call fcn.0040f81e
add esp, 8
push dword [ebp - 0x6b4]
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x540]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x540]
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 0x404b1b
push 2
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40565f
push 4
push 0
lea eax, [ebp - 0x540]
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 - 0x668]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x404c04
cmp dword [ebp - 0x664], 0
ja 0x404c04
jb 0x404b7c
cmp dword [ebp - 0x668], 0x6400000
jae 0x404c04
push 0x70
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x6b4]
mov dword [ebp - 0x6b4], 0
push eax
push 0x3e9
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
lea eax, [ebp - 0x6b8]
mov dword [ebp - 0x6b8], 0
push eax
push 0x3ed
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x409
push 0x10
push dword [ebp - 0x6b4]
push dword [ebp - 0x6b8]
push dword [ebp - 0x700]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40565f
cmp dword [ebp - 0x5d0], 8
lea eax, [ebp - 0x728]
mov ecx, dword [ebp - 0x544]
lea edx, [ebp - 0x5e4]
cmovae edx, dword [ebp - 0x5e4]
push eax
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x6fc]
push eax
push edi
call fcn.00401be0
add esp, 0x10
test al, al
jne 0x404cd4
push 0x8ca
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x544]
mov dword [ebp - 0x544], 0
push eax
push 0x3e9
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
lea eax, [ebp - 0x6b4]
mov dword [ebp - 0x6b4], 0
push eax
push 0x3ee
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x409
push 0x10
push dword [ebp - 0x544]
push dword [ebp - 0x6b4]
push dword [ebp - 0x700]
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40565f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push 1
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x548], edi
cmp edi, 0xffffffff
jne 0x404d29
push 0x6e
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40565f
xor edx, edx
mov ecx, edi
call fcn.00407080
test al, al
jne 0x404d71
mov edx, 1
mov ecx, edi
call fcn.00407080
test al, al
jne 0x404d71
push 0x6fe
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40565f
xor esi, esi
push esi
push esi
push esi
push 0x1000002
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x404d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x404de9
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x77c], eax
test eax, eax
jne 0x404db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x404de2
push 0
push 0
lea edx, [ebp - 0x140]
mov ecx, eax
call fcn.004020f0
add esp, 8
test al, al
jne 0x404dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x77c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x404e08
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x6e0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movups xmm0, xmmword [ebp - 0x6ec]
lea eax, [ebp - 0x544]
mov dword [ebp - 0x544], 0
push eax
push 0
movups xmmword [ebp - 0x778], xmm0
lea eax, [ebp - 0x778]
movups xmm0, xmmword [ebp - 0x6dc]
push eax
push 0x4030e0
movups xmmword [ebp - 0x768], xmm0
push 0
movq xmm0, qword [ebp - 0x6cc]
movq qword [ebp - 0x758], xmm0
push 0
mov dword [ebp - 0x754], str.microstub_download
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x404e72
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x544], 0
je 0x404e82
lock inc dword [0x42d508]
lea eax, [ebp - 0x544]
mov dword [ebp - 0x544], 0
push eax
push 0
lea eax, [ebp - 0x778]
push eax
push 0x403220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x404eb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x544], 0
je 0x404ec6
lock inc dword [0x42d508]
push 1
xor eax, eax
mov dword [ebp - 0x554], 0
push 0x42851c
lea ecx, [ebp - 0x564]
mov dword [ebp - 0x550], 7
mov word [ebp - 0x564], ax
call fcn.00402930
lea eax, [ebp - 0x540]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x564]
call fcn.00402e20
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x20], xmm0
mov word [eax], cx
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jae 0x404f56
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
mov dword [eax + ecx*2], 0x22
jmp 0x404f6e
push 0x22
mov byte [ebp - 0x77c], 0
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00402f20
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ebp - 0x580], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x570], xmm0
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x550]
cmp edx, 8
jb 0x404fca
mov ecx, dword [ebp - 0x564]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404fc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b5d
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov esi, dword [ebp - 0x780]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 7
mov word [ebp - 0x564], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ff2
sub ecx, edx
sar ecx, 1
je 0x4050d8
mov ecx, dword [ebp - 0x570]
mov edx, dword [ebp - 0x56c]
cmp ecx, edx
jae 0x405039
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x570], eax
lea eax, [ebp - 0x580]
cmovae eax, dword [ebp - 0x580]
mov dword [eax + ecx*2], 0x20
jmp 0x405054
push 0x20
mov byte [ebp - 0x77c], 0
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00402f20
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405060
mov eax, dword [ebp - 0x56c]
sub ecx, edx
mov edx, dword [ebp - 0x570]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x4050bd
cmp dword [ebp - 0x56c], 8
lea esi, [ebp - 0x580]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x580]
lea edi, [ecx + edx]
push eax
mov eax, dword [ebp - 0x780]
push eax
lea eax, [esi + edx*2]
mov dword [ebp - 0x570], edi
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4050d8
push ecx
push esi
mov byte [ebp - 0x77c], 0
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00402ca0
cmp dword [ebp - 0x6d4], 0
je 0x4051de
mov edx, dword [ebp - 0x56c]
mov eax, edx
mov ecx, dword [ebp - 0x570]
sub eax, ecx
cmp eax, 9
jb 0x40512e
cmp edx, 8
lea esi, [ebp - 0x580]
push 0x12
cmovae esi, dword [ebp - 0x580]
lea edi, [ecx + 9]
push 0x428520
mov dword [ebp - 0x570], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40514f
push 9
push 0x428520
mov byte [ebp - 0x77c], 0
lea ecx, [ebp - 0x580]
push dword [ebp - 0x77c]
push 9
call fcn.00402ca0
mov edx, dword [ebp - 0x6d4]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405160
mov eax, dword [ebp - 0x56c]
sub ecx, esi
mov esi, dword [ebp - 0x570]
sub eax, esi
sar ecx, 1
mov dword [ebp - 0x77c], esi
cmp ecx, eax
ja 0x4051c3
cmp dword [ebp - 0x56c], 8
lea edi, [ecx + esi]
lea eax, [ecx + ecx]
mov dword [ebp - 0x570], edi
push eax
mov eax, dword [ebp - 0x77c]
lea esi, [ebp - 0x580]
cmovae esi, dword [ebp - 0x580]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4051de
push ecx
push edx
mov byte [ebp - 0x77c], 0
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00402ca0
mov edx, dword [ebp - 0x56c]
mov eax, edx
mov ecx, dword [ebp - 0x570]
sub eax, ecx
cmp eax, 0xe
jb 0x405227
cmp edx, 8
lea esi, [ebp - 0x580]
push 0x1c
cmovae esi, dword [ebp - 0x580]
lea edi, [ecx + 0xe]
push str.__ga_clientid:
mov dword [ebp - 0x570], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x405248
push 0xe
push str.__ga_clientid:
mov byte [ebp - 0x77c], 0
lea ecx, [ebp - 0x580]
push dword [ebp - 0x77c]
push 0xe
call fcn.00402ca0
mov edx, dword [ebp - 0x6dc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405253
mov eax, dword [ebp - 0x56c]
sub ecx, esi
mov esi, dword [ebp - 0x570]
sub eax, esi
sar ecx, 1
mov dword [ebp - 0x77c], esi
cmp ecx, eax
ja 0x4052b6
cmp dword [ebp - 0x56c], 8
lea edi, [ecx + esi]
lea eax, [ecx + ecx]
mov dword [ebp - 0x570], edi
push eax
mov eax, dword [ebp - 0x77c]
lea esi, [ebp - 0x580]
cmovae esi, dword [ebp - 0x580]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4052d1
push ecx
push edx
mov byte [ebp - 0x77c], 0
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00402ca0
mov edx, dword [ebp - 0x56c]
mov eax, edx
mov ecx, dword [ebp - 0x570]
sub eax, ecx
cmp eax, 0xb
jb 0x40531a
cmp edx, 8
lea esi, [ebp - 0x580]
push 0x16
cmovae esi, dword [ebp - 0x580]
lea edi, [ecx + 0xb]
push str.__edat_dir:
mov dword [ebp - 0x570], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40533b
push 0xb
push str.__edat_dir:
mov byte [ebp - 0x77c], 0
lea ecx, [ebp - 0x580]
push dword [ebp - 0x77c]
push 0xb
call fcn.00402ca0
lea ecx, [ebp - 0xc0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405344
mov eax, dword [ebp - 0x56c]
sub ecx, edx
mov edx, dword [ebp - 0x570]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x4053a1
cmp dword [ebp - 0x56c], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x580]
cmovae esi, dword [ebp - 0x580]
lea eax, [ebp - 0xc0]
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x570], edi
lea eax, [esi + edx*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4053c2
push ecx
lea eax, [ebp - 0xc0]
mov byte [ebp - 0x77c], 0
push eax
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00402ca0
cmp word [ebp - 0x1c0], 0
je 0x4054c1
mov edx, dword [ebp - 0x56c]
mov eax, edx
mov ecx, dword [ebp - 0x570]
sub eax, ecx
cmp eax, 0xe
jb 0x405419
cmp edx, 8
lea esi, [ebp - 0x580]
push 0x1c
cmovae esi, dword [ebp - 0x580]
lea edi, [ecx + 0xe]
push str.__sub_edition:
mov dword [ebp - 0x570], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40543a
push 0xe
push str.__sub_edition:
mov byte [ebp - 0x77c], 0
lea ecx, [ebp - 0x580]
push dword [ebp - 0x77c]
push 0xe
call fcn.00402ca0
lea ecx, [ebp - 0x1c0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405443
mov eax, dword [ebp - 0x56c]
sub ecx, edx
mov edx, dword [ebp - 0x570]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x4054a0
cmp dword [ebp - 0x56c], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x580]
cmovae esi, dword [ebp - 0x580]
lea eax, [ebp - 0x1c0]
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x570], edi
lea eax, [esi + edx*2]
push eax
call fcn.00410d70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4054c1
push ecx
lea eax, [ebp - 0x1c0]
mov byte [ebp - 0x77c], 0
push eax
push dword [ebp - 0x77c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00402ca0
push 0x40
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6ac], 0x44
push 0
push eax
call fcn.00410b20
add esp, 0xc
lea ecx, [ebp - 0x718]
cmp dword [ebp - 0x56c], 8
lea eax, [ebp - 0x580]
cmovae eax, dword [ebp - 0x580]
push ecx
lea ecx, [ebp - 0x6ac]
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 0x405557
push 0x23f
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x580]
call fcn.00403080
jmp 0x405659
push dword [ebp - 0x710]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x714]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4055aa
push 0x236
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp - 0x580]
call fcn.00403080
jmp 0x405659
mov eax, dword [ebp - 0x700]
test eax, eax
je 0x4055c4
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x718]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x5cc]
push eax
push dword [ebp - 0x718]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4055fc
push dword [ebp - 0x5cc]
lea eax, [ebp - 0x6cc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp - 0x56c]
cmp edx, 8
jb 0x40563c
mov ecx, dword [ebp - 0x580]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405632
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b62
push edx
push ecx
call fcn.0040f81e
add esp, 8
xor eax, eax
mov dword [ebp - 0x570], 0
mov dword [ebp - 0x56c], 7
mov word [ebp - 0x580], ax
mov edi, dword [ebp - 0x548]
mov esi, dword [ebp - 0x568]
lea eax, [ebp - 0x544]
mov dword [ebp - 0x544], 0
push eax
push 0
lea eax, [ebp - 0x6ec]
push eax
push 0x4030e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x405699
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x544], 0
je 0x4056a9
lock inc dword [0x42d508]
lea eax, [ebp - 0x544]
mov dword [ebp - 0x544], 0
push eax
push 0
lea eax, [ebp - 0x6ec]
push eax
push 0x403220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4056dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x544], 0
je 0x4056ed
lock inc dword [0x42d508]
cmp edi, 0xffffffff
je 0x4056f9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x714]
test eax, eax
je 0x40570a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x718]
test eax, eax
je 0x40571b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40572d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
nop
cmp dword [0x42d508], 0
je 0x40574a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x4b0
jb 0x405730
mov edx, dword [ebp - 0x5b4]
cmp edx, 8
jb 0x40578a
mov ecx, dword [ebp - 0x5c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405780
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b67
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edx, dword [ebp - 0x634]
xor eax, eax
mov dword [ebp - 0x5b8], 0
mov dword [ebp - 0x5b4], 7
mov word [ebp - 0x5c8], ax
cmp edx, 8
jb 0x4057e7
mov ecx, dword [ebp - 0x648]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b6c
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edx, dword [ebp - 0x59c]
xor eax, eax
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
cmp edx, 8
jb 0x405844
mov ecx, dword [ebp - 0x5b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40583a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b71
push edx
push ecx
call fcn.0040f81e
add esp, 8
xor eax, eax
mov dword [ebp - 0x5a0], 0
mov word [ebp - 0x5b0], ax
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x59c], 7
cmp eax, 8
jb 0x4058a1
mov ecx, dword [ebp - 0x660]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405897
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b76
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edx, dword [ebp - 0x5d0]
cmp edx, 8
jb 0x4058e1
mov ecx, dword [ebp - 0x5e4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b7b
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edx, dword [ebp - 0x604]
xor eax, eax
mov dword [ebp - 0x5d4], 0
mov dword [ebp - 0x5d0], 7
mov word [ebp - 0x5e4], ax
cmp edx, 8
jb 0x40593e
mov ecx, dword [ebp - 0x618]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b80
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edx, dword [ebp - 0x61c]
xor eax, eax
mov dword [ebp - 0x608], 0
mov dword [ebp - 0x604], 7
mov word [ebp - 0x618], ax
cmp edx, 8
jb 0x40599b
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405991
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b85
push edx
push ecx
call fcn.0040f81e
add esp, 8
mov edx, dword [ebp - 0x5ec]
xor eax, eax
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x61c], 7
mov word [ebp - 0x630], ax
cmp edx, 8
jb 0x4059f8
mov ecx, dword [ebp - 0x600]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8a
push edx
push ecx
call fcn.0040f81e
add esp, 8
xor eax, eax
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.0040f2ed
mov esp, ebp
pop ebp
ret 0x10
push str.Unable_to_determine_the_operating_system_version_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7f0]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x7f0]
push eax
call fcn.00410c7a
push str.Unable_to_open_process_token_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7e0]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x7e0]
push eax
call fcn.00410c7a
push str.Unable_to_retrieve_process_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7d0]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x7d0]
push eax
call fcn.00410c7a
push str.Unable_to_verify_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7c0]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x7c0]
push eax
call fcn.00410c7a
call fcn.00412f88
call fcn.00412f88
call fcn.00405e70
call fcn.00412f88
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7b0]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x7b0]
push eax
call fcn.00410c7a
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7a0]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x7a0]
push eax
call fcn.00410c7a
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
push str.Unable_to_determine_the_operating_system_version_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x790]
call fcn.00406250
push 0x42a6f8
lea eax, [ebp - 0x790]
push eax
call fcn.00410c7a
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
call fcn.00412f88
int3