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

Disassembly:
mov eax, 0x40dbc9
call fcn.0042de5c
sub esp, 0x270
lea eax, [ecx + 0x38]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
cmp dword [eax], esi
jne 0x40daf6
lea ecx, [ebp - 0x24]
call fcn.004445ab
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.004445ab
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004445ab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004445ab
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00444d50
mov byte [ebp - 4], 5
mov eax, 0x100
push eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00444a8d
push eax
call fcn.00403b0a
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00444ae2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0040191e
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.004018a5
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004448bc
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
call fcn.00444803
mov byte [ebp - 4], 5
call fcn.0040db5b
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004448bc
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.00444803
mov byte [ebp - 4], 5
call fcn.0040db53
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004448bc
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444803
mov byte [ebp - 4], 5
call fcn.0040db4b
mov esi, 0x4000
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40d795
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40d795
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x40d9f0
lea ecx, [ebp - 0x27c]
call fcn.0041fef1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
call fcn.004445ab
mov byte [ebp - 4], 0xa
push 8
lea ecx, [ebp - 0x27c]
call fcn.00420ed3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00444803
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11]
call fcn.0040191e
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11]
call fcn.004018a5
lea ecx, [ebp - 0x30]
call fcn.00401dd6
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401dd6
push eax
lea ecx, [ebp - 0x27c]
call fcn.00420d2d
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004448bc
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x24]
call fcn.00444803
mov byte [ebp - 4], 0xa
call fcn.0040db30
push dword [ebp - 0x38]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004448bc
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.00444803
mov byte [ebp - 4], 0xa
call fcn.0040db28
push dword [ebp - 0x34]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004448bc
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444803
mov byte [ebp - 4], 0xa
call fcn.0040db20
mov esi, 0x4000
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40d8d4
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40d8d4
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x40d9de
lea ecx, [ebp - 0x18]
call fcn.0044468b
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
call fcn.00444b0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00444ae2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.004018a5
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004448bc
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x24]
call fcn.00444803
mov byte [ebp - 4], 0xa
call fcn.0040db18
push dword [ebp - 0x38]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004448bc
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x28]
call fcn.00444803
mov byte [ebp - 4], 0xa
call fcn.0040db10
push dword [ebp - 0x34]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004448bc
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444803
mov byte [ebp - 4], 0xa
call fcn.0040db08
mov esi, 0x4000
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40d9d3
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40d9d3
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x40d9de
push 0
push 0xffffffffffffffff
push 2
call fcn.004462bf
mov byte [ebp - 4], 9
call fcn.0040db38
mov byte [ebp - 4], 5
call fcn.0040db40
mov eax, dword [ebp - 0x1c]
add eax, 0x34
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x24]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
cmp dword [ecx], 0
jne 0x40da1d
push 0
push 0xffffffffffffffff
push 2
call fcn.004462bf
mov esi, dword [ebp - 0x1c]
add esi, 0x3c
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 0x40daa3
mov edi, dword [ebp - 0x1c]
push str.UnloadTarget32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x40], eax
cmp eax, ebx
je 0x40daa3
mov edi, dword [ebp - 0x1c]
push str.InitConversion32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x44], eax
cmp eax, ebx
je 0x40daa3
mov edi, dword [ebp - 0x1c]
push str.FreeConversion32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x48], eax
cmp eax, ebx
je 0x40daa3
mov edi, dword [ebp - 0x1c]
push str.Convert32
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x4c], eax
cmp eax, ebx
jne 0x40daaa
push 8
call fcn.0041ac7a
push dword [ebp + 8]
call dword [esi]
test eax, eax
jne 0x40daba
push 8
call fcn.0041ac7a
mov dword [ebp - 4], 3
call fcn.0040dba9
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov dword [eax], 1
call fcn.0040dbb1
mov byte [ebp - 4], 1
call fcn.0040dbb9
mov byte [ebp - 4], 0
call fcn.0040dbc1
mov dword [ebp - 4], 0xffffffff
call fcn.0040dbd3
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4