Function at 0x48b3e0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bbc46
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x7f3784]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48b522
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x48b45e
xor ecx, ecx
jmp 0x48b476
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b467
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004891c0
xor bl, bl
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push 0
cmovae eax, dword [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x48b4ba
cmp eax, 0xb7
je 0x48b4ba
cmp eax, 0x50
jne 0x48b4bc
mov bl, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x48b517
mov edx, dword [ebp - 0x230]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x48b6c2
add eax, eax
cmp eax, 0x1000
jb 0x48b50e
test cl, 0x1f
jne 0x48b6c2
lea eax, [edx - 4]
mov edx, dword [eax]
cmp edx, ecx
jae 0x48b6c2
sub ecx, edx
cmp ecx, 4
jb 0x48b6c2
cmp ecx, 0x23
ja 0x48b6c2
push edx
call fcn.004e7fa0
add esp, 4
test bl, bl
jne 0x48b522
xor al, al
jmp 0x48b6a4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x48b54c
xor ecx, ecx
jmp 0x48b564
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b555
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004891c0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [esi], ax
jne 0x48b5a4
xor ecx, ecx
jmp 0x48b5bf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b5b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.004891c0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00493eb0
mov bl, al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x48b640
mov edx, dword [ebp - 0x260]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x48b6c2
add eax, eax
cmp eax, 0x1000
jb 0x48b637
test cl, 0x1f
jne 0x48b6c2
mov edx, dword [edx - 4]
cmp edx, ecx
jae 0x48b6c2
sub ecx, edx
cmp ecx, 4
jb 0x48b6c2
cmp ecx, 0x23
ja 0x48b6c2
push edx
call fcn.004e7fa0
add esp, 4
test bl, bl
je 0x48b65d
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x248]
cmp ecx, eax
je 0x48b65b
push 0xffffffffffffffff
push 0
push eax
call fcn.004892c0
mov bl, 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x48b6a2
mov edx, dword [ebp - 0x248]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x48b6c2
add eax, eax
cmp eax, 0x1000
jb 0x48b699
test cl, 0x1f
jne 0x48b6c2
mov edx, dword [edx - 4]
cmp edx, ecx
jae 0x48b6c2
sub ecx, edx
cmp ecx, 4
jb 0x48b6c2
cmp ecx, 0x23
ja 0x48b6c2
push edx
call fcn.004e7fa0
add esp, 4
mov al, bl
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.0063bad7
mov esp, ebp
pop ebp
ret 4
call fcn.0065a824
int3