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

Disassembly:
push 0xffffffffffffffff
push 0x40c88c
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x940], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0x958]
mov dword fs:[0], eax
mov ax, word [0x40eafc]
mov cl, byte [0x40eafe]
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 0x409bfd
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
lea ebx, [ebx]
test al, 1
je 0x409bed
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 0x40eb00
lea ecx, [esp + 0x17c]
mov dword [esp + 0x964], ebx
call dword [0x40e1b0]
push 0x40e83c
lea ecx, [esp + 0x17c]
call dword [0x40e1b0]
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 0x409741
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 0x409920
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 [0x40eba0]
fstp qword [esp]
push 0x40eb04
push eax
call ebp
lea edi, [esp + 0x22c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4097d3
mov ecx, dword [0x40eb0c]
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 [0x40eb98]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x409862
fmul qword [0x40eba0]
lea eax, [esp + 0x324]
fstp qword [esp]
push 0x40eb04
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 0x409850
mov ecx, dword [0x40eb0c]
mov dword [edi], ecx
jmp 0x409894
fmul qword [0x40eb90]
lea edx, [esp + 0x324]
fstp qword [esp]
push 0x40eb04
push edx
call ebp
lea edi, [esp + 0x32c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409885
mov eax, dword [0x40eb10]
mov dword [edi], eax
lea eax, [esp + 0x31c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4098a0
mov ecx, dword [str._free]
mov dx, word [0x40eb18]
mov dword [eax], ecx
mov cl, byte [0x40eb1a]
lea edi, [esp + 0x31c]
mov word [eax + 4], dx
mov byte [eax + 6], cl
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4098d0
mov edx, dword [0x40eb1c]
lea eax, [esp + 0x21c]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4098f0
lea edi, [esp + 0x31c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x409901
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 0x40992b
mov dword [esp + 0x31c], 0x203020
push 0x40eb20
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 eax, [esp + 0x31c]
push eax
lea ecx, [esp + 0x198]
mov byte [esp + 0x964], 1
call dword [0x40e1b0]
push 0x40eb24
lea ecx, [esp + 0x198]
call dword [0x40e1b0]
push 0x434
lea ecx, [esp + 0x524]
push ebx
push ecx
mov dword [esp + 0x528], ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x188]
add esp, 0xc
cmp dword [esp + 0x190], esi
jae 0x4099a0
lea eax, [esp + 0x17c]
push 0xfde9
lea edx, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], edx
call fcn.0040a750
lea eax, [esp + 0x1c]
mov byte [esp + 0x960], 2
mov ecx, dword [esp + 0x74]
push eax
call fcn.0040a5c0
mov byte [esp + 0x960], 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x4099eb
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.0040a690
lea eax, [esp + 0x24]
mov byte [esp + 0x960], 5
mov ecx, dword [esp + 0x21c]
push eax
call fcn.0040a500
mov byte [esp + 0x960], 7
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x220]
cmp eax, ecx
je 0x409a6c
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x17c]
cmp dword [esp + 0x190], esi
jae 0x409a83
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 0x414fd0
lea ecx, [esp + 0x17c]
mov byte [esp + 0x964], 8
call dword [0x40e1b4]
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x17c]
call dword [0x40e1b4]
push 0x41505c
lea ecx, [esp + 0x17c]
call dword [0x40e1b4]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x17c]
call dword [0x40e1b0]
lea edx, [esp + 0x194]
push edx
lea ecx, [esp + 0x17c]
call dword [0x40e1b4]
push 0xb
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.00407d60
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 0x409b95
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 0x409bbd
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 0x4096c0
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 8
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.00407d60
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.0040b0ba
add esp, 0x950
ret