Function at 0x4103b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4178a4
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4262a4]
cmp eax, 0xffffffff
jne 0x4105ce
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
add esp, 4
lea ecx, [ebp - 0x234]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
mov esi, dword [sym.imp.VCRUNTIME140.dll_strstr]
lea eax, [ebp - 0x114]
push str.APP.EXE
push eax
mov dword [ebp - 4], 0
call esi
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
add esp, 8
test eax, eax
je 0x41045a
mov dword [0x4262a4], 0x1004
jmp 0x4105c1
lea eax, [ebp - 0x114]
push str.APP2.EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x4105b7
lea eax, [ebp - 0x114]
push str.APRODUCTION.EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x4105b7
lea ecx, [ebp - 0x228]
mov dword [0x4262a4], 0x1004
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::getFileName_class_AString__const]
push str.Program
lea ecx, [ebp - 0x22c]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::Find_char_const__const]
test eax, eax
jne 0x4105a1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
lea edx, [ebp - 0x114]
mov ecx, dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x410522
lea ecx, [ebp - 0x230]
call edi
lea eax, [ebp - 0x114]
push str.APP.EXE
push eax
call esi
add esp, 8
test eax, eax
je 0x41056d
lea ecx, [ebp - 0x22c]
mov dword [0x4262a4], 0x1004
call edi
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
jmp 0x4105c1
lea eax, [ebp - 0x114]
push str.APP2.EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x410597
lea eax, [ebp - 0x114]
push str.APRODUCTION.EXE
push eax
call esi
add esp, 8
test eax, eax
je 0x4105a1
mov dword [0x4262a4], 0x1001
lea ecx, [ebp - 0x22c]
call edi
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
jmp 0x4105c1
mov dword [0x4262a4], 0x1001
lea ecx, [ebp - 0x234]
call edi
mov eax, dword [0x4262a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413da6
mov esp, ebp
pop ebp
ret