Function at 0x40b1f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42a781
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x437368]
xor eax, esp
mov dword [esp + 0x34c], eax
push ebx
push ebp
push esi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov ebp, 7
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebp
push 0x42f74c
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00401560
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x42f820
push 0x80000002
mov dword [esp + 0x37c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b2b2
push 0xffffffffffffffff
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
push ebx
mov eax, esi
mov ecx, edi
mov word [edi + 4], bx
call fcn.00401600
cmp dword [esp + 0x50], 8
jb 0x40b4d7
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00414041
add esp, 4
jmp 0x40b4d7
push 0x100
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.0041a130
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x42f86c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x40b329
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x16
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
push 0x42f87c
mov esi, edi
mov word [edi + 4], bx
call fcn.00401560
cmp dword [esp + 0x50], 8
jb 0x40b4d7
mov edx, dword [esp + 0x3c]
push edx
call fcn.00414041
add esp, 4
jmp 0x40b4d7
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
cmp byte [esp + 0x54], bl
jne 0x40b34d
mov edx, 0x42f74c
mov eax, edi
call fcn.00401520
jmp 0x40b295
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b354
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x40]
call fcn.00401560
cmp byte [esp + 0x54], 0x37
jne 0x40b44b
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x42f8b0
push 0x80000002
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b3e8
push 0x100
lea ecx, [esp + 0x158]
push ebx
push ecx
call fcn.0041a130
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x42f934
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x40b3f8
mov eax, dword [esp + 0x10]
push eax
call ebp
lea edx, [esp + 0x54]
mov eax, edi
call fcn.00401520
jmp 0x40b4ce
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x154]
push edx
lea ecx, [esp + 0x20]
call fcn.0040ae60
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x370], 1
call fcn.00401600
lea esi, [esp + 0x1c]
mov byte [esp + 0x368], bl
call fcn.004012e0
lea ecx, [esp + 0x38]
call fcn.0040ba20
test al, al
jne 0x40b3e8
lea eax, [esp + 0x38]
push eax
jmp 0x40b4c7
push 0x104
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40b3e8
push 0x42f940
lea edx, [esp + 0x158]
push 0x104
push edx
call fcn.0041446b
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ae60
add esp, 0x10
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x370], 2
call fcn.00401600
lea esi, [esp + 0x1c]
mov byte [esp + 0x368], bl
call fcn.004012e0
lea ecx, [esp + 0x38]
call fcn.0040ba20
test al, al
jne 0x40b3e8
lea ecx, [esp + 0x38]
push ecx
mov esi, edi
call fcn.00405b50
lea esi, [esp + 0x38]
call fcn.004012e0
mov eax, edi
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00414002
add esp, 0x35c
ret