Function at 0x4494a0
Capabilities:
Check if file exists
Create directory
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf3e3
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x50b080]
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 ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
cmp eax, 0x7ffc
jbe 0x449513
cmp byte [0x50f942], 0
jne 0x449916
push 0x130
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.00492970
add esp, 8
push 0
push 0x6a6
push 0x463
jmp 0x4498e6
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x18]
push 3
push eax
push dword [ebx]
call fcn.0049a88b
add esp, 0x24
test eax, eax
jne 0x4498bb
cmp word [ebp - 0x18], 0x61
mov ecx, dword [ebp - 0x18]
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x61
sub ecx, eax
mov eax, 1
shl eax, cl
test esi, eax
je 0x4498bb
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4495a3
cmp byte [0x50f942], 0
jne 0x449916
push 0x130
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.00492970
add esp, 8
push 0
push 0x6a6
push 0x462
jmp 0x4498e6
mov ecx, ebx
call fcn.00449960
test al, al
jne 0x4496c2
mov dword [ebp - 0x35c], 0
mov dword [ebp - 4], 0
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x449934
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x35c]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0x4c55dc
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x449623
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea edx, [esi - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x449717
mov ecx, dword [edx]
push edx
jmp 0x449712
mov edx, dword [ebp - 0x35c]
test edx, edx
jne 0x449631
xor ecx, ecx
jmp 0x449645
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x449636
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.0040e140
push dword [ebp - 0x35c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x35c], 0
test esi, esi
je 0x449934
push esi
push dword [ebx]
call fcn.0049a53c
add esp, 8
test eax, eax
je 0x4496aa
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x18]
push 6
add eax, 0xfffffffa
push eax
call fcn.00450870
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x449934
push esi
push dword [ebx]
call fcn.0049a53c
add esp, 8
test eax, eax
jne 0x4496f6
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4496c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x50f942], 0
jne 0x449916
push 0x130
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.00492970
add esp, 8
push 0
push 0x6a6
push 0x465
jmp 0x4498e6
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x449717
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.00449b40
test al, al
jne 0x4496c2
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x449833
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x44993e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 2
test eax, 0xffff0000
jne 0x449794
movzx eax, ax
lea ecx, [ebp - 0x35c]
push eax
call fcn.004129d0
jmp 0x4497c2
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4497a0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x35c]
call fcn.0040e140
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x35c]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x449952
cmp eax, ecx
jg 0x449952
cmp word [esi + eax*2], 0x5c
jne 0x449800
push 1
push eax
lea ecx, [ebp - 0x35c]
call fcn.00450870
mov esi, dword [ebp - 0x35c]
test esi, esi
je 0x449948
push esi
push dword [ebx]
call fcn.0049a53c
add esp, 8
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test eax, eax
jne 0x449827
test edi, edi
jmp 0x4496b8
test edi, edi
jg 0x449833
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebx]
test eax, eax
je 0x44987b
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4498b7
cmp byte [0x50f942], al
jne 0x449916
push 0x130
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00492970
add esp, 8
push 0
push 0x6a6
push 0x464
jmp 0x4498e6
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4498b7
cmp byte [0x50f942], al
jne 0x449916
push 0x130
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00492970
add esp, 8
push 0
push 0x6a6
push 0x460
jmp 0x4498e6
mov al, 1
jmp 0x449918
cmp byte [0x50f942], 0
jne 0x449916
push 0x130
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.00492970
add esp, 8
push 0
push 0x6a6
push 0x461
push 0x80
push 1
lea ecx, [ebp - 0x358]
call fcn.00423940
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x358]
call fcn.0040f9b0
lea ecx, [ebp - 0x358]
call fcn.0040ef30
xor al, al
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.00490396
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
push 0x80070057
call fcn.00404ea0
int3