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

Disassembly:
push 0xffffffffffffffff
push 0x40cdec
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x940], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413018]
xor eax, esp
push eax
lea eax, [esp + 0x958]
mov dword fs:[0], eax
mov ax, word [0x40fb3c]
mov cl, byte [0x40fb3e]
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 0x409f5d
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
lea ebx, [ebx]
test al, 1
je 0x409f4d
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 0x40fb40
lea ecx, [esp + 0x17c]
mov dword [esp + 0x964], ebx
call dword [0x40f1c8]
push 0x40f894
lea ecx, [esp + 0x17c]
call dword [0x40f1c8]
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 0x409aa1
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 0x409c80
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 [0x40fbd0]
fstp qword [esp]
push 0x40fb44
push eax
call ebp
lea edi, [esp + 0x22c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409b33
mov ecx, dword [0x40fb4c]
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 [0x40fbc8]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x409bc2
fmul qword [0x40fbd0]
lea eax, [esp + 0x324]
fstp qword [esp]
push 0x40fb44
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 0x409bb0
mov ecx, dword [0x40fb4c]
mov dword [edi], ecx
jmp 0x409bf4
fmul qword [0x40fbc0]
lea edx, [esp + 0x324]
fstp qword [esp]
push 0x40fb44
push edx
call ebp
lea edi, [esp + 0x32c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409be5
mov eax, dword [0x40fb50]
mov dword [edi], eax
lea eax, [esp + 0x31c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x409c00
mov ecx, dword [str._free]
mov dx, word [0x40fb58]
mov dword [eax], ecx
mov cl, byte [0x40fb5a]
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 0x409c30
mov edx, dword [0x40fb5c]
lea eax, [esp + 0x21c]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409c50
lea edi, [esp + 0x31c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x409c61
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 0x409c8b
mov dword [esp + 0x31c], 0x203020
push 0x40fb60
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 [0x40f1c8]
push 0x40fb64
lea ecx, [esp + 0x198]
call dword [0x40f1c8]
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 0x409d00
lea eax, [esp + 0x17c]
push 0xfde9
lea edx, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], edx
call fcn.0040ac10
lea eax, [esp + 0x1c]
mov byte [esp + 0x960], 2
mov ecx, dword [esp + 0x74]
push eax
call fcn.0040aa60
mov byte [esp + 0x960], 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x409d4b
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.0040ab50
lea eax, [esp + 0x24]
mov byte [esp + 0x960], 5
mov ecx, dword [esp + 0x21c]
push eax
call fcn.0040a9c0
mov byte [esp + 0x960], 7
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x220]
cmp eax, ecx
je 0x409dcc
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x17c]
cmp dword [esp + 0x190], esi
jae 0x409de3
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 0x415d7c
lea ecx, [esp + 0x17c]
mov byte [esp + 0x964], 8
call dword [0x40f1cc]
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x17c]
call dword [0x40f1cc]
push 0x4161b4
lea ecx, [esp + 0x17c]
call dword [0x40f1cc]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x17c]
call dword [0x40f1c8]
lea edx, [esp + 0x194]
push edx
lea ecx, [esp + 0x17c]
call dword [0x40f1cc]
push 4
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.00408250
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 0x409ef5
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 0x409f1d
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 0x409a20
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 1
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.00408250
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.0040b57a
add esp, 0x950
ret