Function at 0x446400
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 [0x580280]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa40], ecx
xor eax, eax
mov word [ebp - 0x620], ax
push 0x206
push 0
lea ecx, [ebp - 0x61e]
push ecx
call fcn.00486c20
add esp, 0xc
xor edx, edx
mov word [ebp - 0xa38], dx
push 0x206
push 0
lea eax, [ebp - 0xa36]
push eax
call fcn.00486c20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x418], cx
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.00486c20
add esp, 0xc
push 0x551670
mov ecx, dword [ebp - 0xa40]
add ecx, 0x90
call fcn.004012c0
push eax
push 0x551698
lea eax, [ebp - 0x418]
push eax
call fcn.00487ebf
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0xa38]
push edx
push 0x5516a4
push 0x5516a8
push 0x5516c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4464fe
lea ecx, [ebp - 0xa38]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x20
call fcn.0040ce50
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x1d], 1
jmp 0x446777
push 0
push 0x2b
lea eax, [ebp - 0x620]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5516d0
lea ecx, [ebp - 0x620]
push ecx
call fcn.00486ab7
add esp, 8
push 0x5516d4
lea edx, [ebp - 0x620]
push edx
call fcn.00486ab7
add esp, 8
push 0x5516f4
lea eax, [ebp - 0x620]
push eax
call fcn.00486ab7
add esp, 8
push 0x5516f8
lea ecx, [ebp - 0x620]
push ecx
call fcn.00486ab7
add esp, 8
push 0x551718
lea edx, [ebp - 0x620]
push edx
call fcn.00486ab7
add esp, 8
lea eax, [ebp - 0x620]
push eax
push 0x104
lea ecx, [ebp - 0xa38]
push ecx
push 0x551724
push 0x551728
push 0x551740
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4465d2
lea eax, [ebp - 0xa38]
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x20
call fcn.0040ce50
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x1d], 1
jmp 0x446777
xor edx, edx
mov word [ebp - 0x830], dx
push 0x206
push 0
lea eax, [ebp - 0x82e]
push eax
call fcn.00486c20
add esp, 0xc
push 0x551750
lea ecx, [ebp - 0x830]
push ecx
call fcn.00486ae5
add esp, 8
push 0x551764
lea edx, [ebp - 0x830]
push edx
call fcn.00486ab7
add esp, 8
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x830]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x4466be
mov dword [ebp - 0xa3c], 0x104
lea edx, [ebp - 0xa3c]
push edx
lea eax, [ebp - 0xa38]
push eax
push 0
push 0
push 0x551784
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x4466be
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4466be
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xa38]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x20
call fcn.0040ce50
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x1d], 1
jmp 0x446777
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.004127c0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
push 0x55179c
lea edx, [ebp - 0x210]
push edx
push 0x5517c4
lea eax, [ebp - 0x418]
push eax
call fcn.00487ebf
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0xa38]
push edx
push 0x5517d0
push 0x5517d4
push 0x5517ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44676d
lea ecx, [ebp - 0xa38]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x20
call fcn.0040ce50
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x1d], 1
jmp 0x446777
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x1d], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret