Function at 0x404db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a553
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42442c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3e8
lea ecx, [ebp - 0x34]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::constructor_long_int_]
mov dword [ebp - 4], 0
push 0x3e8
mov ecx, dword [ebp + 8]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::realloc_long_int_]
push 0x3e8
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::realloc_long_int_]
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.utils4c.dll_public:_char____thiscall_Str::operator_char__void_const]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::DetectLen_void_]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.utils4c.dll_class_Str___cdecl_Add_Slash_class_Str_const__]
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.utils4c.dll_public:_class_Str____thiscall_Str::operator_class_Str_const__]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::destructor_void_]
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.utils4c.dll_public:_char____thiscall_Str::operator_char__void_const]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x34]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::DetectLen_void_]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.utils4c.dll_public:_char____thiscall_Str::operator_char__void_const]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.utils4c.dll_public:_char____thiscall_Str::operator_char__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x404ef4
lea ecx, [ebp - 0x58]
call fcn.004032e0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 2
push str.Cant_execute_GetFullPathName.
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004069c0
add esp, 8
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403330
push 0x4229bc
lea eax, [ebp - 0x4c]
push eax
call fcn.00408fdb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004033e0
mov ecx, 1
imul ecx, ecx, 0
mov edx, dword [ebp - 0x20]
mov byte [edx + ecx], 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::DetectLen_void_]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.utils4c.dll_class_Str___cdecl_Add_Slash_class_Str_const__]
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.utils4c.dll_public:_class_Str____thiscall_Str::operator_class_Str_const__]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call dword [sym.imp.utils4c.dll_public:_void___thiscall_Str::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret