Function at 0x47bdc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e1d4
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4c0e0c]
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 [0x4c0df4]
cmp eax, 0xffffffff
jne 0x47bfde
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 0x47be6a
mov dword [0x4c0df4], 0x1004
jmp 0x47bfd1
lea eax, [ebp - 0x114]
push str.APP2.EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x47bfc7
lea eax, [ebp - 0x114]
push str.APRODUCTION.EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x47bfc7
lea ecx, [ebp - 0x228]
mov dword [0x4c0df4], 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 [0x48f470]
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 0x47bfb1
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 0x47bf32
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 0x47bf7d
lea ecx, [ebp - 0x22c]
mov dword [0x4c0df4], 0x1004
call edi
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
jmp 0x47bfd1
lea eax, [ebp - 0x114]
push str.APP2.EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x47bfa7
lea eax, [ebp - 0x114]
push str.APRODUCTION.EXE
push eax
call esi
add esp, 8
test eax, eax
je 0x47bfb1
mov dword [0x4c0df4], 0x1001
lea ecx, [ebp - 0x22c]
call edi
lea ecx, [ebp - 0x228]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
jmp 0x47bfd1
mov dword [0x4c0df4], 0x1001
lea ecx, [ebp - 0x234]
call edi
mov eax, dword [0x4c0df4]
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.0047ff18
mov esp, ebp
pop ebp
ret