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

Disassembly:
mov eax, 0x402a93
call fcn.0042f00c
sub esp, 0xd8
lea eax, [ecx + 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
cmp dword [eax], esi
jne 0x4029eb
lea ecx, [ebp - 0x24]
call fcn.00446623
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00446623
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00446623
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00446623
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
call fcn.00402c43
mov ecx, dword [ebp - 0x28]
cmp eax, esi
mov dword [ecx], eax
je 0x4029c4
call fcn.0040209c
mov ecx, eax
call fcn.004232be
test eax, eax
je 0x4029c4
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x5c]
mov dword [eax], esi
call fcn.00447f56
mov byte [ebp - 4], 5
mov eax, 0x100
push eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.00446b05
push eax
call fcn.00402aa5
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00446b5a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.00428651
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.004285d8
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00446934
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
call fcn.0044687b
mov byte [ebp - 4], 5
call fcn.00402a25
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00446934
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044687b
mov byte [ebp - 4], 5
call fcn.00402a1d
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00446934
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x30]
call fcn.0044687b
mov byte [ebp - 4], 5
call fcn.00402a15
lea ecx, [ebp - 0x1c]
call fcn.00446703
mov esi, 0x104
push esi
lea ecx, [ebp - 0x1c]
call fcn.00446b82
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00446b5a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.004285d8
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00446934
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x24]
call fcn.0044687b
mov byte [ebp - 4], 5
call fcn.00402a0d
push dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00446934
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044687b
mov byte [ebp - 4], 5
call fcn.00402a05
push dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00446934
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x30]
call fcn.0044687b
mov byte [ebp - 4], 5
call fcn.004029fd
mov edi, 0x4000
push edi
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401a58
push eax
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
call esi
cmp eax, 0xffffffff
je 0x4028da
push edi
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401a58
push eax
call esi
cmp eax, 0xffffffff
je 0x4028da
push edi
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401a58
push eax
call esi
cmp eax, 0xffffffff
jne 0x4028e5
push 0
push 0xffffffffffffffff
push 2
call fcn.004480d7
mov eax, dword [ebp - 0x18]
add eax, 0x34
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x24]
call fcn.00401a58
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
cmp dword [ecx], 0
jne 0x402912
push 0
push 0xffffffffffffffff
push 2
call fcn.004480d7
mov esi, dword [ebp - 0x18]
add esi, 0x40
push str.LoadTarget32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
xor ebx, ebx
cmp eax, ebx
je 0x402998
mov edi, dword [ebp - 0x18]
push str.UnloadTarget32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x44], eax
cmp eax, ebx
je 0x402998
mov edi, dword [ebp - 0x18]
push str.InitConversion32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x48], eax
cmp eax, ebx
je 0x402998
mov edi, dword [ebp - 0x18]
push str.FreeConversion32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x4c], eax
cmp eax, ebx
je 0x402998
mov edi, dword [ebp - 0x18]
push str.Convert32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x50], eax
cmp eax, ebx
jne 0x40299f
push 8
call fcn.00423fcf
push dword [ebp + 8]
call dword [esi]
test eax, eax
jne 0x4029af
push 8
call fcn.00423fcf
mov dword [ebp - 4], 3
call fcn.00402a73
mov eax, dword [ebp - 0x28]
mov dword [eax], 1
mov byte [ebp - 4], 2
call fcn.00402a7b
mov byte [ebp - 4], 1
call fcn.00402a83
mov byte [ebp - 4], 0
call fcn.00402a8b
mov dword [ebp - 4], 0xffffffff
call fcn.00402a9d
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4