Function at 0x4258a0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x49ee82
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
call fcn.00468b49
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4258ef
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], ebp
cmp eax, ebp
je 0x425958
cmp word [eax], bp
je 0x425958
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00443f20
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 1
call fcn.00401a50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ebx, 0xffffffff
mov byte [esp + 0x50], 0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42595b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42595b
or ebx, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x425b7f
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x20], 1
cmp esi, ebp
je 0x425a03
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 1
push ebp
push 0x4ab5b8
push 0x4ab5b4
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00423850
add esp, 0x1c
push eax
mov ecx, esi
mov byte [esp + 0x54], 2
call fcn.00401a50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425a03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x60]
cmp edi, ebp
je 0x425b3b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov ebx, 4
cmp dword [esp + 0x30], eax
jne 0x425a28
cmp dword [esp + 0x34], ecx
je 0x425a73
push 1
push ebp
push 0x4ab5b8
push 0x4ab5b4
push ecx
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00423850
mov eax, dword [eax]
push eax
lea edx, [esp + 0x48]
push str.__For_User:__s_
push edx
mov byte [esp + 0x78], 3
mov dword [esp + 0x3c], 1
call fcn.00411be0
add esp, 0x28
mov esi, dword [eax]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], 3
jmp 0x425a78
mov esi, 0x4a7664
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 1
push ebp
push 0x4ab5b8
push 0x4ab5b4
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00423850
mov eax, dword [eax]
push esi
push eax
push str._s_s
push edi
mov dword [esp + 0x7c], 5
call fcn.00404580
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x2c
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], 3
test bl, 2
je 0x425b0f
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425b0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], ebp
test bl, 1
je 0x425b38
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or ebx, 0xffffffff
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x50], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x425b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
cmp eax, ebp
je 0x425ba2
push ecx
push str._Err:_d_
push eax
call fcn.00404580
add esp, 0xc
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x425b3b
mov ecx, dword [esp + 0x18]
push ecx
push str._Err:_d_
push eax
call fcn.00404580
add esp, 0xc
jmp 0x425b3b