Function at 0x404c00
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4317d6
push eax
mov dword fs:[0], esp
sub esp, 0x130
lea eax, [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
movsx esi, byte [esp + 0x14c]
push edi
push esi
push str._c:_
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x404c54
xor eax, eax
jmp 0x404fcc
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x44]
push str.DosDevices_c:
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ebx
push eax
push 1
push ebx
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x43bbf8]
test eax, eax
je 0x404ca1
xor eax, eax
jmp 0x404fcc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
lea edx, [esp + 0x4c]
push ebx
push edx
push eax
call dword [0x43bbf4]
test eax, eax
je 0x404ccf
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x43bc00]
xor eax, eax
jmp 0x404fcc
mov edx, dword [esp + 0x10]
add edx, 2
push edx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x18]
mov esi, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
lea ecx, [esp + 0x4c]
push ebx
push ecx
push edx
call dword [0x43bbf4]
cmp eax, ebx
je 0x404d59
push ebp
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call dword [0x43bc00]
xor eax, eax
jmp 0x404fcc
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x43bc00]
mov edx, dword [esp + 0x10]
push edx
push esi
push ebp
call fcn.00410a10
push ebp
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_operatordelete
push str.USBSTOR
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x18
test eax, eax
jne 0x404d9d
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x404fcc
mov al, byte [esp + 0x17]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x2c], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov cl, byte [esp + 0x17]
mov dword [esp + 0x148], ebx
mov byte [esp + 0x1c], cl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push ebx
push edx
push 0x437120
push eax
push esi
mov byte [esp + 0x15c], 1
call fcn.00410cd0
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x48]
add esp, 0x18
cmp eax, ebx
je 0x404e09
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 4
cmp ecx, 3
jae 0x404e7e
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov byte [esp + 0x148], bl
je 0x404e2f
push ebx
mov ecx, esi
call fcn.00407270
add esi, 0x10
cmp esi, edi
jne 0x404e1c
mov esi, dword [esp + 0x20]
push esi
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x148], 0xffffffff
je 0x404e6e
push ebx
mov ecx, esi
call fcn.00407270
add esi, 0x10
cmp esi, edi
jne 0x404e5b
mov esi, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x404fcc
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
cmp eax, ebx
jne 0x404e8d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x1c]
push ebx
push edx
push 0x43711c
push ecx
push eax
call fcn.00410cd0
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x14
cmp edx, ebx
je 0x404eb9
mov eax, ebp
sub eax, edx
and al, 0xf0
cmp eax, 0x20
je 0x404f2a
cmp edx, ebp
mov byte [esp + 0x148], bl
mov edi, ebp
mov esi, edx
je 0x404edb
push ebx
mov ecx, esi
call fcn.00407270
add esi, 0x10
cmp esi, edi
jne 0x404ec8
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x148], 0xffffffff
je 0x404f1a
push ebx
mov ecx, esi
call fcn.00407270
add esi, 0x10
cmp esi, edi
jne 0x404f07
mov esi, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x404fcc
mov edi, dword [edx + 4]
cmp edi, ebx
jne 0x404f37
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x148], bl
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, ebp
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
mov esi, edx
je 0x404f7d
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x404f68
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x148], 0xffffffff
je 0x404fbe
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x404fa9
mov esi, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 8