Function at 0x4386c0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cc0c
mov eax, dword fs:[0]
push eax
mov eax, 0x4178
call fcn.004274e0
mov eax, dword [0x44b19c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4150], ecx
push str.registry_key_exists
mov eax, dword [ebp - 0x4150]
push eax
call fcn.004061c0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x43872f
push 0x4427e8
mov edx, dword [ebp - 0x4150]
push edx
call fcn.004061c0
add esp, 8
movzx eax, al
test eax, eax
je 0x438887
mov ecx, dword [ebp - 0x4150]
add ecx, 0x1c
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x40dc], esp
push ecx
mov ecx, edx
call fcn.00401fa0
mov dword [ebp - 0x4154], eax
mov ecx, dword [ebp - 0x4150]
call fcn.00438390
mov dword [ebp - 0x4158], eax
mov eax, dword [ebp - 0x4158]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x4150]
add ecx, 0x1c
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x40e0], esp
push ecx
mov ecx, edx
call fcn.00401fa0
mov dword [ebp - 0x415c], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x4150]
call fcn.00438490
mov dword [ebp - 0x4160], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00438280
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x50]
call fcn.00402020
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x54], eax
push str.registry_key_not_exists
mov edx, dword [ebp - 0x4150]
push edx
call fcn.004061c0
add esp, 8
movzx eax, al
test eax, eax
je 0x438837
xor ecx, ecx
cmp dword [ebp - 0x54], 0
setne cl
mov byte [ebp - 0x40e1], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401fe0
mov al, byte [ebp - 0x40e1]
jmp 0x438d02
xor edx, edx
cmp dword [ebp - 0x54], 0
sete dl
mov byte [ebp - 0x40e2], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401fe0
mov al, byte [ebp - 0x40e2]
jmp 0x438d02
push 0x442818
mov eax, dword [ebp - 0x4150]
push eax
call fcn.004061c0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4388c1
push str.file_not_exists
mov edx, dword [ebp - 0x4150]
push edx
call fcn.004061c0
add esp, 8
movzx eax, al
test eax, eax
je 0x43896b
mov ecx, dword [ebp - 0x4150]
add ecx, 0x1c
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00438280
add esp, 8
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00402020
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43895c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43895c
push str.file_exists
mov eax, dword [ebp - 0x4150]
push eax
call fcn.004061c0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43893b
mov byte [ebp - 0x40e3], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401480
mov al, byte [ebp - 0x40e3]
jmp 0x438d02
mov byte [ebp - 0x40e4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401480
mov al, byte [ebp - 0x40e4]
jmp 0x438d02
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401480
push 0x442840
mov edx, dword [ebp - 0x4150]
push edx
call fcn.004061c0
add esp, 8
movzx eax, al
test eax, eax
jne 0x4389a5
push str.registry_value_not_equals
mov ecx, dword [ebp - 0x4150]
push ecx
call fcn.004061c0
add esp, 8
movzx edx, al
test edx, edx
je 0x438d00
mov eax, dword [ebp - 0x4150]
add eax, 0x1c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40e8], esp
push eax
call fcn.00401fa0
mov dword [ebp - 0x4164], eax
mov ecx, dword [ebp - 0x4150]
call fcn.00438390
mov dword [ebp - 0x4168], eax
mov ecx, dword [ebp - 0x4168]
mov dword [ebp - 0x4098], ecx
mov edx, dword [ebp - 0x4150]
add edx, 0x1c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40ec], esp
push edx
call fcn.00401fa0
mov dword [ebp - 0x416c], eax
lea eax, [ebp - 0x4094]
push eax
mov ecx, dword [ebp - 0x4150]
call fcn.00438490
mov dword [ebp - 0x4170], eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x4094]
push ecx
lea edx, [ebp - 0x40d4]
push edx
call fcn.00438280
add esp, 8
mov byte [ebp - 4], 4
mov dword [ebp - 0x40b8], 0x2000
lea eax, [ebp - 0x4078]
push eax
push 1
push 0
lea ecx, [ebp - 0x40d4]
call fcn.00402020
push eax
mov ecx, dword [ebp - 0x4098]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x40d8], eax
cmp dword [ebp - 0x40d8], 0
je 0x438ac5
push 0x442874
mov edx, dword [ebp - 0x4150]
push edx
call fcn.004061e0
add esp, 8
mov byte [ebp - 0x40ed], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40d4]
call fcn.00401480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4094]
call fcn.00401fe0
mov al, byte [ebp - 0x40ed]
jmp 0x438d02
mov eax, dword [ebp - 0x4150]
add eax, 0x38
push eax
lea ecx, [ebp - 0x410c]
push ecx
call fcn.00438280
add esp, 8
mov dword [ebp - 0x4174], eax
lea edx, [ebp - 0x40b8]
push edx
lea eax, [ebp - 0x4074]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x4174]
call fcn.00402020
push eax
mov ecx, dword [ebp - 0x4078]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x40d8], eax
lea ecx, [ebp - 0x410c]
call fcn.00401480
cmp dword [ebp - 0x40d8], 0
je 0x438b6f
push 0x44288c
mov edx, dword [ebp - 0x4150]
push edx
call fcn.004061e0
add esp, 8
mov byte [ebp - 0x410d], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40d4]
call fcn.00401480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4094]
call fcn.00401fe0
mov al, byte [ebp - 0x410d]
jmp 0x438d02
lea eax, [ebp - 0x4074]
push eax
lea ecx, [ebp - 0x40b4]
call fcn.00401440
mov byte [ebp - 4], 5
push str.registry_value_equals
mov ecx, dword [ebp - 0x4150]
push ecx
call fcn.004061c0
add esp, 8
movzx edx, al
test edx, edx
je 0x438c3e
mov eax, dword [ebp - 0x4150]
add eax, 0x54
push eax
lea ecx, [ebp - 0x412c]
push ecx
call fcn.00438280
add esp, 8
mov dword [ebp - 0x4178], eax
mov edx, dword [ebp - 0x4178]
mov dword [ebp - 0x417c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x417c]
push eax
lea ecx, [ebp - 0x40b4]
push ecx
call fcn.00406200
add esp, 8
mov byte [ebp - 0x410e], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x412c]
call fcn.00401480
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40b4]
call fcn.00401480
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40d4]
call fcn.00401480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4094]
call fcn.00401fe0
mov al, byte [ebp - 0x410e]
jmp 0x438d02
mov edx, dword [ebp - 0x4150]
add edx, 0x54
push edx
lea eax, [ebp - 0x414c]
push eax
call fcn.00438280
add esp, 8
mov dword [ebp - 0x4180], eax
mov ecx, dword [ebp - 0x4180]
mov dword [ebp - 0x4184], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x4184]
push edx
lea eax, [ebp - 0x40b4]
push eax
call fcn.00406220
add esp, 8
mov byte [ebp - 0x412d], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x414c]
call fcn.00401480
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40b4]
call fcn.00401480
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40d4]
call fcn.00401480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4094]
call fcn.00401fe0
mov al, byte [ebp - 0x412d]
jmp 0x438d02
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042021d
mov esp, ebp
pop ebp
ret