Function at 0x40bb90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41712e
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x427260]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x40be40
push esi
call fcn.0040c470
add esp, 4
test eax, eax
mov eax, dword [0x427260]
jne 0x40be40
test eax, eax
jne 0x40be40
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov ebx, dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator___int_]
mov dword [ebp - 4], 0
test esi, esi
je 0x40bc21
push esi
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
jmp 0x40bcc3
lea ecx, [ebp - 0x128]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetExecutableDir_void_]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::getFileName_class_AString__const]
push str.Cloud.dll
lea ecx, [ebp - 0x124]
call dword [0x4180f8]
push str.Program
lea ecx, [ebp - 0x128]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::Find_char_const__const]
test eax, eax
jne 0x40bc92
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::exists_void_const]
test eax, eax
je 0x40bc92
push 0
lea ecx, [ebp - 0x124]
call ebx
jmp 0x40bcb7
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call edi
push str.Cloud.dll
lea ecx, [ebp - 0x124]
call dword [0x4180f8]
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
push dword [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.0040f9e0
add esp, 4
test al, al
je 0x40be27
push 0x14
call sub.mfc140.dll_Ordinal_1507
add esp, 4
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40bd22
mov ecx, eax
call fcn.0040faa0
jmp 0x40bd24
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x427260], eax
test esi, esi
je 0x40bdc0
push 0
push 0
lea ecx, [ebp - 0x124]
call ebx
mov ecx, eax
call ebx
mov esi, dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call esi
mov ecx, dword [eax]
mov eax, dword [0x427260]
mov eax, dword [eax + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bd84
test dl, dl
je 0x40bd80
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bd84
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bd64
xor eax, eax
jmp 0x40bd89
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0x128]
setne bl
call edi
test bl, bl
je 0x40be16
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call esi
mov ecx, dword [0x427260]
push dword [eax]
mov byte [ebp - 4], 4
lea ecx, [ecx + 8]
call dword [0x418114]
jmp 0x40be0a
add eax, 8
push 0x4190c0
push eax
call fcn.0040ba30
add esp, 8
test eax, eax
je 0x40be27
lea eax, [ebp - 0x128]
push eax
push 0
push 0
lea ecx, [ebp - 0x124]
call ebx
mov ecx, eax
call ebx
mov esi, dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
mov ecx, eax
call esi
mov ecx, dword [0x427260]
push eax
mov byte [ebp - 4], 5
lea ecx, [ecx + 8]
call dword [sym.imp.FSUTIL.dll_public:_class_AString_const____thiscall_AString::operator_class_AString_const__]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call edi
call fcn.004103b0
mov ecx, dword [0x427260]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebp - 0x12c]
call edi
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov eax, dword [0x427260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413da6
mov esp, ebp
pop ebp
ret