Function at 0x405590
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5912c1
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.0056f4b0
mov eax, dword [0x5fcffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10bc], esi
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x4064f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x106c], eax
mov dword [ebp - 4], 0
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x406503
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1068], eax
mov byte [ebp - 4], 1
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x40650d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1064], eax
mov byte [ebp - 4], 2
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x406517
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x107c], eax
mov byte [ebp - 4], 3
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x406521
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1078], eax
mov byte [ebp - 4], 4
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x40652b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1074], eax
push 0
mov byte [ebp - 4], 5
call fcn.005752c4
add esp, 4
mov dword [ebp - 0x1084], eax
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x1080], edx
lea ecx, [ebp - 0x1084]
push 0x5d8fc8
push eax
call fcn.00422b40
push eax
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 6
call fcn.00422d00
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1058]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4056f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5d8fd0
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1084]
call fcn.00422b40
push eax
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 7
call fcn.00422d00
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40573c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5daa50
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1084]
call fcn.00422b40
push eax
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 8
call fcn.00422d00
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5d8fd8
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1084]
call fcn.00422b40
push eax
lea ecx, [ebp - 0x107c]
mov byte [ebp - 4], 9
call fcn.00422d00
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4057cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5d8fe0
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1084]
call fcn.00422b40
push eax
lea ecx, [ebp - 0x1078]
mov byte [ebp - 4], 0xa
call fcn.00422d00
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405814
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5d8fe8
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1084]
call fcn.00422b40
push eax
lea ecx, [ebp - 0x1074]
mov byte [ebp - 4], 0xb
call fcn.00422d00
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40585c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x105c]
push eax
call fcn.00420cc0
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 0xc
push ecx
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.00420cc0
add esp, 0x18
push eax
lea ecx, [esi + 0x304]
mov byte [ebp - 4], 0xd
call fcn.00422d00
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4058c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x105c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4058e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5d8ff0
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00422a00
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0xe
push ecx
push eax
lea eax, [ebp - 0x1070]
push eax
call fcn.00420cc0
push 0x5d8ff0
push eax
lea eax, [ebp - 0x10c0]
mov byte [ebp - 4], 0xf
push eax
call fcn.00422a00
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea eax, [ebp - 0x10cc]
push eax
call fcn.00420cc0
push 0x5d8ff0
push eax
lea eax, [ebp - 0x10c8]
mov byte [ebp - 4], 0x11
push eax
call fcn.00422a00
lea ecx, [ebp - 0x107c]
mov byte [ebp - 4], 0x12
push ecx
push eax
lea eax, [ebp - 0x10c4]
push eax
call fcn.00420cc0
add esp, 0x48
push 0x5d8ff0
push eax
lea eax, [ebp - 0x1060]
mov byte [ebp - 4], 0x13
push eax
call fcn.00422a00
lea ecx, [ebp - 0x1078]
mov byte [ebp - 4], 0x14
push ecx
push eax
lea eax, [ebp - 0x10b8]
push eax
call fcn.00420cc0
push 0x5d8ff0
push eax
lea eax, [ebp - 0x105c]
mov byte [ebp - 4], 0x15
push eax
call fcn.00422a00
lea ecx, [ebp - 0x1074]
mov byte [ebp - 4], 0x16
push ecx
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.00420cc0
add esp, 0x30
push eax
lea ecx, [esi + 0x308]
mov byte [ebp - 4], 0x17
call fcn.00422d00
mov byte [ebp - 4], 0x16
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp - 0x105c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x10b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x1060]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x10c4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x10c8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405aa7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x10cc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405ac8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp - 0x10c0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405ae9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x1070]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1054]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call fcn.005752c4
mov dword [ebp - 0x1090], eax
lea eax, [ebp - 0x1090]
push eax
lea eax, [ebp - 0x10b4]
mov dword [ebp - 0x108c], edx
push eax
call fcn.0057682f
xor ecx, ecx
test eax, eax
lea eax, [esi + 0x358]
cmove ecx, dword [ebp - 0x10a8]
push ecx
push 0x5daa50
push eax
call fcn.00402d70
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005711a0
add esp, 0x24
call fcn.0043b086
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x406535
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1060], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x1060]
call fcn.00402a50
test al, al
jne 0x405c02
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405be0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1060]
call fcn.00403260
mov byte [ebp - 4], 0x19
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x40653f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1058], eax
mov byte [ebp - 4], 0x1a
mov edi, dword [ebp - 0x1060]
push 0x5c
push edi
call fcn.00570840
add esp, 8
test eax, eax
jne 0x405c41
or eax, 0xffffffff
jmp 0x405c45
sub eax, edi
sar eax, 1
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov dword [ebp - 0x1054], ecx
cmp ecx, dword [edi - 0xc]
jl 0x405c6b
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x10b8]
call fcn.00422ec0
jmp 0x405c9a
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x405c7b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x405c87
call fcn.004255be
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [ebp - 0x1054]
lea ecx, [ebp - 0x10b8]
push edi
call fcn.00422430
lea eax, [ebp - 0x10b8]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x1058]
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x10b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405cd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1058]
push ecx
lea ecx, [esi + 0x338]
call fcn.00422d00
mov eax, dword [esi + 0x338]
push 0x5c
push eax
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1054], ecx
call fcn.00570840
add esp, 8
test eax, eax
jne 0x405d06
or eax, 0xffffffff
jmp 0x405d0e
sub eax, dword [esi + 0x338]
sar eax, 1
mov ecx, dword [ebp - 0x1054]
mov edx, dword [esi + 0x338]
sub ecx, eax
mov edx, dword [edx - 0xc]
lea eax, [ecx - 1]
xor ecx, ecx
mov dword [ebp - 0x10c0], edx
test eax, eax
cmovns ecx, eax
lea eax, [esi + 0x338]
mov dword [ebp - 0x1070], ecx
cmp ecx, edx
jl 0x405d4d
push eax
lea ecx, [ebp - 0x10b8]
call fcn.00422ec0
jmp 0x405d90
mov ecx, dword [eax]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x405d5f
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x405d6b
call fcn.004255be
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x10c0]
push eax
mov eax, dword [ebp - 0x1070]
sub ecx, eax
push eax
mov eax, dword [esi + 0x338]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x10b8]
call fcn.00422430
lea eax, [ebp - 0x10b8]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [esi + 0x33c]
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x10b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405dc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.005711a0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0
push 0x1a
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x628]
lea eax, [edx + 2]
lea ecx, [esi + 0x340]
mov dword [ebp - 0x1054], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405e06
sub edx, dword [ebp - 0x1054]
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.00403260
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.005711a0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0
push 0x24
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x830]
lea eax, [edx + 2]
lea ecx, [esi + 0x344]
mov dword [ebp - 0x1054], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405e65
sub edx, dword [ebp - 0x1054]
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.00403260
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.005711a0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0xa38]
lea eax, [edx + 2]
lea ecx, [esi + 0x348]
mov dword [ebp - 0x1054], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405ec3
sub edx, dword [ebp - 0x1054]
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.00403260
push 0
push 0x23
lea eax, [ebp - 0xc40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xc40]
lea eax, [ecx + 2]
mov dword [ebp - 0x1054], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f06
sub ecx, dword [ebp - 0x1054]
lea eax, [ebp - 0xc40]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x34c]
call fcn.00403260
push 0x5d8ff4
lea eax, [esi + 0x34c]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00422a00
add esp, 0xc
push eax
lea ecx, [esi + 0x34c]
mov byte [ebp - 4], 0x1d
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x1054]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405f78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x23
lea eax, [ebp - 0xe48]
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xe48]
lea eax, [ecx + 2]
mov dword [ebp - 0x1054], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405fa0
sub ecx, dword [ebp - 0x1054]
lea eax, [ebp - 0xe48]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x350]
call fcn.00403260
push str.StorageServiceManager
lea eax, [esi + 0x350]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00422a00
add esp, 0xc
push eax
lea ecx, [esi + 0x350]
mov byte [ebp - 4], 0x1e
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x1054]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406012
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x1a
lea eax, [ebp - 0x1050]
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x1050]
lea eax, [ecx + 2]
mov dword [ebp - 0x1054], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406035
sub ecx, dword [ebp - 0x1054]
lea eax, [ebp - 0x1050]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x354]
call fcn.00403260
push str.Microsoft
lea eax, [esi + 0x354]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00422a00
add esp, 0xc
push eax
lea ecx, [esi + 0x354]
mov byte [ebp - 4], 0x1f
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x1054]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4060a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x35c]
mov ecx, 1
mov dword [ebp - 0x1088], 0x80
mov dword [ebp - 0x1054], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
add eax, 0xffffff80
or eax, ecx
jge 0x4060e7
push 0x80
lea ecx, [esi + 0x35c]
call fcn.00403120
mov eax, dword [esi + 0x35c]
jmp 0x4060ed
mov eax, dword [ebp - 0x1054]
lea ecx, [ebp - 0x1088]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
jne 0x406142
mov eax, dword [esi + 0x35c]
test eax, eax
jne 0x40610e
xor ecx, ecx
jmp 0x406124
push dword [eax - 8]
push eax
call fcn.00576962
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x406553
mov eax, dword [esi + 0x35c]
cmp ecx, dword [eax - 8]
jg 0x406553
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 0x35c]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x1054]
mov ecx, esi
push eax
call fcn.00406560
push eax
lea ecx, [esi + 0x360]
mov byte [ebp - 4], 0x20
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x1054]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406181
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1054]
push eax
call fcn.00408740
push eax
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 0x21
call fcn.00422d00
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x1054]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4061be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005711a0
add esp, 0xc
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x10b8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406252
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1054], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.ProductName
push dword [ebp - 0x10b8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406246
push 0x5d8d04
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x406549
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x105c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x22
push eax
lea ecx, [ebp - 0x105c]
call fcn.00402a50
test al, al
jne 0x4062b4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406292
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x105c]
call fcn.00403260
mov byte [ebp - 4], 0x23
mov esi, dword [ebp - 0x105c]
cmp dword [esi - 0xc], 0
jl 0x40636a
push 0x5d8fc0
push esi
call fcn.005708e4
add esp, 8
test eax, eax
je 0x4062fb
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x4062fb
mov ecx, dword [ebp - 0x10bc]
push 2
push 0x5d8fc0
lea ecx, [ecx + 0x368]
jmp 0x4063ba
cmp dword [esi - 0xc], 0
jl 0x40636a
push 0x5d90cc
push esi
call fcn.005708e4
add esp, 8
test eax, eax
je 0x406334
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x406334
mov ecx, dword [ebp - 0x10bc]
push 1
push 0x5d90cc
lea ecx, [ecx + 0x368]
jmp 0x4063ba
cmp dword [esi - 0xc], 0
jl 0x40636a
push 0x5d90d0
push esi
call fcn.005708e4
add esp, 8
test eax, eax
je 0x40636a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x40636a
mov ecx, dword [ebp - 0x10bc]
push 1
push 0x5d90d0
lea ecx, [ecx + 0x368]
jmp 0x4063ba
mov eax, dword [ebp - 0x10bc]
add eax, 0x368
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x10bc], eax
jl 0x4063b1
push 0x5d90d4
push esi
call fcn.005708e4
add esp, 8
test eax, eax
je 0x4063ab
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x4063ab
mov ecx, dword [ebp - 0x10bc]
push 2
push 0x5d90d4
jmp 0x4063ba
mov eax, dword [ebp - 0x10bc]
push 7
push str.Unknown
mov ecx, eax
call fcn.00403260
mov byte [ebp - 4], 0x1a
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4063da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, ebx
mov edx, dword [ebp - 0x1058]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4063fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x406416
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1074]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406437
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x1078]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406458
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x107c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406479
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1064]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40649a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1068]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4064bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x106c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4064dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb08
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
push 0x80070057
call fcn.004033d0
int3