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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a91e
push eax
mov dword fs:[0], esp
sub esp, 0xd8
lea eax, [ecx + 0x3c]
mov dword [ebp - 0x18], ecx
push ebx
mov dword [ebp - 0x28], eax
push esi
cmp dword [eax], 0
push edi
mov dword [ebp - 0x10], esp
jne 0x40a876
lea ecx, [ebp - 0x24]
call fcn.00441779
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00441779
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00441779
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00441779
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
call fcn.0040ab20
mov ecx, dword [ebp - 0x28]
test eax, eax
mov dword [ecx], eax
je 0x40a84f
call fcn.004513dc
mov ecx, dword [eax + 4]
call fcn.00410790
test eax, eax
je 0x40a84f
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x5c]
mov dword [eax], 0
call fcn.00443076
mov byte [ebp - 4], 5
push 0x100
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.00441c61
push eax
call fcn.004513dc
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00441cb6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042ed60
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042ecc0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00441a90
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
call fcn.004419d7
mov byte [ebp - 4], 5
call fcn.0040a8b0
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.00441a90
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2c]
call fcn.004419d7
mov byte [ebp - 4], 5
call fcn.0040a8a8
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.00441a90
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x30]
call fcn.004419d7
mov byte [ebp - 4], 5
call fcn.0040a8a0
lea ecx, [ebp - 0x1c]
call fcn.00441859
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00441cde
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00441cb6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042ecc0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00441a90
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x24]
call fcn.004419d7
mov byte [ebp - 4], 5
call fcn.0040a898
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00441a90
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2c]
call fcn.004419d7
mov byte [ebp - 4], 5
call fcn.0040a890
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00441a90
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x30]
call fcn.004419d7
mov byte [ebp - 4], 5
call fcn.0040a888
push 0x4000
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
call esi
cmp eax, 0xffffffff
je 0x40a774
push 0x4000
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40a774
push 0x4000
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0x30]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40a77f
push 0
push 0xffffffffffffffff
push 2
call fcn.004431f7
mov eax, dword [ebp - 0x18]
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 0x40a7a7
push 0
push 0xffffffffffffffff
push 2
call fcn.004431f7
mov esi, dword [ebp - 0x18]
add esi, 0x40
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 0x40a822
mov edi, dword [ebp - 0x18]
push str.UnloadTarget32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x44], eax
test eax, eax
je 0x40a822
mov edi, dword [ebp - 0x18]
push str.InitConversion32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x48], eax
test eax, eax
je 0x40a822
mov edi, dword [ebp - 0x18]
push str.FreeConversion32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x4c], eax
test eax, eax
je 0x40a822
mov edi, dword [ebp - 0x18]
push str.Convert32
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
call ebx
mov dword [edi + 0x50], eax
test eax, eax
jne 0x40a829
push 8
call fcn.0042a620
mov eax, dword [ebp + 8]
push eax
call dword [esi]
test eax, eax
jne 0x40a83a
push 8
call fcn.0042a620
mov dword [ebp - 4], 3
call fcn.0040a8fe
mov eax, dword [ebp - 0x28]
mov dword [eax], 1
mov byte [ebp - 4], 2
call fcn.0040a906
mov byte [ebp - 4], 1
call fcn.0040a90e
mov byte [ebp - 4], 0
call fcn.0040a916
mov dword [ebp - 4], 0xffffffff
call fcn.0040a928
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4