Function at 0x539884
Capabilities:
Get disk information

Disassembly:
mov eax, 0x55c35a
call fcn.005493c0
sub esp, 0x270
mov eax, dword [0x5c58d0]
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x234], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor edi, edi
lea eax, [ebp - 0x260]
inc edi
push eax
mov edx, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.005393e6
mov esi, 0x57e6f4
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
lea ecx, [ebp - 0x260]
mov byte [ebp - 0x22d], al
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0x22d], bl
je 0x539905
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], SysReAllocString
mov dword [eax + 4], ebx
push ebx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x238], edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push esi
mov esi, dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x234], edi
call esi
test al, al
pop ecx
pop ecx
jne 0x539975
push edi
push edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push 3
pop ecx
push 0x579544
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x234], ecx
call esi
test al, al
pop ecx
pop ecx
mov byte [ebp - 0x22d], bl
je 0x53997c
mov byte [ebp - 0x22d], 1
test byte [ebp - 0x234], 2
mov dword [ebp - 4], 2
je 0x53999f
and dword [ebp - 0x234], 0xfffffffd
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [ebp - 0x234], 1
mov dword [ebp - 4], ebx
je 0x5399b7
lea ecx, [ebp - 0x27c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0x22d], bl
je 0x5399c5
mov dword [ebp - 0x238], ebx
mov esi, 0xff
xor eax, eax
push 0x3f
pop ecx
mov byte [ebp - 0x22c], bl
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 0x12c], bl
pop ecx
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
stosb byte es:[edi], al
je 0x539a1d
cmp dword [ebp - 0x14], 0x10
jb 0x539a18
mov eax, dword [ebp - 0x28]
jmp 0x539a1f
lea eax, [ebp - 0x28]
jmp 0x539a1f
xor eax, eax
push esi
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
push esi
lea ecx, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
mov dword [ebp - 0x234], eax
je 0x539aa1
lea eax, [ebp - 0x12c]
push str.NTFS
push eax
call dword [sym.imp.MSVCR71.dll__mbsicmp]
test eax, eax
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
jne 0x539a7a
or dword [edi], 0xffffffff
mov dword [edi + 4], SysReAllocString
lea eax, [ebp - 0x12c]
push str.FAT32
push eax
call dword [sym.imp.MSVCR71.dll__mbsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x539b4a
or dword [edi], 0xffffffff
mov dword [edi + 4], ebx
jmp 0x539b4a
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x539b56
dec eax
push eax
push ebx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x57e6f4
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x539b34
cmp eax, ebx
jbe 0x539b34
inc eax
push eax
push ebx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x5399ca
cmp dword [ebp - 0x238], ebx
je 0x539b56
push 0x57e144
lea ecx, [ebp - 0x2c]
call dword [0x575208]
cmp dword [ebp - 0x234], ebx
je 0x5399ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0054939e
leave
ret