Function at 0x41d4f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5898
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ecx
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov ecx, dword [0x545d90]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov edi, 0xe
idiv edi
cmp edx, 0xc
jne 0x41d562
mov eax, 1
test ecx, ecx
cmove ecx, eax
mov dword [0x545d90], ecx
lea ecx, [ebp - 0x30]
call fcn.00421510
mov edi, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
push 0x51f384
lea ecx, [ebp - 0x2c]
call fcn.00418660
add esp, 4
mov byte [ebp - 4], 3
push ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040f160
add esp, 4
mov byte [ebp - 4], 4
push 0x51f380
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00418660
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp + 8]
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0040f160
add esp, 4
mov byte [ebp - 4], 6
push str.rnd
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00418660
add esp, 4
mov byte [ebp - 4], 7
push edi
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040f160
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [eax]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
or esi, 0xffffffff
cmp ecx, edi
je 0x41d63b
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x41d62f
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41d62f
call fcn.004028c0
mov dword [ebp - 0x14], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41d627
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x41d63b
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00402790
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d65b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d67b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d69b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d6bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d6db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d6fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d71b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00425f80
mov edx, dword [0x545d90]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xa
idiv ecx
cmp edx, 1
jne 0x41d752
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41d773
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret