Function at 0x41e420
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f208
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4620f4]
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
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 0x450adc
push eax
call fcn.0041f5c0
test al, al
je 0x41e60b
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x41e4ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41e4db
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403be0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
add eax, 8
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c470
mov eax, dword [esi + 4]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 8]
test eax, eax
je 0x41e50f
cmp dword [eax + 4], 0
jne 0x41e5fa
lea ecx, [ebp - 0x50]
call fcn.00436e20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x41e5b5
push str.Error_occurred_while_reading_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x40001
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push 0x450334
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fb53
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450480
mov dword [ecx + 0xc], str.winnt_dir::GetDriveSize
mov dword [ecx + 0x10], 0x44a
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov byte [ebp - 4], 4
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402f20
jmp 0x41e5ee
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx + 4], eax
lea ecx, [esi + 8]
mov eax, dword [esi + 4]
push 0x465148
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00436eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042c690
jmp 0x41e690
push str.Error_occurred_while_reading_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x40001
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fb47
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x4503a8
mov dword [ecx + 0xc], 0x45031c
mov dword [ecx + 0x10], 0x43e
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x2c]
call fcn.00412b70
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x41e690
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x41e690
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41e673
cmp dword [ebp - 0x14], 8
jb 0x41e6a1
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
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.004051a4
mov esp, ebp
pop ebp
ret 0xc