Function at 0x412a00
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
xor al, al
mov dword [ebp - 0x430], ebx
mov byte [ebp - 0x41d], al
test edi, edi
je 0x412da0
test ebx, ebx
je 0x412da0
cmp word [edi], 0x5c
jne 0x412da2
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0042c810
add esp, 8
test eax, eax
je 0x412d73
add eax, 2
push 0x5c
push eax
call fcn.0042c810
add esp, 8
mov dword [ebp - 0x428], eax
test eax, eax
je 0x412d73
push esi
xor ecx, ecx
push str.DeviceLanmanRedirector
push edi
mov word [eax], cx
call fcn.0043affb
add esp, 8
test eax, eax
jne 0x412afe
mov edi, dword [ebp - 0x424]
push edi
push 0x45cae0
push ebx
call fcn.0043afb8
mov ecx, ebx
lea esi, [ebx + edi*2]
add esp, 0xc
xor eax, eax
mov word [esi - 2], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ac0
mov eax, dword [ebp - 0x428]
sub ecx, edx
sar ecx, 1
add eax, 2
sub edi, ecx
push edi
push eax
push ebx
call fcn.0043b180
add esp, 0xc
xor eax, eax
mov word [esi - 2], ax
mov al, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor esi, esi
mov dword [ebp - 0x42c], edx
nop
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x412b7c
lea eax, [esi + 0x41]
mov dword [ebp - 0xa], 0x3a
movzx ebx, ax
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
mov word [ebp - 0xc], bx
call fcn.0042b800
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x103
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x412b76
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.0043affb
add esp, 8
test eax, eax
je 0x412c4a
mov edx, dword [ebp - 0x42c]
inc esi
cmp esi, 0x20
jb 0x412b10
push 0x104
lea eax, [ebp - 0x214]
mov byte [ebp - 0x41e], 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412d89
push 4
lea eax, [ebp - 0x214]
xor esi, esi
push 0x45b83c
push eax
call fcn.0043b1c5
add esp, 0xc
lea ecx, [ebp - 0x214]
test eax, eax
lea edx, [ecx + 2]
mov eax, 4
cmove esi, eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412bd1
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x216], 0x5c
jne 0x412bf5
xor eax, eax
mov word [ebp + ecx*2 - 0x216], ax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x412c2d
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.0043affb
add esp, 8
test eax, eax
je 0x412cb3
push 0x104
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x412ba6
jmp 0x412cba
test bx, bx
je 0x412b82
mov eax, dword [0x45d574]
mov esi, dword [ebp - 0x430]
mov dword [ebp - 0xc], eax
mov eax, dword [0x45d578]
mov word [ebp - 0xc], bx
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
call fcn.0043afb8
xor eax, eax
mov word [esi + ebx*2 - 2], ax
mov eax, dword [ebp - 0x428]
push ebx
add eax, 2
push eax
push esi
call fcn.0043b180
add esp, 0x18
xor eax, eax
mov word [esi + ebx*2 - 2], ax
mov al, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x41e], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp byte [ebp - 0x41e], 0
je 0x412d89
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412cd7
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x216], 0x5c
je 0x412d13
lea edi, [ebp - 0x214]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x412d00
mov eax, dword [0x459794]
mov dword [edi], eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00411f80
add esp, 0xc
test eax, eax
je 0x412d89
mov edi, dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
mov esi, dword [ebp - 0x430]
push edi
push eax
push esi
call fcn.0043afb8
mov eax, dword [ebp - 0x428]
push edi
add eax, 2
push eax
push esi
call fcn.0043b180
add esp, 0x18
mov al, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x41d]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x41d]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret