Function at 0x41e420
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5466b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ec938]
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.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41e478
push 0x80004005
call fcn.00401ed0
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, 0x148
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.00409a70
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00402930
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 0x41e4e2
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.0052df89
add esp, 0x24
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x41e51b
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 0x41e54f
push 0x55994c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41e53f
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 0x41e555
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 0x41e583
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 0x41e57c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41e63f
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.00407ca0
lea edx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00409070
cmp eax, ebx
je 0x41e60b
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jbe 0x41e60b
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.00404fe0
mov ecx, dword [ebp - 0x4c]
call fcn.0041b2e0
mov esi, eax
cmp esi, ebx
je 0x41e5f6
mov ecx, esi
cmp dword [esi + 4], ebx
je 0x41e5f1
call fcn.00407ca0
add dword [ebp - 0x24], eax
mov ecx, esi
call fcn.00409760
mov eax, dword [ebp - 0x34]
inc eax
add edi, 0x26c
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x28]
jb 0x41e5c0
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 0x41e56e
test edx, edx
jg 0x41e63a
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.0052c2ec
mov esp, ebp
pop ebp
ret