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

Disassembly:
push 0xffffffffffffffff
push 0x40d8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x41404c]
xor eax, esp
mov dword [esp + 0x940], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41404c]
xor eax, esp
push eax
lea eax, [esp + 0x958]
mov dword fs:[0], eax
mov ax, word [0x410adc]
mov cl, byte [0x410ade]
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 0x40a2cd
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
lea ebx, [ebx]
test al, 1
je 0x40a2bd
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 0x410ae0
lea ecx, [esp + 0x17c]
mov dword [esp + 0x964], ebx
call dword [0x4101d8]
push 0x41082c
lea ecx, [esp + 0x17c]
call dword [0x4101d8]
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 0x409e11
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 0x409ff0
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 [0x410b90]
fstp qword [esp]
push 0x410ae4
push eax
call ebp
lea edi, [esp + 0x22c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409ea3
mov ecx, dword [0x410aec]
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 [0x410b88]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x409f32
fmul qword [0x410b90]
lea eax, [esp + 0x324]
fstp qword [esp]
push 0x410ae4
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 0x409f20
mov ecx, dword [0x410aec]
mov dword [edi], ecx
jmp 0x409f64
fmul qword [0x410b80]
lea edx, [esp + 0x324]
fstp qword [esp]
push 0x410ae4
push edx
call ebp
lea edi, [esp + 0x32c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409f55
mov eax, dword [0x410af0]
mov dword [edi], eax
lea eax, [esp + 0x31c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x409f70
mov ecx, dword [str._free]
mov dx, word [0x410af8]
mov dword [eax], ecx
mov cl, byte [0x410afa]
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 0x409fa0
mov edx, dword [0x410afc]
lea eax, [esp + 0x21c]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409fc0
lea edi, [esp + 0x31c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x409fd1
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 0x409ffb
mov dword [esp + 0x31c], 0x203020
push 0x410b00
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 [0x4101d8]
push 0x410b04
lea ecx, [esp + 0x198]
call dword [0x4101d8]
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 0x40a070
lea eax, [esp + 0x17c]
push 0xfde9
lea edx, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], edx
call fcn.0040b710
lea eax, [esp + 0x1c]
mov byte [esp + 0x960], 2
mov ecx, dword [esp + 0x74]
push eax
call fcn.0040b580
mov byte [esp + 0x960], 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x40a0bb
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.0040b650
lea eax, [esp + 0x24]
mov byte [esp + 0x960], 5
mov ecx, dword [esp + 0x21c]
push eax
call fcn.0040b4c0
mov byte [esp + 0x960], 7
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x220]
cmp eax, ecx
je 0x40a13c
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x17c]
cmp dword [esp + 0x190], esi
jae 0x40a153
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 0x417070
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 0x41708c
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 [0x4101d8]
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 0x10
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.004082c0
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 0x40a265
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 0x40a28d
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 0x409d90
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 section..text
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 0xd
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.004082c0
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.0040c7c6
add esp, 0x950
ret