Function at 0x475d74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x476123
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [0x484cfa], 0
je 0x475f70
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push 0x47613c
lea eax, [ebp - 0x78]
xor edx, edx
mov dl, byte [ebp - 1]
add edx, 0x41
dec edx
call fcn.00404630
push dword [ebp - 0x78]
push 0x47614c
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.004047c8
mov eax, dword [ebp - 0x74]
call fcn.00404900
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je case.0x475f0a.0
lea eax, [ebp - 0x7c]
xor edx, edx
mov dl, byte [ebp - 1]
add edx, 0x41
dec edx
call fcn.00404630
lea eax, [ebp - 0x7c]
mov edx, 0x476158
call fcn.00404710
mov eax, dword [ebp - 0x7c]
call fcn.00404900
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x475e9f
mov eax, esi
xor ecx, ecx
mov edx, 0x18
call fcn.00402f74
mov word [esi], 4
mov word [esi + 2], 1
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x6e]
push eax
push 0
push 0
push 0x2404c
push edi
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x475e8c
mov eax, dword [ebp - 0x5a]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x6e]
imul dword [ebp - 0x62]
imul dword [ebp - 0x5e]
mov dword [esi + 0x14], eax
jmp case.0x475f0a.0
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x57800
jmp case.0x475f0a.0
push 0
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x6e]
push eax
push 0
push 0
push 0x70000
push edi
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je case.0x475f0a.0
mov word [esi + 2], 0
mov eax, dword [ebp - 0x6e]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x62]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x5e]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x5a]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x6e]
imul dword [ebp - 0x62]
imul dword [ebp - 0x5e]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x66]
cmp eax, 0x16
ja case.0x475f0a.0
mov al, byte [eax + 0x475f11]
jmp dword [eax*4 + 0x475f28]
mov word [esi], 0
jmp case.0x475f0a.0
mov word [esi], 1
mov word [esi + 2], 1
jmp case.0x475f0a.0
mov word [esi], 2
mov word [esi + 2], 1
jmp case.0x475f0a.0
mov word [esi], 3
jmp case.0x475f0a.0
mov al, byte [ebp - 1]
call fcn.0047615c
test al, al
je 0x475fc1
mov eax, esi
xor ecx, ecx
mov edx, 0x18
call fcn.00402f74
mov word [esi], 4
mov word [esi + 2], 1
lea edx, [ebp - 0xd]
mov al, byte [ebp - 1]
call fcn.004761a0
test al, al
je 0x475fac
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
jmp 0x475fb3
mov dword [esi + 0x14], 0x57800
mov dword [esi + 0x10], 0x800
mov bl, 1
jmp case.0x475f0a.0
cmp byte [0x484cc0], 0
je case.0x475f0a.0
mov edi, 1
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, edi
dec eax
je 0x475fe7
dec eax
je 0x475fed
jmp 0x475ff1
mov byte [ebp - 0x56], 1
jmp 0x475ff1
mov byte [ebp - 0x56], 0
xor eax, eax
mov al, byte [ebp - 1]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x56]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x860
mov dword [ebp - 0x24], 0x440d
mov dword [ebp - 0x18], 1
push 0
lea eax, [ebp - 8]
push eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [0x484ccc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x47603d
test byte [ebp - 0x18], 1
je 0x476041
xor ebx, ebx
jmp 0x476043
mov bl, 1
test bl, bl
je 0x476082
movzx eax, word [ebp - 0x52]
movzx edx, word [ebp - 0x40]
imul edx
movzx edx, word [ebp - 0x42]
imul edx
cmp eax, dword [esi + 0x14]
jbe 0x47605f
mov dword [esi + 0x14], eax
movzx eax, word [ebp - 0x47]
cmp eax, dword [esi + 0x14]
jbe 0x47606b
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x3a]
cmp eax, dword [esi + 0x14]
jbe 0x476076
mov dword [esi + 0x14], eax
movzx eax, word [ebp - 0x4f]
cmp eax, dword [esi + 0x10]
jbe 0x476082
mov dword [esi + 0x10], eax
inc edi
cmp edi, 2
jle 0x475fdd
test bl, bl
je case.0x475f0a.0
mov word [esi + 2], 0
movzx eax, word [ebp - 0x40]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x52]
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x42]
mov dword [esi + 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x55]
cmp eax, 9
ja case.0x4760bb.0
mov al, byte [eax + 0x4760c2]
jmp dword [eax*4 + 0x4760cc]
mov word [esi], 1
jmp case.0x4760bb.0
mov word [esi], 3
jmp case.0x4760bb.0
test byte [ebp - 0x54], 1
jne 0x4760f7
mov word [esi], 2
jmp case.0x4760bb.0
mov word [esi], 0
test byte [ebp - 0x54], 1
jne case.0x475f0a.0
mov word [esi + 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47612a
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404474
ret