Function at 0x43c920
Capabilities:
Check if file exists
Create directory
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], ecx
push 0x208
mov eax, dword [ebp - 0x424]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
mov edx, dword [ebp - 0x424]
add edx, 0x208
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x424]
add ecx, 0x208
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x218], 0x208
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x424]
add eax, 0x410
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x4bcbf4
push 0x4bcc00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x43ca0b
mov edx, dword [ebp - 0x424]
add edx, 0x208
push edx
push 0x208
mov eax, dword [ebp - 0x424]
add eax, 0x410
push eax
call fcn.00402030
push 0x4bcc80
mov ecx, dword [ebp - 0x424]
add ecx, 0x410
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dx, word [0x4bcc88]
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00497550
add esp, 0xc
push str.dpath.ini
mov ecx, dword [ebp - 0x424]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x424]
push edx
push str.datapath
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43ca96
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43cab5
lea edx, [ebp - 0x210]
push edx
push 0x208
mov eax, dword [ebp - 0x424]
add eax, 0x618
push eax
call fcn.00402030
jmp 0x43cad3
mov ecx, dword [ebp - 0x424]
push ecx
push 0x208
mov edx, dword [ebp - 0x424]
add edx, 0x618
push edx
call fcn.00402030
push 0
push 0x25
mov eax, dword [ebp - 0x424]
add eax, 0x820
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.drivers
mov ecx, dword [ebp - 0x424]
add ecx, 0x820
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
push 0
mov edx, dword [ebp - 0x424]
add edx, 0xa28
push edx
call fcn.00497550
add esp, 0xc
push 0x208
push 0
mov eax, dword [ebp - 0x424]
add eax, 0xc30
push eax
call fcn.00497550
add esp, 0xc
mov ecx, dword [ebp - 0x424]
mov dword [ecx + 0x1248], 1
push 0x104
mov edx, dword [ebp - 0x424]
add edx, 0xc30
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [ebp - 0x424]
call fcn.0043cbe0
test eax, eax
je 0x43cb81
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x1248], 0
push 0x104
mov ecx, dword [ebp - 0x424]
add ecx, 0xa28
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [ebp - 0x424]
cmp dword [edx + 0x124c], 0
jne 0x43cbcb
push str.Wow64EnableWow64FsRedirection
push 0x4bccf0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x424]
mov dword [ecx + 0x124c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret 4