Function at 0x4489f0
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57153b
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
add ecx, 0xe0
call fcn.0042a300
cmp eax, 2
jbe 0x448ab7
push 0x587518
push 2
mov ecx, dword [ebp + 8]
add ecx, 0xe0
call fcn.0042a300
sub eax, 2
push eax
lea eax, [ebp - 0x4ac]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xe0
call fcn.00419580
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x50c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x504]
or edx, 1
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x50c]
push eax
call fcn.0042a090
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x448ab7
mov dword [ebp - 0x510], 1
jmp 0x448ac1
mov dword [ebp - 0x510], 0
mov dl, byte [ebp - 0x510]
mov byte [ebp - 0x48d], dl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x504]
and eax, 1
je 0x448af1
and dword [ebp - 0x504], 0xfffffffe
lea ecx, [ebp - 0x4ac]
call fcn.004017f0
movzx ecx, byte [ebp - 0x48d]
test ecx, ecx
je 0x448cbe
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
lea edx, [ebp - 0x440]
push edx
call fcn.00569590
add esp, 8
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004b6500
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
add ecx, 0xe0
call fcn.00401830
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0
lea ecx, [ebp - 0x440]
call fcn.004048a0
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.00436bf0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.004b6500
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
add ecx, 0xe0
call fcn.00401830
push eax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x587520
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x448c64
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x448c57
push 0x58752c
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x448c57
call dword [ebp - 0x448]
movzx eax, al
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x440]
push edx
call fcn.00569c50
add esp, 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.00401770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c8]
push ecx
call fcn.00568e60
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c8]
call fcn.004017f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00404950
jmp 0x449098
push 0x587538
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040dc80
add esp, 8
movzx eax, al
test eax, eax
jne 0x448d0a
push 0x587548
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040dc80
add esp, 8
movzx edx, al
test edx, edx
jne 0x448d0a
push 0x587554
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040dc80
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x448ebb
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
je 0x448eb6
push 0x587564
mov edx, dword [ebp - 0x44c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x454], eax
push 0x587578
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x454], 0
je 0x448ea9
cmp dword [ebp - 0x450], 0
je 0x448ea9
push 0
call dword [ebp - 0x454]
mov dword [ebp - 0x458], eax
lea ecx, [ebp - 0x47c]
call fcn.0044b210
mov dword [ebp - 4], 3
push 0x58758c
mov ecx, dword [ebp + 8]
add ecx, 0xfc
push ecx
push 0x587594
lea edx, [ebp - 0x4e4]
push edx
call fcn.0043d430
add esp, 0xc
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x518], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x518]
push ecx
lea edx, [ebp - 0x474]
push edx
call fcn.0042a0b0
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4e4]
call fcn.004017f0
cmp dword [ebp - 0x458], 0
je 0x448e88
push 0
lea eax, [ebp - 0x47c]
push eax
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [edx]
call ecx
lea ecx, [ebp - 0x474]
call fcn.00401830
push eax
mov edx, dword [ebp - 0x458]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [eax + 4]
call edx
test eax, eax
jne 0x448e7b
push 0xffffffffffffffff
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x458]
push edx
mov eax, dword [ecx + 0xc]
call eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x47c]
call fcn.0044b270
cmp eax, 2
jne 0x448e7b
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x458]
push ecx
call dword [ebp - 0x450]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.004017f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.0044b240
mov edx, dword [ebp - 0x44c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x449098
push 0x5875b4
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040dc80
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x448f37
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
je 0x448f25
push 0x5875c0
mov edx, dword [ebp - 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
je 0x448f25
call dword [ebp - 0x484]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x449098
push 0x5875cc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040dc80
add esp, 8
movzx edx, al
test edx, edx
je 0x448fb2
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 0
je 0x448fa0
push 0x5875d4
mov eax, dword [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48c], eax
cmp dword [ebp - 0x48c], 0
je 0x448fa0
call dword [ebp - 0x48c]
movzx ecx, al
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x488]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x449098
mov eax, dword [ebp + 8]
push eax
call fcn.00448060
add esp, 4
test eax, eax
je 0x449098
mov ecx, dword [ebp + 8]
push ecx
call fcn.00447b90
add esp, 4
test eax, eax
jne 0x44905f
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.00401830
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call fcn.0043b770
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
lea edx, [ebp - 0x500]
push edx
call fcn.00569590
add esp, 8
mov dword [ebp - 0x51c], eax
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x520], eax
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x520]
push ecx
call fcn.00569c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x500]
call fcn.00404950
jmp 0x449098
mov edx, dword [ebp + 8]
push edx
call fcn.00447df0
add esp, 4
test eax, eax
jne 0x449098
mov eax, dword [ebp + 8]
add eax, 0x120
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa8
push ecx
mov ecx, 0x5eba38
call fcn.00401830
push eax
call fcn.0043b890
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret