Function at 0x402743
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a568c
call fcn.00483228
sub esp, 0x434
mov eax, dword [0x4e43a4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
lea edi, [esi + 0x54]
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0049d64d
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x40283e
mov dl, byte [ecx]
cmp dl, 0x5c
jne 0x40283e
cmp byte [eax + ecx - 1], dl
je 0x4027a1
push 0x4dd1e4
lea ecx, [ebp - 0x1c]
call fcn.0049dc68
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0049dcbc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
mov dword [ebp - 0x14], eax
jbe 0x40283e
cmp eax, 2
je 0x402808
cmp eax, 3
je 0x4027e4
cmp eax, 4
je 0x402831
cmp eax, 5
je 0x4027d8
cmp eax, 6
jne 0x40283e
jmp 0x402831
cmp dword [esi + 0x4c], ebx
je 0x40283e
cmp dword [esi + 0x50], ebx
jne 0x402831
jmp 0x40283e
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x18]
push ebx
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test byte [ebp - 0x17], 0x80
je 0x402804
push 0x67
jmp 0x402829
push 0x68
jmp 0x402829
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
cmp al, 0x61
je 0x40281d
cmp al, 0x41
je 0x40281d
cmp al, 0x62
je 0x40281d
cmp al, 0x42
jne 0x402822
cmp dword [esi + 0x4c], ebx
je 0x40283e
cmp dword [esi + 0x50], ebx
je 0x40283e
push 0x66
lea ecx, [ebp - 0x10]
call fcn.0049de81
push dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, esi
push eax
call fcn.00402715
lea eax, [ebp - 0x270]
push eax
push 0xfa
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x402a8a
cmp byte [ebp - 0x270], bl
lea edi, [ebp - 0x270]
je 0x402a43
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
mov dword [ebp - 0x14], eax
jbe 0x402a2e
cmp eax, 2
je 0x4028d1
cmp eax, 3
je 0x4028af
cmp eax, 4
je 0x4028ff
cmp eax, 5
je 0x40289c
cmp eax, 6
jne 0x402a2e
jmp 0x4028ff
cmp dword [esi + 0x4c], ebx
je 0x402a2e
cmp dword [esi + 0x50], ebx
jne 0x4028ff
jmp 0x402a2e
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test byte [ebp - 0x27], 0x80
je 0x4028cd
push 0x67
jmp 0x4028f7
push 0x68
jmp 0x4028f7
mov al, byte [edi]
cmp al, 0x61
je 0x4028e3
cmp al, 0x41
je 0x4028e3
cmp al, 0x62
je 0x4028e3
cmp al, 0x42
jne 0x4028ec
cmp dword [esi + 0x4c], ebx
je 0x402a2e
cmp dword [esi + 0x50], ebx
je 0x402a2e
push 0x66
lea ecx, [ebp - 0x10]
call fcn.0049de81
lea eax, [ebp - 0x140]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x14], 4
mov byte [ebp - 0x13e], bl
jne 0x402972
lea eax, [ebp - 0x140]
mov dword [ebp - 0x24], 0x104
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x140]
push eax
call sub.MPR.dll_WNetGetConnectionA
test eax, eax
jne 0x402a1d
lea eax, [ebp - 0x440]
mov byte [ebp - 0x13e], 0x20
push eax
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 0x13d], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402a1d
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x174]
push 0x32
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x338]
push 0xc8
push eax
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
je 0x4029e7
lea eax, [ebp - 0x338]
lea ecx, [ebp - 0x20]
push eax
call fcn.0049d946
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004972a8
lea ecx, [ebp - 0x20]
call fcn.0049725c
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.0049d9c5
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0049d8d8
jmp 0x4029f4
push 0x4e7e70
lea ecx, [ebp - 0x18]
call fcn.0049da15
push dword [ebp - 0x18]
lea eax, [ebp - 0x140]
mov byte [ebp - 0x13e], 0x20
mov byte [ebp - 0x13d], bl
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0049d8d8
push dword [ebp - 0x14]
lea eax, [ebp - 0x140]
mov ecx, esi
push eax
call fcn.00402715
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], bl
lea edi, [edi + eax + 1]
jne 0x40286a
push ebx
lea ecx, [esi + 0x54]
call fcn.0049dcbc
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0xffffffffffffffff
push 0x14c
push dword [esi + 0x1c]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x402a7e
push ebx
push ebx
push 0x146
push dword [esi + 0x1c]
call edi
cmp dword [ebp - 0x14], eax
jge 0x402a7e
push ebx
push dword [ebp - 0x14]
jmp 0x402a80
push ebx
push ebx
push 0x14e
push dword [esi + 0x1c]
call edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret