Function at 0x4a47e0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e4129
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x130
test eax, eax
push edi
je 0x4a4e61
push ebx
push ebp
push esi
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
test esi, esi
je 0x4a4931
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push esi
call edi
test eax, eax
je 0x4a4840
push 0x400
push 0
push esi
call edi
test eax, eax
jne 0x4a4832
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x148], 0
mov ebx, 0x514
mov ebp, 0x41
mov dword [esp + 0x14], 0x1a
push ebp
lea eax, [esp + 0x14]
push str._c:_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4a48f3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 0
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push 0
push edx
push 0
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x50]
push 0x104
push eax
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4a48f3
lea edx, [esp + 0x3c]
push ebp
push edx
lea eax, [esp + 0x18]
push str._s___c:_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
push ebx
push 0
push esi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x14]
inc ebx
inc ebp
dec eax
mov dword [esp + 0x14], eax
jne 0x4a4866
mov edx, dword [esp + 0x150]
mov ebp, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x400
push 1
push edx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4a4937
mov ebp, dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x52d100]
mov edi, 0x52d100
mov ecx, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edi
call dword [eax + 4]
mov eax, dword [0x52662c]
mov esi, 1
test eax, eax
mov dword [esp + 0x148], esi
jne 0x4a49c3
mov eax, dword [0x526628]
test eax, eax
jne 0x4a49c3
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x148], 2
je 0x4a4998
push 0
mov ecx, eax
call fcn.00404bd0
jmp 0x4a499a
xor eax, eax
mov ecx, dword [0x517cd8]
mov byte [esp + 0x148], 1
push ecx
push 0x404ba0
mov ecx, 0x52b648
mov dword [0x526628], eax
call fcn.00402160
mov dword [0x52662c], esi
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, edi
mov dword [esp + 0x148], 0xffffffff
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [eax + 0xa8]
mov eax, dword [esp + 0x20]
mov ebx, 3
test eax, eax
je 0x4a4a0f
mov esi, dword [esp + 0x150]
push 0
push 0x8004
push esi
call ebp
push 0
jmp 0x4a4a20
mov esi, dword [esp + 0x150]
push ebx
push 0x8004
push esi
call ebp
push ebx
push 0x804c
push esi
call ebp
mov edx, dword [0x52d100]
mov ecx, edi
mov dword [esp + 0x24], 9
mov dword [esp + 0x18], edi
call dword [edx + 4]
mov eax, dword [0x52662c]
mov dword [esp + 0x148], ebx
test eax, eax
jne 0x4a4aad
mov eax, dword [0x526628]
test eax, eax
jne 0x4a4aad
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x148], 4
je 0x4a4a80
push 0
mov ecx, eax
call fcn.00404bd0
jmp 0x4a4a82
xor eax, eax
mov dword [0x526628], eax
mov eax, dword [0x517cd8]
push eax
push 0x404ba0
mov ecx, 0x52b648
mov byte [esp + 0x150], bl
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, edi
mov dword [esp + 0x148], 0xffffffff
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [eax + 0x9c]
mov eax, dword [esp + 0x24]
cmp eax, 4
je 0x4a4af7
cmp eax, 5
je 0x4a4af7
mov esi, dword [esp + 0x150]
push ebx
push 0x803b
push esi
call ebp
jmp 0x4a4b0f
mov edx, dword [esp + 0x150]
push 0
push 0x803b
push edx
call ebp
mov esi, dword [esp + 0x150]
mov eax, dword [0x52d140]
mov ebp, 0x52d140
mov ecx, ebp
mov dword [esp + 0x18], ebp
call dword [eax + 4]
mov eax, dword [0x526620]
mov dword [esp + 0x148], 5
test eax, eax
jne 0x4a4b93
mov eax, dword [0x52661c]
test eax, eax
jne 0x4a4b93
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x148], 6
je 0x4a4b64
push 0
mov ecx, eax
call fcn.00403720
jmp 0x4a4b66
xor eax, eax
mov ecx, dword [0x5177d4]
mov byte [esp + 0x148], 5
push ecx
push 0x4036f0
mov ecx, 0x52b648
mov dword [0x52661c], eax
call fcn.00402160
mov dword [0x526620], 1
mov edi, dword [0x52661c]
mov edx, dword [0x52d140]
mov ecx, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x148], 0xffffffff
call dword [edx + 8]
test edi, edi
mov dword [esp + 0x34], edi
je 0x4a4bc1
mov eax, dword [edi]
push edi
call dword [eax + 4]
test edi, edi
mov dword [esp + 0x148], 7
je 0x4a4be6
mov ecx, dword [edi]
lea edx, [esp + 0x28]
push edx
push edi
call dword [ecx + 0x54]
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [eax + 0x7c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a4bf2
push 8
jmp 0x4a4bf4
push 0
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 4
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
mov ebx, eax
push 0x400
push 2
push ebx
call esi
test eax, eax
je 0x4a4c2d
push 0x400
push 2
push ebx
call esi
test eax, eax
jne 0x4a4c1f
test ebx, ebx
je 0x4a4e49
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4a4e49
push 0x5265c0
push 0
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4a4e49
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], 0
mov edx, dword [0x52d140]
mov ecx, 0x52d140
mov byte [esp + 0x148], 8
call dword [edx + 4]
mov eax, dword [0x526620]
mov byte [esp + 0x148], 9
test eax, eax
jne 0x4a4cf7
mov eax, dword [0x52661c]
test eax, eax
jne 0x4a4cf7
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x148], 0xa
je 0x4a4cc9
push 0
mov ecx, eax
call fcn.00403720
jmp 0x4a4ccb
xor eax, eax
mov dword [0x52661c], eax
mov eax, dword [0x5177d4]
push eax
push 0x4036f0
mov ecx, 0x52b648
mov byte [esp + 0x150], 9
call fcn.00402160
mov dword [0x526620], 1
mov edx, dword [0x52d140]
mov ebp, dword [0x52661c]
mov ecx, 0x52d140
mov byte [esp + 0x148], 8
call dword [edx + 8]
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x4a4d22
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
test ebp, ebp
mov byte [esp + 0x148], 0xb
je 0x4a4d3f
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call dword [ecx + 0x64]
mov edi, dword [esp + 0x14]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
mov byte [esp + 0x148], 0xc
je 0x4a4d8a
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi], eax
jne 0x4a4d8c
test edi, edi
je 0x4a4d8c
push 0x8007000e
call fcn.004cf728
jmp 0x4a4d8c
xor esi, esi
test esi, esi
mov byte [esp + 0x148], 0xb
mov dword [esp + 0x2c], esi
jne 0x4a4da6
push 0x8007000e
call fcn.004cf728
test esi, esi
mov byte [esp + 0x148], 0xd
je 0x4a4ddc
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a4dd7
mov ecx, dword [esi]
push ecx
call fcn.004cf84a
test eax, eax
mov dword [esi + 4], eax
jne 0x4a4dd7
cmp dword [esi], 0
je 0x4a4dd7
push 0x8007000e
call fcn.004cf728
mov eax, dword [esi + 4]
jmp 0x4a4dde
xor eax, eax
mov edi, dword [esp + 0x10]
push eax
lea edx, [edi + 0xbea]
push edx
push 0
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
test esi, esi
mov byte [esp + 0x148], 0xb
je 0x4a4e16
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a4e16
push 1
mov ecx, esi
call fcn.0042c8b0
test ebp, ebp
mov byte [esp + 0x148], 8
je 0x4a4e29
mov ecx, dword [ebp]
push ebp
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x4a4c6c
mov edi, dword [esp + 0x18]
pop esi
pop ebp
test edi, edi
mov dword [esp + 0x140], 0xffffffff
pop ebx
je 0x4a4e61
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [esp + 0x134]
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret