Function at 0x4047b0
Capabilities:
Get disk information
Get disk size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x274
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea ecx, [esp + 0x175]
push esi
push ecx
mov dword [esp + 0x54], eax
mov byte [esp + 0x17c], 0
call fcn.00418570
push 0x103
lea edx, [esp + 0x79]
push esi
push edx
mov byte [esp + 0x80], 0
call fcn.00418570
add esp, 0x18
lea eax, [esp + 0x170]
push eax
push 0x64
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x170], 0
mov dword [esp + 0x4c], eax
lea ebx, [esp + 0x170]
je 0x4049ee
lea ecx, [ecx]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x404869
push ebx
push str.DEV:__s
lea ecx, [esp + 0x70]
push ecx
jmp 0x4048bb
cmp eax, 5
jne 0x40487b
push ebx
push str.CD:__s
lea edx, [esp + 0x70]
push edx
jmp 0x4048bb
cmp eax, 2
jne 0x404888
push ebx
push str.MOVEDEV:__s
jmp 0x4048b6
cmp eax, 4
jne 0x40489a
push ebx
push str.NETDEV:__s
lea ecx, [esp + 0x70]
push ecx
jmp 0x4048bb
cmp eax, 6
jne 0x4048ac
push ebx
push str.VIRDEV:__s
lea edx, [esp + 0x70]
push edx
jmp 0x4048bb
cmp eax, esi
jne 0x4048c3
push ebx
push 0x426640
lea eax, [esp + 0x70]
push eax
call fcn.0041861e
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
lea eax, [esp + 0x68]
je 0x404989
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4048e8
sub eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov cl, 0x14
call fcn.004190e0
mov esi, eax
mov eax, dword [esp + 0x30]
mov edi, edx
mov edx, dword [esp + 0x34]
mov cl, 0x14
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
call fcn.004190e0
sub esi, eax
mov eax, dword [esp + 0x28]
sbb edi, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
fild qword [esp + 0x60]
sub esp, 8
fld qword [0x426638]
mov cl, 0x14
fmul st(1), st(0)
fxch st(1)
fstp qword [esp]
call fcn.004190e0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], eax
fild qword [esp + 0x58]
sub esp, 0x10
lea edx, [esp + ecx + 0x80]
fmul st(1)
fstp qword [esp + 8]
fild qword [esp + 0x70]
fmulp st(1)
fstp qword [esp]
push 0x4265fc
push edx
call fcn.0041861e
add esp, 0x20
xor esi, esi
jmp 0x4049ab
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404990
mov cx, word [0x4265f8]
mov dl, byte [0x4265fa]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4049b2
push esi
sub eax, edx
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4049d7
sub eax, edx
cmp byte [ebx + eax + 1], cl
lea ebx, [ebx + eax + 1]
jne 0x404850
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
mov esp, ebp
pop ebp
ret