Function at 0x4f8a50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54770b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5b1fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x400
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005205c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x430]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
lea eax, [ebp - 0x410]
push eax
push 0
je 0x4f8ae5
push dword [ebp - 0x430]
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push dword [ebp - 0x430]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4f8af3
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, eax
test edi, edi
js 0x4f8b43
push str.repairTool
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x428], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8b30
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
jmp 0x4f8b65
push 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
push 0x54a532
lea ecx, [ebp - 0x428]
call fcn.004e7660
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 0
jne 0x4f8be2
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x54a532
mov byte [esi], 0
call fcn.004e7660
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x4f8cf6
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f8bd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f8d13
push edx
push ecx
call fcn.00508041
add esp, 8
jmp 0x4f8cf6
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4f8c68
call fcn.004f8fc0
cmp dword [ebp - 0x414], 0x10
lea edi, [ebp - 0x428]
mov dword [ebp - 0x434], eax
cmovae edi, dword [ebp - 0x428]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4f8c68
push dword [ebp - 0x434]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x4f8c68
cmp eax, 0xb7
je 0x4f8c68
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x54a532
mov byte [esi], 0
call fcn.004e7660
jmp 0x4f8ceb
mov edi, dword [ebp - 0x42c]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8c73
sub ecx, edx
je 0x4f8cab
push 1
push 0x54c620
lea ecx, [ebp - 0x428]
call fcn.004e71d0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8c95
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x428]
call fcn.004e71d0
movups xmm0, xmmword [ebp - 0x428]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x428], 0
movq xmm0, qword [ebp - 0x418]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
lea ecx, [ebp - 0x428]
call fcn.004e6b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050804f
mov esp, ebp
pop ebp
ret
call fcn.00523c69
int3