Function at 0x402b50
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44f351
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp ebp, ebx
mov dword [esp + 0x10], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 4], eax
je 0x402e16
cmp eax, ebx
je 0x402e16
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebp
call fcn.0044df10
call fcn.004238a0
add esp, 4
or edi, 0xffffffff
test eax, eax
je 0x402bde
push 0x130
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x402bb1
mov ecx, eax
call fcn.00441510
jmp 0x402bb3
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov dword [esi], eax
je 0x402e16
mov edx, dword [eax]
push ebp
mov ecx, eax
call dword [edx + 8]
cmp eax, 1
je 0x402c94
mov ecx, dword [esi]
cmp ecx, ebx
je 0x402bde
mov eax, dword [ecx]
push 1
call dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ebp
call fcn.0044df10
call fcn.00423920
add esp, 4
test eax, eax
je 0x402c4e
cmp dword [esi + 0xa98], ebx
jne 0x402c4e
push 0xd0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x1c], 1
je 0x402c25
mov ecx, eax
call fcn.0042d0b0
jmp 0x402c27
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov dword [esi], eax
je 0x402e16
mov edx, dword [eax]
push ebp
mov ecx, eax
call dword [edx + 8]
cmp eax, 1
je 0x402c94
mov ecx, dword [esi]
cmp ecx, ebx
je 0x402c4e
mov eax, dword [ecx]
push 1
call dword [eax]
push 0xe8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x1c], 2
je 0x402c74
mov ecx, eax
call fcn.0041e810
jmp 0x402c76
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov dword [esi], eax
je 0x402e16
mov edx, dword [eax]
push ebp
mov ecx, eax
call dword [edx + 8]
test eax, eax
je 0x402e16
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x30]
push 3
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x28]
push 0x47a058
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
lea eax, [esp + 0x28]
jne 0x402ccd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x402ce7
mov dword [esi + 0x2c], 0x7d0
mov dword [esi + 0x34], 0x190
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
mov eax, 0x10624dd3
imul ecx, dword [esi + 0x2c]
mul ecx
shr edx, 6
cmp edx, edi
mov dword [esi + 0x30], edx
jb 0x402d07
mov edx, edi
push edx
mov ecx, esi
mov dword [esi + 0x30], edx
call fcn.00405730
mov edx, dword [esi + 0x50]
mov dword [esi + 0x30], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
cmp edx, ecx
mov dword [esi + 0x54], ecx
jg 0x402d28
cmp edx, ebx
jne 0x402d2b
mov dword [esi + 0x50], ecx
mov dword [esi + 0xa70], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0xa74], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], ebx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x58], ecx
mov edx, dword [eax + 8]
mov cx, word [edx + 0xe]
xor edx, edx
mov word [esi + 0xb0], cx
mov cx, word [eax + 0x10]
and ecx, 0xffff
mov dword [esi + 0xb4], ecx
xor ecx, ecx
mov cx, word [eax + 0x28]
lea eax, [esi + 0xc]
mov dword [esi + 0x74], ecx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 0x30]
mov ecx, dword [esi]
mov dword [eax], 0x14
mov dword [esi + 0x10], 0x80e0
mov dword [esi + 0x14], edx
mov ecx, dword [ecx + 8]
mov edx, dword [esi + 0xaa4]
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 8]
cmp edx, ebx
mov dword [ecx], ebx
jne 0x402dfc
mov edx, dword [esi + 4]
mov edx, dword [edx + 8]
cmp edx, ebx
je 0x402e16
mov edi, dword [edx]
push ebx
push ecx
push eax
push edx
call dword [edi + 0xc]
cmp eax, ebx
jl 0x402e16
mov ecx, esi
call fcn.00402e50
cmp eax, 1
jne 0x402e16
mov ecx, eax
mov eax, dword [esi + 0x2c]
xor edx, edx
mov dword [esi + 0x64], ecx
div dword [esi + 0x34]
mov dword [esi + 0xa7c], ecx
mov dword [esi + 0xa90], ebx
mov dword [esi + 0xa8c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xa84], eax
mov eax, ecx
jmp 0x402e30
mov ecx, dword [esp + 0x2c]
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0xa7c], eax
mov dword [esi + 0xa84], ecx
jmp 0x402e30
mov ecx, dword [esi]
cmp ecx, ebx
je 0x402e24
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi], ebx
mov dword [esi + 0x6c], 1
mov dword [esi + 0x64], ebx
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0xc