Function at 0x48e510
Capabilities:
Get disk information

Disassembly:
sub esp, 0x78
push ebx
mov ebx, ecx
push esi
xor esi, esi
lea eax, [ebx + 0x18]
mov dword [ebx + 0x34], esi
push eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
mov dword [ebx], 0x4a625c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, ebx
call fcn.0048caa0
mov ecx, ebx
call fcn.0048e790
cmp eax, esi
jge 0x48e557
mov ecx, dword [esp + 0x88]
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
add esp, 0x78
ret 8
call dword [ebx + 0x38]
xor edx, edx
mov dl, ah
cmp dl, 1
je 0x48e57a
mov eax, dword [esp + 0x88]
pop esi
mov dword [eax], 0x80900004
mov eax, ebx
pop ebx
add esp, 0x78
ret 8
mov esi, dword [esp + 0x84]
push ebp
mov dword [ebx + 0x30], esi
push edi
mov byte [esp + 0x10], 0
add esi, 2
mov dword [esp + 0x14], 0x41
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x48e765
mov ebp, dword [esp + 0x10]
push 0
push ebp
call fcn.0048ef90
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
je 0x48e765
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x28]
push 8
push edx
push 0
push 0
push 0x41018
push edi
mov dword [esp + 0x40], 8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x48e651
mov byte [esi - 1], al
mov byte [esi], al
lea eax, [esp + 0x4c]
push 0x3c
push eax
mov dword [esi + 6], edi
push ebp
mov ecx, ebx
mov edi, 1
call fcn.0048d7d0
test eax, eax
jge 0x48e6e9
lea ecx, [esp + 0x4c]
push 0x24
push ecx
push ebp
mov ecx, ebx
call fcn.0048d7d0
test eax, eax
jge 0x48e6ce
mov dword [esi + 6], 0xffffffff
jmp 0x48e765
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push 0x3c
push edx
push eax
push ecx
mov ecx, ebx
mov edi, 1
call fcn.0048ebb0
test eax, eax
jge 0x48e6d2
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push 0x24
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0048ebb0
test eax, eax
jge 0x48e6ce
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push 0x3c
push eax
push ebp
mov ecx, ebx
mov byte [esi - 1], 0
mov byte [esi], 0
mov dword [esi + 6], edx
call fcn.0048d7d0
test eax, eax
jge 0x48e6e9
lea ecx, [esp + 0x4c]
push 0x24
push ecx
push ebp
mov ecx, ebx
call fcn.0048d7d0
test eax, eax
jge 0x48e6ce
mov dword [esi + 6], 0xffffffff
jmp 0x48e765
xor edi, edi
jmp 0x48e6e9
mov dl, byte [esp + 0x24]
mov eax, dword [esp + 0x26]
mov byte [esi - 1], dl
mov byte [esi], al
mov byte [esi + 1], ah
mov dword [esi + 6], 0xffffffff
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x90]
mov ebp, dword [sym.imp.MSVCR71.dll_strncpy]
mov byte [esi - 2], al
lea edx, [esp + 0x54]
push 8
lea eax, [esi + 0xa]
push edx
mov byte [esi + 2], 5
push eax
mov dword [ecx], 0
call ebp
lea ecx, [esp + 0x68]
push 0x10
lea edx, [esi + 0x13]
push ecx
push edx
mov byte [esi + 0x12], 0
call ebp
lea eax, [esp + 0x84]
push 4
lea ecx, [esi + 0x24]
push eax
push ecx
mov byte [esi + 0x23], 0
call ebp
add esp, 0x24
cmp edi, 1
mov byte [esi + 0x28], 0
jne 0x48e754
movzx dx, byte [esp + 0x85]
mov word [esi + 0x2a], dx
jmp 0x48e75a
mov word [esi + 0x2a], 0x100
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
inc al
inc edi
add esi, 0x30
cmp al, 0x1a
mov byte [esp + 0x10], al
mov dword [esp + 0x14], edi
jb 0x48e596
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x78
ret 8