Function at 0x408360
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40b10c
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x410018]
xor eax, esp
mov dword [esp + 0x940], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x410018]
xor eax, esp
push eax
lea eax, [esp + 0x958]
mov dword fs:[0], eax
mov ax, word [0x40c79c]
mov cl, byte [0x40c79e]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x4088fd
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
lea ebx, [ebx]
test al, 1
je 0x4088ed
lea edx, [esp + 0x19]
push edx
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x40c7a0
lea ecx, [esp + 0x17c]
mov dword [esp + 0x964], ebx
call dword [sym.imp.MSVCP90.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__]
push 0x40c558
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP90.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__]
push 0xf8
lea ecx, [esp + 0x322]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x328], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x188]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x190], esi
jae 0x408451
lea eax, [esp + 0x17c]
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x408620
push 0xf8
lea ecx, [esp + 0x222]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x228], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x64], eax
and ecx, 0x80000000
mov dword [esp + 0x60], edx
fild qword [esp + 0x60]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ebx
fild qword [esp + 0x50]
add esp, 4
lea eax, [esp + 0x224]
fchs
faddp st(1)
fmul qword [0x40c880]
fstp qword [esp]
push str._.0f
push eax
call ebp
lea edi, [esp + 0x22c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4084e3
mov ecx, dword [0x40c7ac]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [edi], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
fild qword [esp + 0x3c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebx
fild qword [esp + 0x4c]
sub esp, 8
fchs
faddp st(1)
fld qword [0x40c878]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x408572
fmul qword [0x40c880]
lea eax, [esp + 0x324]
fstp qword [esp]
push str._.1f
push eax
call ebp
lea edi, [esp + 0x32c]
add esp, 0x10
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408560
mov ecx, dword [0x40c7ac]
mov dword [edi], ecx
jmp 0x4085a4
fmul qword [0x40c870]
lea edx, [esp + 0x324]
fstp qword [esp]
push str._.1f
push edx
call ebp
lea edi, [esp + 0x32c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408595
mov eax, dword [0x40c7b8]
mov dword [edi], eax
lea eax, [esp + 0x31c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4085b0
mov ecx, dword [str._avl]
mov dx, word [0x40c7c0]
lea edi, [esp + 0x31c]
mov dword [eax], ecx
mov word [eax + 4], dx
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4085d3
mov eax, dword [0x40c7c4]
mov dword [edi], eax
lea eax, [esp + 0x21c]
mov edx, eax
jmp 0x4085f0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4085f0
lea edi, [esp + 0x31c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x408601
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x10
jmp 0x40862b
mov dword [esp + 0x31c], 0x203020
push 0x40c7c8
lea ecx, [esp + 0x198]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x31c]
push ecx
lea ecx, [esp + 0x198]
mov byte [esp + 0x964], 1
call dword [sym.imp.MSVCP90.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__]
push 0x40c7cc
lea ecx, [esp + 0x198]
call dword [sym.imp.MSVCP90.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__]
push 0x434
lea edx, [esp + 0x524]
push ebx
push edx
mov dword [esp + 0x528], ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x188]
add esp, 0xc
cmp dword [esp + 0x190], esi
jae 0x4086a0
lea eax, [esp + 0x17c]
push 0xfde9
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], ecx
call fcn.00409390
lea edx, [esp + 0x1c]
mov byte [esp + 0x960], 2
mov ecx, dword [esp + 0x74]
push edx
call fcn.004091e0
mov byte [esp + 0x960], 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x4086eb
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x21c
lea edx, [esp + 0x534]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0xfde9
lea edx, [esp + 0x520]
lea ecx, [esp + 0x224]
push edx
lea eax, [esp + 0x224]
mov dword [esp + 0x224], ecx
call fcn.004092d0
lea eax, [esp + 0x24]
mov byte [esp + 0x960], 5
mov ecx, dword [esp + 0x21c]
push eax
call fcn.00409140
mov byte [esp + 0x960], 7
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x220]
cmp eax, ecx
je 0x40876c
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x17c]
cmp dword [esp + 0x190], esi
jae 0x408783
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0x30
mov esi, eax
lea eax, [esp + 0x1ee]
xor edx, edx
push ebx
push eax
mov word [esp + 0x1f4], dx
call sub.MSVCR90.dll_memset
push 0xa
lea ecx, [esp + 0x1f8]
push ecx
push esi
call dword [sym.imp.MSVCR90.dll__itoa]
add esp, 0x18
lea edx, [esp + 0x1e8]
push edx
lea ecx, [esp + 0x1b4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x412c70
lea ecx, [esp + 0x17c]
mov byte [esp + 0x964], 8
call dword [sym.imp.MSVCP90.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 eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP90.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__]
push 0x412c8c
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP90.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__]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP90.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__]
lea edx, [esp + 0x194]
push edx
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP90.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__]
push 0x13
sub esp, 0x1c
lea eax, [esp + 0x198]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00407160
add esp, 0x20
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x960], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x960], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x960], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x194]
mov byte [esp + 0x960], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x178]
mov dword [esp + 0x960], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x20]
inc byte [esp + 0x19]
shr eax, 1
mov dword [esp + 0x20], eax
jne 0x4083d0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xf8
lea eax, [esp + 0x422]
xor edx, edx
push ebx
push eax
mov word [esp + 0x428], dx
call sub.MSVCR90.dll_memset
movzx ecx, word [esp + 0x72]
movzx edx, word [esp + 0x70]
push ecx
push edx
push str._02d:_02d
mov ecx, 0xfa
lea edi, [esp + 0x434]
call fcn.00401280
add esp, 0x18
mov eax, edi
push eax
lea ecx, [esp + 0x1d0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 5
sub esp, 0x1c
mov edx, edi
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov dword [esp + 0x984], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.00407160
add esp, 0x20
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x960], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x958]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x940]
xor ecx, esp
call fcn.00409cfa
add esp, 0x950
ret