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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a7e3
push eax
mov dword fs:[0], esp
sub esp, 0x270
lea eax, [ecx + 0x38]
mov dword [ebp - 0x1c], ecx
push ebx
mov dword [ebp - 0x3c], eax
push esi
cmp dword [eax], 0
push edi
mov dword [ebp - 0x10], esp
jne 0x40a710
lea ecx, [ebp - 0x24]
call fcn.00440440
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00440440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00440440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00440440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00441d46
mov byte [ebp - 4], 5
push 0x100
push 0x100
lea ecx, [ebp - 0x18]
call fcn.00440922
push eax
call fcn.0044fe5c
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00440977
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e770
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e6d0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00440751
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
call fcn.00440698
mov byte [ebp - 4], 5
call fcn.0040a775
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.00440751
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.00440698
mov byte [ebp - 4], 5
call fcn.0040a76d
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.00440751
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.00440698
mov byte [ebp - 4], 5
call fcn.0040a765
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40a3cf
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40a3cf
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x40a619
lea ecx, [ebp - 0x27c]
call fcn.00416340
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
call fcn.00440440
mov byte [ebp - 4], 0xa
push 8
lea ecx, [ebp - 0x27c]
call fcn.004173b0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00440698
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e770
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e6d0
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x264]
push eax
lea ecx, [ebp - 0x27c]
call fcn.004171d0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00440751
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x24]
call fcn.00440698
mov byte [ebp - 4], 0xa
call fcn.0040a74a
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00440751
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.00440698
mov byte [ebp - 4], 0xa
call fcn.0040a742
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00440751
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2c]
call fcn.00440698
mov byte [ebp - 4], 0xa
call fcn.0040a73a
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40a4ff
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40a4ff
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x40a607
lea ecx, [ebp - 0x18]
call fcn.00440520
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0044099f
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00440977
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e6d0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00440751
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x24]
call fcn.00440698
mov byte [ebp - 4], 0xa
call fcn.0040a732
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00440751
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x28]
call fcn.00440698
mov byte [ebp - 4], 0xa
call fcn.0040a72a
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00440751
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00440698
mov byte [ebp - 4], 0xa
call fcn.0040a722
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40a5fc
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40a5fc
push 0x4000
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x40a607
push 0
push 0xffffffffffffffff
push 2
call fcn.00441ec7
mov byte [ebp - 4], 9
call fcn.0040a752
mov byte [ebp - 4], 5
call fcn.0040a75a
mov eax, dword [ebp - 0x1c]
add eax, 0x34
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
cmp dword [ecx], 0
jne 0x40a641
push 0
push 0xffffffffffffffff
push 2
call fcn.00441ec7
mov esi, dword [ebp - 0x1c]
add esi, 0x3c
push str.LoadTarget32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov dword [esi], eax
test eax, eax
je 0x40a6bc
mov edi, dword [ebp - 0x1c]
push str.UnloadTarget32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x40], eax
test eax, eax
je 0x40a6bc
mov edi, dword [ebp - 0x1c]
push str.InitConversion32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x44], eax
test eax, eax
je 0x40a6bc
mov edi, dword [ebp - 0x1c]
push str.FreeConversion32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x48], eax
test eax, eax
je 0x40a6bc
mov edi, dword [ebp - 0x1c]
push str.Convert32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x40a6c3
push 8
call fcn.00429ea0
mov eax, dword [ebp + 8]
push eax
call dword [esi]
test eax, eax
jne 0x40a6d4
push 8
call fcn.00429ea0
mov dword [ebp - 4], 3
call fcn.0040a7c3
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov dword [eax], 1
call fcn.0040a7cb
mov byte [ebp - 4], 1
call fcn.0040a7d3
mov byte [ebp - 4], 0
call fcn.0040a7db
mov dword [ebp - 4], 0xffffffff
call fcn.0040a7ed
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4