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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f087
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push 8
push dword [eax + 4]
lea eax, [ebp - 0x230]
push eax
call fcn.00482f30
add esp, 0xc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
jb 0x4b2a21
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b2bf6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
jb 0x4b2a45
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00481030
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
push eax
call fcn.0048daf0
mov edx, dword [ebp - 0x24c]
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b2a88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4b2bd8
mov eax, dword [ebp - 0x220]
cmp eax, 2
jbe 0x4b2bfc
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x230]
jb 0x4b2ad9
mov eax, dword [ebp - 0x230]
push 2
push eax
lea ecx, [ebp - 0x248]
call fcn.0040d260
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
jb 0x4b2afc
mov eax, dword [ebp - 0x248]
push 0
push 0
lea ecx, [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00402e50
test esi, esi
je 0x4b2bf6
cmp dword [ebp - 0x24c], 0
ja 0x4b2b59
cmp dword [ebp - 0x250], 0x6400000
ja 0x4b2b59
mov esi, dword [edi]
lea eax, [ebp - 0x248]
push str.STRID_DISKPART_TIPS_DIR_NOSPACE
push eax
mov ecx, 0x5622d8
call fcn.00496b10
mov byte [ebp - 4], 2
jmp 0x4b2c1c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dc680
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x4b2b84
mov eax, dword [ebp - 0x230]
push str.360_Partition_Master
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [edi]
push str.lb_folder
call fcn.004b2fd0
mov esi, eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x12c]
mov edx, dword [esi]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call dword [edx + 0xa8]
lea eax, [ebp - 0x218]
push eax
call fcn.00492be0
add esp, 4
jmp 0x4b2c37
mov esi, dword [edi]
lea eax, [ebp - 0x248]
push str.STRID_DISKPART_TIPS_DIR_NOTWRITE
push eax
mov ecx, 0x5622d8
call fcn.00496b10
mov byte [ebp - 4], 3
jmp 0x4b2c1c
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4b2c37
mov esi, dword [edi]
lea eax, [ebp - 0x248]
push str.STRID_DISKPART_TIPS_DIR_UNVALID
push eax
mov ecx, 0x5622d8
call fcn.00496b10
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4b2c24
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.004b43b0
lea ecx, [ebp - 0x248]
call fcn.00402e50
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4b2c73
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b2c69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2c90
push edx
push ecx
call fcn.004bcf17
add esp, 8
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.004bd1b9
mov esp, ebp
pop ebp
ret 4
call fcn.004df969
int3