Function at 0x404230
Capabilities:
Get disk information
Get disk size
Read file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x4141b0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x10], ebx
je 0x404264
cmp eax, ebx
je 0x404264
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404267
mov dword [esi + 0x24], ebx
mov di, word [esp + 0x24c]
push 0x10
push esi
push ebx
push ebx
mov eax, 0x5c
push ebx
push ebx
mov word [esp + 0x4c], ax
mov word [esp + 0x4e], ax
mov word [esp + 0x52], ax
mov word [esp + 0x58], ax
push ebx
lea eax, [esp + 0x58]
push eax
mov word [esp + 0x58], 0x2e
mov word [esp + 0x5c], di
mov word [esp + 0x5e], 0x3a
mov word [esp + 0x62], bx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4042be
xor al, al
jmp 0x4044b8
push ebp
push ebx
push ebx
lea eax, [esi + 0x30]
push eax
lea ebp, [esi + 0x2c]
push ebp
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x404372
push 0x401278
push esi
mov word [esp + 0x4c], bx
mov dword [esi + 0x20], ebx
call fcn.00412773
add esp, 8
test eax, eax
jne 0x4042ff
mov dword [esi + 0x20], 5
jmp 0x40434e
push 0x40126c
push esi
call fcn.00412773
add esp, 8
test eax, eax
jne 0x40431a
mov dword [esi + 0x20], 3
jmp 0x40434e
push 0x401264
push esi
call fcn.00412773
add esp, 8
test eax, eax
jne 0x404335
mov dword [esi + 0x20], 2
jmp 0x40434e
push 0x401258
push esi
call fcn.00412773
add esp, 8
test eax, eax
jne 0x40434e
mov dword [esi + 0x20], 4
cmp dword [esi + 0x20], ebx
je 0x404372
push ebx
push ebx
push 3
push ebx
push 3
push 0x12019f
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x404379
xor al, al
jmp 0x4044b7
mov ecx, dword [ebp]
imul ecx, dword [esi + 0x30]
mov word [esi + 0x28], di
mov edi, 2
cmp dword [esi + 0x20], edi
mov dword [ebp], ecx
jne 0x4043ea
xor ecx, ecx
push ebx
lea edx, [esp + 0x18]
push edx
push 0x20
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push 0x74004
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4043ea
mov al, byte [esp + 0x30]
cmp al, 1
jne 0x4043e3
mov dword [esi + 0x20], 1
jmp 0x4043ea
cmp al, 4
jne 0x4043ea
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x404404
cmp eax, edi
je 0x404404
cmp eax, 3
je 0x404404
cmp eax, 4
jne 0x404495
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push 0x200
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404495
mov ecx, dword [esi + 0x20]
cmp ecx, 4
jne 0x404451
mov eax, dword [esi + 0x30]
imul eax, dword [esp + 0xa0]
jmp 0x40448f
cmp ecx, 3
movzx eax, word [esp + 0x56]
jne 0x404469
movzx ecx, byte [esp + 0x58]
imul ecx, dword [esp + 0x6c]
add eax, ecx
jmp 0x40448c
movzx ecx, word [esp + 0x5e]
movzx edi, byte [esp + 0x58]
movzx edx, word [esp + 0x59]
imul ecx, edi
shl edx, 5
add edx, 0x1ff
sar edx, 9
add ecx, eax
lea eax, [ecx + edx]
shl eax, 9
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], eax
lea edx, [esi + 0x48]
push edx
mov ecx, esi
call fcn.004041d0
mov eax, dword [ebp]
push eax
call fcn.00406e31
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
mov al, 1
jne 0x4044b7
mov al, bl
pop ebp
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406f68
add esp, 0x23c
ret 4