Function at 0x404c0a
Capabilities:
Get disk information

Disassembly:
mov al, byte [0x43f820]
sub esp, 0x48c
push ebx
push ebp
push esi
mov esi, edx
push edi
mov edi, ecx
cmp al, 0xff
jne 0x404c30
call fcn.004098bf
test eax, eax
setne al
mov byte [0x43f820], al
test al, al
je 0x404c42
push esi
push edi
call fcn.0041def6
pop ecx
pop ecx
jmp 0x404ef2
test edi, edi
je 0x404ee4
test esi, esi
je 0x404ee4
push 0x43b07c
push edi
call fcn.0041d452
pop ecx
pop ecx
test eax, eax
je 0x404c73
call fcn.0041df7a
mov dword [eax], 2
jmp 0x404eef
xor ecx, ecx
cmp word [edi + 2], 0x3a
jne 0x404c99
movzx eax, word [edi]
test ax, ax
je 0x404c8a
cmp word [edi + 4], cx
je 0x404c63
push eax
call fcn.0041e056
movzx ebp, ax
pop ecx
sub ebp, 0x60
jmp 0x404ca0
call fcn.0041e096
mov ebp, eax
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404d88
push 0x43b084
push edi
call fcn.0041d452
pop ecx
pop ecx
test eax, eax
jne 0x404d1e
push ecx
lea eax, [esp + 0x28c]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.004047d2
pop ecx
pop ecx
test eax, eax
je 0x404d1e
lea eax, [esp + 0x288]
push eax
call fcn.0041c13e
pop ecx
test eax, eax
jne 0x404d05
lea ecx, [esp + 0x288]
call fcn.00404bbc
test eax, eax
je 0x404d1e
lea ecx, [esp + 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp eax, ecx
ja 0x404c63
and dword [esp + 0x54], 0
xor eax, eax
and dword [esp + 0x58], 0
push 0x10
pop ecx
push ecx
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], ecx
call fcn.00417170
mov eax, 0x7bc
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], ax
add esp, 0xc
xor eax, eax
inc eax
mov word [esp + 0x12], ax
mov word [esp + 0x16], ax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.004098ef
mov ecx, edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
jmp 0x404e90
cmp dword [esp + 0x4c], 0
mov ecx, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jne 0x404dbc
cmp dword [esp + 0x50], 0
jne 0x404dbc
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x404df3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x50]
push eax
call ecx
test eax, eax
je 0x404ece
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x28]
test eax, eax
je 0x404ece
lea ecx, [esp + 0x28]
call fcn.004098ef
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
cmp dword [esp + 0x44], 0
jne 0x404e07
cmp dword [esp + 0x48], 0
je 0x404e3a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x48]
push eax
call ecx
test eax, eax
je 0x404ece
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x28]
test eax, eax
je 0x404ece
lea ecx, [esp + 0x28]
call fcn.004098ef
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [esp + 0x3c], 0
jne 0x404e56
cmp dword [esp + 0x40], 0
jne 0x404e56
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
jmp 0x404e83
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x404ece
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x28]
test eax, eax
je 0x404ece
lea ecx, [esp + 0x28]
call fcn.004098ef
mov dword [esi + 0x30], eax
push ebx
mov dword [esi + 0x34], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x38]
mov edx, edi
call fcn.00404efd
xor ecx, ecx
mov word [esi + 6], ax
inc ecx
xor eax, eax
add eax, dword [esp + 0x58]
mov word [esi + 8], cx
mov ecx, dword [esp + 0x54]
adc ecx, 0
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ecx
mov word [esi + 4], ax
mov dword [esi + 0xa], eax
lea eax, [ebp - 1]
mov dword [esi], eax
mov dword [esi + 0x10], eax
xor eax, eax
jmp 0x404ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041df44
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x404eef
call fcn.0041df7a
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c
ret