Function at 0x422150
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c830
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x60c9c8]
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
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x1c], ax
xor ebx, ebx
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call fcn.0043e2f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4221a8
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x50]
add esi, 0x158
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
call fcn.0040be40
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004034d0
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 5
lea ecx, [ebp - 0x1c]
push ecx
push edi
call fcn.00533fc7
add esp, 0x24
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x42224b
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
jmp 0x42227f
push 0x560650
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42226f
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
call eax
jmp 0x422285
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, ebx
jne 0x4222b3
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x422374
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
shrd edi, ecx, 0x14
shr ecx, 0x14
mov ecx, esi
mov dword [ebp - 0x54], edi
call fcn.00409930
lea edx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040ae90
cmp eax, ebx
je 0x422340
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jbe 0x422340
mov dword [ebp - 0x34], ebx
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [edi + ecx]
mov ecx, esp
mov dword [ebp - 0x58], esp
push edx
call fcn.00405b90
mov ecx, dword [ebp - 0x4c]
call fcn.0041e4e0
mov esi, eax
cmp esi, ebx
je 0x42232b
cmp dword [esi + 4], ebx
je 0x422324
cmp dword [esi + 8], ebx
je 0x422324
mov ecx, esi
call fcn.00409930
add dword [ebp - 0x24], eax
mov ecx, esi
call fcn.0040bb10
mov eax, dword [ebp - 0x34]
inc eax
add edi, 0x26c
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x28]
jb 0x4222f0
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp edi, dword [ebp - 0x24]
jb 0x42229e
test edx, edx
jg 0x42236f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.00531f97
mov esp, ebp
pop ebp
ret