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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x5925f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa40], ecx
mov word [ebp - 0x828], 0
push 0x206
push 0
lea eax, [ebp - 0x826]
push eax
call fcn.004caa30
add esp, 0xc
mov word [ebp - 0x620], 0
push 0x206
push 0
lea ecx, [ebp - 0x61e]
push ecx
call fcn.004caa30
add esp, 0xc
push 0
push 0x2b
lea edx, [ebp - 0x828]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x54b868
lea eax, [ebp - 0x828]
push eax
call fcn.004ca9e6
add esp, 8
push 0x54b86c
lea ecx, [ebp - 0x828]
push ecx
call fcn.004ca9e6
add esp, 8
push 0x54b87c
lea edx, [ebp - 0x828]
push edx
call fcn.004ca9e6
add esp, 8
push 0x54b880
lea eax, [ebp - 0x828]
push eax
call fcn.004ca9e6
add esp, 8
push 0x54b88c
lea ecx, [ebp - 0x828]
push ecx
call fcn.004ca9e6
add esp, 8
lea edx, [ebp - 0x828]
push edx
push 0x104
lea eax, [ebp - 0x620]
push eax
push 0x54b898
push 0x54b89c
push 0x54b8b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x620]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429e5b
lea edx, [ebp - 0x620]
push edx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x38
call fcn.004032b0
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x18], 1
jmp 0x42a01a
mov word [ebp - 0xa38], 0
push 0x206
push 0
lea ecx, [ebp - 0xa36]
push ecx
call fcn.004caa30
add esp, 0xc
push 0x54b8c4
lea edx, [ebp - 0xa38]
push edx
call fcn.004caa10
add esp, 8
push 0x54b8d8
lea eax, [ebp - 0xa38]
push eax
call fcn.004ca9e6
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0xa38]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x429f47
mov dword [ebp - 0xa3c], 0x104
lea eax, [ebp - 0xa3c]
push eax
lea ecx, [ebp - 0x620]
push ecx
push 0
push 0
push 0x54b8e8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x429f47
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429f47
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x620]
push edx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x38
call fcn.004032b0
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x18], 1
jmp 0x42a01a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.0040ae20
add esp, 8
mov word [eax + 2], 0
mov word [ebp - 0x418], 0
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.004caa30
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x54b900
lea eax, [ebp - 0x418]
push eax
call fcn.004cb62b
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0x54b91c
push 0x54b920
push 0x54b938
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a010
lea ecx, [ebp - 0x620]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x38
call fcn.004032b0
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x18], 1
jmp 0x42a01a
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x18], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ca9d7
mov esp, ebp
pop ebp
ret