Function at 0x409530
Capabilities:
Check if file exists
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6266aa
mov eax, dword fs:[0]
push eax
sub esp, 0xd00
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcec], ecx
push 0
push 0x63ab78
mov ecx, dword [ebp - 0xcec]
add ecx, 0x4c8
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x409655
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc88], esp
push 0x63ab7c
call fcn.0040e4b0
mov dword [ebp - 0xcf0], eax
lea eax, [ebp - 0xc80]
push eax
mov ecx, dword [ebp - 0xcec]
call fcn.0040d3e0
mov dword [ebp - 0xcf4], eax
mov dword [ebp - 4], 0
push 0
push 0x63ab84
lea ecx, [ebp - 0xc80]
call fcn.0040e5f0
mov dword [ebp - 0xc84], eax
mov ecx, dword [ebp - 0xc84]
cmp ecx, dword [0x63f3a0]
jne 0x40962b
mov ecx, dword [ebp - 0xcec]
add ecx, 0x4c8
call fcn.0040e5d0
push eax
push 0x63ab88
call fcn.004560b0
add esp, 8
mov dword [ebp - 0xc8c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc80]
call fcn.0040e530
mov eax, dword [ebp - 0xc8c]
jmp 0x409da5
lea edx, [ebp - 0xc80]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x4c8
call fcn.0040e550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc80]
call fcn.0040e530
mov ecx, dword [ebp - 0xcec]
add ecx, 0x4c8
call fcn.0040e5d0
push eax
push str.ServerDat__s_
call fcn.004560b0
add esp, 8
xor eax, eax
mov word [ebp - 0x64c], ax
push 0x206
push 0
lea ecx, [ebp - 0x64a]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x23c], dx
push 0x206
push 0
lea eax, [ebp - 0x23a]
push eax
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
push 0x104
lea ecx, [ebp - 0x64c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x64c]
push eax
call fcn.00438780
add esp, 8
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x220
call fcn.0040e570
push 0x5c
lea edx, [ebp - 0x64c]
push edx
call fcn.0040e2a0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea edx, [ebp - 0x64c]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x258
call fcn.0040e570
lea eax, [ebp - 0x64c]
push eax
mov ecx, dword [ebp - 0xcec]
add ecx, 0x474
call fcn.0040e570
push str.PDLink.exe
mov ecx, dword [ebp - 0xcec]
add ecx, 0x474
call fcn.0040e5b0
lea ecx, [ebp - 0x64c]
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x490
call fcn.0040e570
push str.ConfigOther_
mov ecx, dword [ebp - 0xcec]
add ecx, 0x490
call fcn.0040e5b0
mov ecx, dword [ebp - 0xcec]
call fcn.0040d820
test eax, eax
jne 0x4097a3
xor eax, eax
jmp 0x409da5
push 4
lea edx, [ebp - 0xca8]
push edx
mov ecx, dword [ebp - 0xcec]
call fcn.0040c7b0
mov dword [ebp - 0xcf8], eax
mov eax, dword [ebp - 0xcf8]
mov dword [ebp - 0xcfc], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xcfc]
call fcn.0040e5d0
push eax
push 0
lea ecx, [ebp - 0xcc4]
push ecx
mov ecx, dword [ebp - 0xcec]
call fcn.0040c7b0
mov dword [ebp - 0xd00], eax
mov edx, dword [ebp - 0xd00]
mov dword [ebp - 0xd04], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xd04]
call fcn.0040e5d0
push eax
push 0x63abfc
call fcn.004560b0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc4]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xca8]
call fcn.0040e530
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e4b0
mov dword [ebp - 4], 3
push 2
lea ecx, [ebp - 0xce0]
push ecx
mov ecx, dword [ebp - 0xcec]
call fcn.0040c7b0
mov dword [ebp - 0xd08], eax
mov edx, dword [ebp - 0xd08]
mov dword [ebp - 0xd0c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xd0c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xce0]
call fcn.0040e530
xor ecx, ecx
mov word [ebp - 0xc64], cx
push 0x206
push 0
lea edx, [ebp - 0xc62]
push edx
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x104
lea eax, [ebp - 0xc64]
push eax
push 0x63ac20
push 0x63ac24
push 0x63ac3c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xc64]
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x40
call fcn.0040e570
lea edx, [ebp - 0xc64]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x104
call fcn.0040e570
push str.ConfigUseVestige.ini
mov ecx, dword [ebp - 0xcec]
add ecx, 0x104
call fcn.0040e5b0
lea eax, [ebp - 0xc64]
push eax
mov ecx, dword [ebp - 0xcec]
add ecx, 0x120
call fcn.0040e570
push str.ConfigConfig.ini
mov ecx, dword [ebp - 0xcec]
add ecx, 0x120
call fcn.0040e5b0
lea ecx, [ebp - 0xc64]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409998
push 0x5c
lea edx, [ebp - 0xc64]
push edx
call fcn.0040e2a0
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 0x5c
lea edx, [ebp - 0xc64]
push edx
call fcn.0040e2a0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x4099f8
push 0x104
lea edx, [ebp - 0xc64]
push edx
push 0x63ac9c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.AppDataLocalLow_
lea eax, [ebp - 0xc64]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0xc64]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4099f8
mov dword [ebp - 0xce4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov eax, dword [ebp - 0xce4]
jmp 0x409da5
lea edx, [ebp - 0xc64]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x2e4
call fcn.0040e570
push str.BubblesPopCheckToTips.ini
mov ecx, dword [ebp - 0xcec]
add ecx, 0x2e4
call fcn.0040e5b0
lea eax, [ebp - 0xc64]
push eax
mov ecx, dword [ebp - 0xcec]
add ecx, 0x31c
call fcn.0040e570
lea ecx, [ebp - 0xc64]
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x300
call fcn.0040e570
lea edx, [ebp - 0xc64]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x2c8
call fcn.0040e570
lea eax, [ebp - 0xc64]
push eax
mov ecx, dword [ebp - 0xcec]
add ecx, 0x2ac
call fcn.0040e570
push str.CtPath_
mov ecx, dword [ebp - 0xcec]
add ecx, 0x2ac
call fcn.0040e5b0
push str.CloverConfigUseVestige.ini
mov ecx, dword [ebp - 0xcec]
add ecx, 0x300
call fcn.0040e5b0
push str.WindowPop_
lea ecx, [ebp - 0xc64]
push ecx
call fcn.005b4d90
add esp, 8
lea edx, [ebp - 0xc64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409ae6
lea eax, [ebp - 0xc64]
push eax
call fcn.00432f80
add esp, 4
push str.MiNiNews_
mov ecx, dword [ebp - 0xcec]
add ecx, 0x31c
call fcn.0040e5b0
mov ecx, dword [ebp - 0xcec]
add ecx, 0x31c
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409b32
mov ecx, dword [ebp - 0xcec]
add ecx, 0x31c
call fcn.0040e5d0
push eax
call fcn.00432f80
add esp, 4
push 0x63ad8c
mov ecx, dword [ebp - 0xcec]
add ecx, 0x31c
call fcn.0040e5b0
lea ecx, [ebp - 0xc64]
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x290
call fcn.0040e570
push 0x63ada4
lea edx, [ebp - 0xc64]
push edx
call fcn.005b4d90
add esp, 8
lea eax, [ebp - 0xc64]
push eax
mov ecx, dword [ebp - 0xcec]
add ecx, 0x23c
call fcn.0040e570
mov ecx, dword [ebp - 0xcec]
add ecx, 0x290
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x274
call fcn.0040e550
push 0x63adbc
mov ecx, dword [ebp - 0xcec]
add ecx, 0x274
call fcn.0040e5b0
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push str.Soft_Ini_Path__s
call fcn.004560b0
add esp, 8
mov ecx, dword [ebp - 0xcec]
add ecx, 0x290
call fcn.0040e5d0
push eax
push str.Config_Ini_Path__s
call fcn.004560b0
add esp, 8
mov ecx, dword [ebp - 0xcec]
add ecx, 0x104
call fcn.0040e5d0
push eax
push str.UseVestigeFile_Ini_Path__s
call fcn.004560b0
add esp, 8
xor edx, edx
mov word [ebp - 0xa5c], dx
push 0x206
push 0
lea eax, [ebp - 0xa5a]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x104
lea ecx, [ebp - 0xa5c]
push ecx
push 0x63ae48
push str.Spreader
push 0x63ae64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0xa5c]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x338
call fcn.0040e570
xor eax, eax
mov word [ebp - 0x444], ax
push 0x206
push 0
lea ecx, [ebp - 0x442]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x854], dx
push 0x206
push 0
lea eax, [ebp - 0x852]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push 0x63ae74
push 0x63ae7c
push 0x63ae84
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x104
lea edx, [ebp - 0x854]
push edx
push 0x63ae98
push str.MinVer
push str.AppUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0xcec]
add ecx, 0x354
call fcn.0040e570
push 0x63aec4
mov ecx, dword [ebp - 0xcec]
add ecx, 0x354
call fcn.0040e5b0
lea ecx, [ebp - 0x854]
push ecx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x354
call fcn.0040e5b0
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0xcec]
add ecx, 0x4ac
call fcn.0040e550
call fcn.00412530
mov ecx, eax
call fcn.0040c3e0
test eax, eax
je 0x409d86
push 0x63aec8
mov eax, dword [ebp - 0xcec]
push eax
call fcn.0040d040
add esp, 8
mov dword [ebp - 0xce8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov eax, dword [ebp - 0xce8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret