Function at 0x408200
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov dword [ebp - 0x414], 0
push 0x28
push 0
push 0x4123a0
call fcn.0040a430
add esp, 0xc
push 0x28
push 0
push 0x4122e0
call fcn.0040a430
add esp, 0xc
push 0x28
push 0
push 0x412320
call fcn.0040a430
add esp, 0xc
push 0x411870
call fcn.0040aae0
add esp, 4
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x4123a0], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x4123a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x4122e0], eax
mov edx, dword [ebp - 0x414]
add edx, 1
mov dword [ebp - 0x414], edx
push 0x5c
push 0
mov eax, dword [0x413ee8]
add eax, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
call fcn.0040a350
add esp, 4
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x4123a0], eax
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax*4 + 0x4123a0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x4123a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x4122e0], eax
mov dword [ebp - 0x414], 0
mov edx, dword [ebp - 0x414]
imul edx, edx, 0xc
cmp dword [edx + 0x411890], 0
je 0x40836f
mov eax, dword [ebp - 0x414]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x411898]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov edx, dword [ebp - 0x414]
mov dword [edx*4 + 0x412320], eax
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
jmp 0x408327
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x42c], eax
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x40c], eax
push 0x40ea5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push 0x40eb78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x420], eax
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x41c], eax
cmp dword [0x411e98], 1
jne 0x4083d6
mov dword [ebp - 0x410], 0x29
jmp 0x4083e0
mov dword [ebp - 0x410], 0x25
push 0x400
push 0
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040a430
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
push 0
push 0
mov eax, dword [ebp - 0x410]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._ntdll.dll
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x428], 0
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00409c30
add esp, 8
mov dword [ebp - 0x424], eax
push 0x400
push 0
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040a430
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
push 0
push 0
mov eax, dword [ebp - 0x410]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._advapi32.dll
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x428], 0
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00409c30
add esp, 8
mov dword [ebp - 0x430], eax
call fcn.004064d0
mov dword [0x412348], eax
mov ecx, dword [0x412348]
and ecx, 0xfff00000
mov dword [0x412348], ecx
push str.GetProcessImageFileNameW
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412360], eax
cmp dword [0x412360], 0
jne 0x408520
push str.GetProcessImageFileNameW
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412360], eax
cmp dword [0x412360], 0
jne 0x408520
push str.GetProcessImageFileNameW
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412360], eax
push str.NtQueueApcThread
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412398], eax
push str.NtQueryInformationThread
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41234c], eax
push 0x40eadc
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412358], eax
push 1
push 0
push fcn.00408e30
mov edx, dword [0x412358]
push edx
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
push 0x408fa0
call fcn.00409ff0
add esp, 0x1c
push str.NtQueryDirectoryFile
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412354], eax
push 1
push 1
push 0x408d80
mov eax, dword [0x412354]
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x424]
push edx
push 0x408e20
call fcn.00409ff0
add esp, 0x1c
push str.NtResumeThread
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41235c], eax
push 1
push 1
push 0x408ac0
mov ecx, dword [0x41235c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x424]
push eax
push 0x408b10
call fcn.00409ff0
add esp, 0x1c
mov ecx, dword [ebp - 0x424]
push ecx
call fcn.0040a410
add esp, 4
mov edx, dword [ebp - 0x430]
push edx
call fcn.0040a410
add esp, 4
mov esp, ebp
pop ebp
ret