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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a5d3
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 0x40a500
lea ecx, [ebp - 0x24]
call fcn.00440170
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00440170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00440170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00440170
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00441a76
mov byte [ebp - 4], 5
push 0x100
push 0x100
lea ecx, [ebp - 0x18]
call fcn.00440652
push eax
call fcn.0044fb8c
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004406a7
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e4e0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e440
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00440481
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
call fcn.004403c8
mov byte [ebp - 4], 5
call fcn.0040a565
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.00440481
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.004403c8
mov byte [ebp - 4], 5
call fcn.0040a55d
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.00440481
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.004403c8
mov byte [ebp - 4], 5
call fcn.0040a555
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 0x40a1bf
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 0x40a1bf
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 0x40a409
lea ecx, [ebp - 0x27c]
call fcn.00416120
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
call fcn.00440170
mov byte [ebp - 4], 0xa
push 8
lea ecx, [ebp - 0x27c]
call fcn.00417190
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.004403c8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e4e0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e440
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.00416fb0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00440481
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x24]
call fcn.004403c8
mov byte [ebp - 4], 0xa
call fcn.0040a53a
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00440481
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.004403c8
mov byte [ebp - 4], 0xa
call fcn.0040a532
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00440481
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2c]
call fcn.004403c8
mov byte [ebp - 4], 0xa
call fcn.0040a52a
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 0x40a2ef
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 0x40a2ef
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 0x40a3f7
lea ecx, [ebp - 0x18]
call fcn.00440250
push 0x104
lea ecx, [ebp - 0x18]
call fcn.004406cf
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004406a7
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042e440
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00440481
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x24]
call fcn.004403c8
mov byte [ebp - 4], 0xa
call fcn.0040a522
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00440481
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x28]
call fcn.004403c8
mov byte [ebp - 4], 0xa
call fcn.0040a51a
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00440481
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x2c]
call fcn.004403c8
mov byte [ebp - 4], 0xa
call fcn.0040a512
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 0x40a3ec
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 0x40a3ec
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 0x40a3f7
push 0
push 0xffffffffffffffff
push 2
call fcn.00441bf7
mov byte [ebp - 4], 9
call fcn.0040a542
mov byte [ebp - 4], 5
call fcn.0040a54a
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 0x40a431
push 0
push 0xffffffffffffffff
push 2
call fcn.00441bf7
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 0x40a4ac
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 0x40a4ac
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 0x40a4ac
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 0x40a4ac
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 0x40a4b3
push 8
call fcn.00429c50
mov eax, dword [ebp + 8]
push eax
call dword [esi]
test eax, eax
jne 0x40a4c4
push 8
call fcn.00429c50
mov dword [ebp - 4], 3
call fcn.0040a5b3
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov dword [eax], 1
call fcn.0040a5bb
mov byte [ebp - 4], 1
call fcn.0040a5c3
mov byte [ebp - 4], 0
call fcn.0040a5cb
mov dword [ebp - 4], 0xffffffff
call fcn.0040a5dd
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4