Function at 0x4e13e0
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5388d3
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x59a0a0]
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
xor edi, edi
lea eax, [ebp - 0x228]
push 0x20a
push edi
push eax
mov dword [ebp - 0x234], edi
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x238], 0x104
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e1453
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1468
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e146a
call edx
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
jne 0x4e1499
push 0x1d
push 0x55bfcc
lea ecx, [ebp - 0x22c]
call fcn.00402d50
jmp 0x4e14ae
push eax
lea eax, [ebp - 0x22c]
push 0x55c0cc
push eax
call fcn.004023f0
add esp, 0xc
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x22c]
push eax
push 0x2001f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x230], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e1624
mov edi, dword [ebp - 0x230]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x24c], edi
push eax
push 0x55c064
call fcn.00406fe0
test eax, eax
jne 0x4e1613
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov eax, dword [0x55c2d4]
mov dword [ebp - 0x18], eax
movzx eax, word [0x55c2d8]
mov word [ebp - 0x14], ax
movzx eax, word [ebp - 0x228]
push 0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x240]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4e1613
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x23c]
shrd ecx, eax, 0x1e
shr eax, 0x1e
push eax
push ecx
push dword [ebx]
push 0x55c2e0
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x14
cmp dword [ebp - 0x23c], 0
ja 0x4e15bd
cmp dword [ebp - 0x240], 2
jb 0x4e1613
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
call fcn.00402e00
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e15e3
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4e1609
push ecx
mov edi, esp
mov dword [ebp - 0x238], edi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [edi], eax
call fcn.004e1680
mov edi, dword [ebp - 0x230]
add esp, 4
mov dword [ebp - 0x234], 1
test edi, edi
je 0x4e161e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e165c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e165a
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e165c
call edx
mov eax, edi
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.0049aa22
mov esp, ebp
pop ebp
ret