Function at 0x484050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610bb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
push 0xfffe
mov dword [ebp - 0x2c], 0x7fff
mov dword [ebp - 0x28], 0x7fff
mov byte [ebp - 0x20], 1
call fcn.004e217a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
push 0x7fff
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x484260
push 0x7fff
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x484273
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, edi
mov dword [ebp - 0x18], 1
mov ecx, ebx
call fcn.0048b8b0
mov ecx, dword [edi + 0x14]
mov eax, edi
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
jb 0x484108
mov eax, dword [edi]
cmp byte [eax + ebx - 1], 0x5c
je 0x484242
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x484144
lea eax, [ebx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ecx, 0x10
jb 0x48412b
mov eax, dword [edi]
push 1
lea esi, [eax + ebx]
push 0x6efa34
push esi
call fcn.0050b880
mov byte [esi + 1], 0
jmp 0x48423f
mov edx, accept
mov eax, edx
sub eax, ebx
cmp eax, 1
jb 0x48429f
lea esi, [ebx + 1]
or esi, 0xf
cmp esi, edx
jbe 0x484164
mov esi, edx
jmp 0x48417c
mov eax, ecx
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x484175
mov esi, accept
jmp 0x48417c
add eax, ecx
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x10], esi
inc esi
cmp esi, 0x1000
jb 0x4841b2
lea eax, [esi + 0x23]
or ecx, 0xffffffff
cmp eax, esi
cmovbe eax, ecx
push eax
call fcn.004e2142
add esp, 4
test eax, eax
je 0x4842a4
mov ecx, dword [ebp - 0x14]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4841c8
test esi, esi
je 0x4841c6
push esi
call fcn.004e2142
mov ecx, dword [ebp - 0x14]
add esp, 4
mov esi, eax
jmp 0x4841c8
xor esi, esi
lea eax, [ebx + 1]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x14], eax
push ebx
cmp ecx, 0x10
jb 0x484229
mov eax, dword [edi]
push eax
push esi
mov dword [ebp - 0x10], eax
call fcn.0050be00
mov al, byte [0x6efa34]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [esi + ebx], al
mov eax, dword [ebp - 0x10]
mov byte [esi + ebx + 1], 0
cmp ecx, 0x1000
jb 0x48421b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4842a4
mov eax, edx
push ecx
push eax
call fcn.00507e8e
add esp, 8
mov dword [edi], esi
jmp 0x484242
push edi
push esi
call fcn.0050be00
mov al, byte [0x6efa34]
mov byte [esi + ebx], al
mov byte [esi + ebx + 1], 0
mov dword [edi], esi
add esp, 0xc
push dword [ebp - 0x24]
call fcn.004c8b70
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x44]
call fcn.00455927
mov byte [ebp - 4], 3
jmp 0x484284
push str.Cannot_get_system_directory_long_path_name
lea ecx, [ebp - 0x44]
call fcn.00455927
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x70]
call fcn.0046fb60
push 0x708ddc
lea eax, [ebp - 0x70]
push eax
call fcn.0050c727
call fcn.004534a3
call fcn.005184a7
int3