Function at 0x477270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da6e
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4c0e0c]
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 [0x4c4aa8]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x477520
push esi
call fcn.00477b50
add esp, 4
test eax, eax
mov eax, dword [0x4c4aa8]
jne 0x477520
test eax, eax
jne 0x477520
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 0x477301
push esi
lea ecx, [ebp - 0x124]
call dword [0x48f470]
jmp 0x4773a3
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 [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
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 0x477372
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::exists_void_const]
test eax, eax
je 0x477372
push 0
lea ecx, [ebp - 0x124]
call ebx
jmp 0x477397
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 [0x48f470]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call edi
push str.Cloud.dll
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
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.0047b400
add esp, 4
test al, al
je 0x477507
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 0x477402
mov ecx, eax
call fcn.0047b4b0
jmp 0x477404
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x4c4aa8], eax
test esi, esi
je 0x4774a0
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 [0x4c4aa8]
mov eax, dword [eax + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x477464
test dl, dl
je 0x477460
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x477464
add eax, 2
add ecx, 2
test dl, dl
jne 0x477444
xor eax, eax
jmp 0x477469
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0x128]
setne bl
call edi
test bl, bl
je 0x4774f6
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call esi
mov ecx, dword [0x4c4aa8]
push dword [eax]
mov byte [ebp - 4], 4
lea ecx, [ecx + 8]
call dword [0x48f528]
jmp 0x4774ea
add eax, 8
push 0x490e40
push eax
call fcn.00409fa0
add esp, 8
test eax, eax
je 0x477507
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 [0x4c4aa8]
push eax
mov byte [ebp - 4], 5
lea ecx, [ecx + 8]
call dword [0x48f52c]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call edi
call fcn.0047bdc0
mov ecx, dword [0x4c4aa8]
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 [0x4c4aa8]
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.0047ff18
mov esp, ebp
pop ebp
ret