Function at 0x410d8c
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0x1a86b0
call fcn.00450903
pop ecx
pop ecx
mov ebx, eax
and dword [ebx], 0
mov esi, 0x104
push esi
lea eax, [ebp - 0x11c]
push eax
call dword [0x4a327c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410ddb
mov byte [ebp - 0x11c], 0
jmp 0x410e81
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetDriveTypeA]
cmp eax, 5
je 0x410e63
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetDriveTypeA]
cmp eax, 2
jne 0x410e26
lea eax, [ebp - 0x11c]
push eax
call fcn.0040e8b4
test eax, eax
je 0x410e26
mov ecx, dword [eax + 0x18]
or ecx, dword [eax + 0x1c]
push eax
jne 0x410e20
call fcn.0045038b
pop ecx
jmp 0x410e63
call fcn.0045038b
pop ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.0040e881
mov eax, dword [ebx]
imul eax, eax, 0x6a0
lea ecx, [ebp - 0x11c]
lea edx, [eax + ebx + 0x14]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410e44
mov eax, dword [ebx]
imul eax, eax, 0x6a0
mov dword [eax + ebx + 0x558], 1
inc dword [ebx]
push esi
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [0x4a328c]
test eax, eax
jne 0x410ddb
push edi
call dword [0x4a3288]
call dword [sym.imp.___total_physical_size__lu_MB_GetLogicalDrives]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], 0x41
mov esi, dword [ebp - 0x328]
push esi
lea eax, [ebp - 0x18]
push 0x46a8cc
push eax
call fcn.00450c76
add esp, 0xc
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x11c], 0
call fcn.0040e853
push eax
call dword [0x4a3280]
test eax, eax
jne 0x410ee8
inc eax
lea ecx, [esi - 0x41]
shl eax, cl
test dword [ebp - 0x32c], eax
je 0x411050
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ef1
sub eax, edx
lea eax, [ebp - 0x11c]
je 0x410f0a
push eax
call fcn.0040e881
jmp 0x410f87
push dword [ebp - 0x328]
push str.._c:
push eax
call fcn.00450c76
add esp, 0xc
push 0x104
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
test eax, eax
je 0x410f56
push 0xe
lea eax, [ebp - 0x324]
push str.DeviceLanman
push eax
call fcn.00450f08
add esp, 0xc
test eax, eax
je 0x411050
mov eax, dword [ebx]
imul eax, eax, 0x6a0
lea ecx, [ebp - 0x11c]
lea edx, [eax + ebx + 0x14]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410f68
mov eax, dword [ebx]
imul eax, eax, 0x6a0
mov dword [eax + ebx + 0x558], 1
inc dword [ebx]
xor esi, esi
cmp dword [ebx], esi
jbe 0x411050
lea edi, [ebx + 0x14]
lea eax, [ebp - 0x11c]
push eax
push edi
call fcn.00450597
pop ecx
pop ecx
test eax, eax
je 0x410fb7
inc esi
add edi, 0x6a0
cmp esi, dword [ebx]
jb 0x410f94
jmp 0x411050
push 0x104
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
test eax, eax
je 0x411035
push 0xe
lea eax, [ebp - 0x324]
push str.DeviceFloppy
push eax
call fcn.00450f08
add esp, 0xc
test eax, eax
jne 0x410ffe
mov eax, esi
imul eax, eax, 0x6a0
mov dword [eax + ebx + 0x560], 0x80
push 4
lea eax, [ebp - 0x324]
push 0x46a920
push eax
call fcn.00450f08
add esp, 0xc
test eax, eax
je 0x411050
imul esi, esi, 0x6a0
lea eax, [ebp - 0x18]
mov ecx, eax
sub esi, ecx
lea esi, [esi + ebx + 0x10]
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x411029
jmp 0x411050
imul esi, esi, 0x6a0
lea eax, [ebp - 0x18]
mov ecx, eax
sub esi, ecx
lea esi, [esi + ebx + 0x10]
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x411046
inc dword [ebp - 0x328]
cmp dword [ebp - 0x328], 0x5a
jle 0x410e97
xor edi, edi
cmp dword [ebx], edi
jbe 0x411097
lea esi, [ebx + 0x560]
cmp dword [esi], 0x80
je 0x41108c
lea eax, [esi - 0x54c]
push eax
call fcn.0040e853
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetDriveTypeA]
mov dword [esi], eax
inc edi
add esi, 0x6a0
cmp edi, dword [ebx]
jb 0x41106f
xor edi, edi
cmp dword [ebx], edi
jbe 0x4110c3
lea esi, [ebx + 0x14]
cmp dword [esi + 0x54c], 0x80
je 0x4110b8
push esi
call fcn.0040e8b4
mov dword [esi + 0x554], eax
inc edi
add esi, 0x6a0
cmp edi, dword [ebx]
jb 0x4110a0
and dword [ebp - 0x328], 0
cmp dword [ebx], 0
jbe 0x41126d
lea edi, [ebx + 0x670]
mov esi, 0x104
lea ecx, [edi - 0x104]
cmp dword [ecx - 0xc], 0x80
je 0x411253
push 0x20
push edi
lea edx, [ebp - 0x338]
push edx
push 0
push 0
push esi
lea eax, [edi - 0x65c]
push ecx
push eax
call fcn.0040e853
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetVolumeInformationA]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411119
sub eax, ecx
jne 0x411133
mov eax, dword [str.Unknown]
mov dword [edi], eax
mov eax, dword [0x46a884]
mov dword [edi + 4], eax
test byte [ebp - 0x338], 0x80
je 0x411253
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [edi - 0x65c]
push eax
call fcn.0040e853
push eax
call dword [0x4a3274]
mov dword [ebp - 0x32c], eax
cmp eax, 0xffffffff
je 0x411253
lea eax, [ebp - 0x220]
push eax
lea eax, [edi - 0x65c]
push eax
push 0x4696e0
call fcn.0042f614
add esp, 0xc
push esi
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [0x4a3280]
test eax, eax
je 0x41122b
lea eax, [ebp - 0x11c]
push eax
call fcn.0040e881
lea eax, [ebp - 0x220]
push eax
call fcn.0040e881
and dword [ebp - 0x330], 0
cmp dword [ebx], 0
jbe 0x41122b
lea eax, [ebp - 0x220]
mov dword [ebp - 0x334], 0x430
sub dword [ebp - 0x334], eax
lea esi, [ebx + 0x14]
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.00450597
pop ecx
pop ecx
test eax, eax
jne 0x411210
mov edx, dword [ebp - 0x334]
lea eax, [ebp - 0x220]
add edx, esi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4111fa
mov eax, dword [ebp - 0x328]
mov dword [esi + 0x534], eax
inc dword [ebp - 0x330]
mov eax, dword [ebp - 0x330]
add esi, 0x6a0
cmp eax, dword [ebx]
jb 0x4111d9
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x32c]
call dword [0x4a3278]
test eax, eax
jne 0x41116a
push dword [ebp - 0x32c]
call dword [0x4a3284]
inc dword [ebp - 0x328]
mov eax, dword [ebp - 0x328]
add edi, 0x6a0
cmp eax, dword [ebx]
jb 0x4110de
and dword [ebp - 0x328], 0
cmp dword [ebx], 0
jbe 0x4112e1
lea esi, [ebx + 0x444]
mov dword [ebp - 0x32c], esi
cmp byte [esi], 0
je 0x4112c5
push dword [esi + 0x104]
lea edi, [esi - 0x228]
push edi
push ebx
call fcn.0040f3ea
mov eax, esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41129f
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4112a9
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x32c]
inc dword [ebp - 0x328]
mov eax, dword [ebp - 0x328]
add esi, 0x6a0
mov dword [ebp - 0x32c], esi
cmp eax, dword [ebx]
jb 0x411285
and dword [ebp - 0x328], 0
cmp dword [ebx], 0
jbe 0x4113f7
lea esi, [ebx + 0x690]
cmp dword [esi - 0x130], 0x80
je 0x4113dd
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x334]
push ecx
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x338]
lea eax, [esi - 0x67c]
push ecx
push eax
call fcn.0040e853
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetDiskFreeSpaceA]
test eax, eax
je 0x411399
mov eax, dword [ebp - 0x338]
mul dword [ebp - 0x32c]
push edx
mov edi, eax
push edi
push 0
push dword [ebp - 0x330]
mov dword [ebp - 0x33c], edx
call fcn.00453310
push dword [ebp - 0x33c]
mov dword [esi], eax
push edi
push 0
push dword [ebp - 0x334]
mov dword [esi + 4], edx
call fcn.00453310
mov dword [esi + 8], eax
mov eax, dword [esi - 0x128]
mov dword [esi + 0xc], edx
test eax, eax
je 0x4113b6
mov ecx, dword [eax + 0x18]
sub ecx, dword [esi]
mov eax, dword [eax + 0x1c]
sbb eax, dword [esi + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x4113b6
mov eax, dword [esi - 0x128]
test eax, eax
je 0x4113b6
mov ecx, dword [eax + 0x18]
mov dword [esi], ecx
mov eax, dword [eax + 0x1c]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
lea eax, [esi - 0x67c]
push eax
call fcn.0040ee20
mov byte [esi - 0x144], al
mov eax, dword [esi - 0x128]
test eax, eax
je 0x4113dd
push dword [eax + 8]
call fcn.00415f41
mov dword [esi + 0x18], eax
inc dword [ebp - 0x328]
mov eax, dword [ebp - 0x328]
add esi, 0x6a0
cmp eax, dword [ebx]
jb 0x4112f7
push dword [ebp + 8]
push ebx
call fcn.00410926
push ebx
call fcn.0041098c
push 0x40e6e9
push 0x6a0
push dword [ebx]
lea eax, [ebx + 0x10]
push eax
call fcn.004533e0
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4