Function at 0x4bbbd0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x4fd136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x5c], 0x7fff
xor ecx, ecx
mov eax, 0x7fff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a012a
add esp, 4
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x60], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x5c]
mov dword [ebp + 0x20], ecx
mov edx, dword [ebp + 0x60]
mov dword [ebp + 0x40], edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x54], 0
jbe 0x4bbddc
mov edx, dword [ebp + 0x5c]
mov dword [ebp + 0x30], edx
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x38], eax
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x28], ecx
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x38]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x54], 0
ja 0x4bbcc0
push str.Cannot_get_system_directory_long_path_name
lea ecx, [ebp - 0x3c]
call fcn.004763c0
mov byte [ebp - 4], 1
push 0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x68]
call fcn.004a5010
push 0x548710
lea eax, [ebp - 0x68]
push eax
call fcn.004d0a2b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004769f0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
push 0
push 0
lea ecx, [ebp + 4]
call fcn.004769f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x48], ecx
lea edx, [ebp + 4]
push edx
mov eax, dword [ebp + 0x48]
push eax
call fcn.004b5c40
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x2c], ecx
cmp dword [ebp + 0x18], 0x10
jb 0x4bbd0e
mov edx, dword [ebp]
mov dword [ebp + 0x58], edx
mov eax, dword [ebp + 4]
mov dword [ebp + 0x58], eax
jmp 0x4bbd14
lea ecx, [ebp + 4]
mov dword [ebp + 0x58], ecx
mov edx, dword [ebp + 0x58]
add edx, dword [ebp + 0x2c]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x4bbd79
movsx ecx, byte [0x502c24]
test ecx, ecx
jne 0x4bbd37
mov dword [ebp + 0x4c], 0
jmp 0x4bbd68
mov dword [ebp + 0x64], 0x502c24
mov edx, dword [ebp + 0x64]
add edx, 1
mov dword [ebp + 0x24], edx
mov eax, dword [ebp + 0x64]
mov cl, byte [eax]
mov byte [ebp + 0x6b], cl
add dword [ebp + 0x64], 1
cmp byte [ebp + 0x6b], 0
jne 0x4bbd47
mov edx, dword [ebp + 0x64]
sub edx, dword [ebp + 0x24]
mov dword [ebp + 0x34], edx
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x4c]
push ecx
push 0x502c24
lea ecx, [ebp + 4]
call fcn.00475930
mov edx, dword [ebp + 0x74]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 0x74]
mov dword [eax + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x74]
call fcn.004769f0
lea ecx, [ebp + 4]
push ecx
mov ecx, dword [ebp + 0x74]
call fcn.00475b10
mov edx, dword [ebp + 0x50]
or edx, 1
mov dword [ebp + 0x50], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 4]
call fcn.004769f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x44], eax
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.004ce339
add esp, 4
mov eax, dword [ebp + 0x74]
jmp 0x4bbe38
push str.Cannot_get_system_directory_path
lea ecx, [ebp - 0x24]
call fcn.004763c0
mov byte [ebp - 4], 3
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x94]
call fcn.004a5010
push 0x548710
lea eax, [ebp - 0x94]
push eax
call fcn.004d0a2b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004769f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x3c]
push edx
call fcn.004ce339
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret