Function at 0x42cfb0
Capabilities:
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4b96
mov eax, dword fs:[0]
push eax
sub esp, 0xa24
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa28], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x42d0f2
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push esi
push eax
call fcn.0058d810
add esp, 0xc
lea eax, [ebp - 0x80a]
push str.e:work_svndtlsetuputility_basedtlprocesstoolhelp.h
push 0x603090
push eax
call fcn.0040988e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x810]
add esp, 0xc
push eax
call esi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0058d810
add esp, 0xc
lea eax, [ebp - 0x80a]
push 0xbf
push str.GetLogicalDriveStrings_failedxm_line:_d_r_n
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call esi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0058d810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x80a]
push str.GetLogicalDriveStrings_failedxm_err:_d_r_n
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call esi
xor eax, eax
jmp 0x42d579
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053a514
add esp, 4
mov ebx, eax
push ebx
push esi
call edi
test eax, eax
jne 0x42d215
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0058d810
add esp, 0xc
lea eax, [ebp - 0x80a]
push str.e:work_svndtlsetuputility_basedtlprocesstoolhelp.h
push 0x603090
push eax
call fcn.0040988e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x810]
add esp, 0xc
push eax
call esi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0058d810
add esp, 0xc
lea eax, [ebp - 0x80a]
push 0xc7
push str.GetLogicalDriveStrings_failedxm_line:_d_r_n
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call esi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0058d810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x80a]
push str.GetLogicalDriveStrings_failedxm_err:_d_r_n
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call esi
xor eax, eax
jmp 0x42d579
push 0x208
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.0058d810
add esp, 0xc
cmp word [ebx], 0
je 0x42d574
nop word [eax + eax]
xor eax, eax
mov word [ebx + 4], ax
lea eax, [ebp - 0xa18]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42d567
call fcn.00405c3d
test eax, eax
je case.0x42d33c.1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa18]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x42d343
movzx esi, ax
mov ecx, esi
call fcn.004098b0
mov edi, eax
test edi, edi
je 0x42d493
mov ecx, esi
shr ecx, 4
push 6
inc ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42d493
push esi
push eax
push edi
call fcn.00409910
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42d493
mov ecx, dword [ebp - 0xa20]
mov edx, 1
movzx esi, word [edi]
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa24], esi
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x42d314
push esi
lea ecx, [ebp - 0xa20]
call fcn.0040595f
movzx eax, word [edi]
mov ecx, dword [ebp - 0xa20]
jmp 0x42d31a
mov eax, dword [ebp - 0xa24]
movzx edx, ax
lea eax, [edi + 2]
push edx
push eax
push esi
push ecx
call fcn.00594ceb
add esp, 0x10
cmp eax, 0x50
ja case.0x42d33c.1
movzx eax, byte [eax + 0x42d5c4]
jmp dword [eax*4 + 0x42d5b4]
push eax
call fcn.00594cd0
mov esi, eax
add esp, 4
test esi, esi
jne 0x42d3c9
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xa20]
add edx, 0xfffffff0
mov esi, dword [edx]
cmp dword [edx + 4], eax
je 0x42d493
mov eax, dword [edx + 0xc]
lea ecx, [edx + 0xc]
shr eax, 0x1f
test al, al
je 0x42d398
cmp dword [edx + 8], 0
jl case.0x42d33c.20
mov dword [edx + 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0xa20]
mov word [eax], cx
jmp 0x42d493
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42d3b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa20], eax
jmp 0x42d493
mov eax, dword [ebp - 0xa20]
lea edi, [ebp - 0xa18]
sub edi, eax
sar edi, 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xa24], ecx
test esi, esi
js case.0x42d33c.20
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42d40d
push esi
lea ecx, [ebp - 0xa20]
call fcn.0040595f
mov eax, dword [ebp - 0xa20]
cmp edi, dword [ebp - 0xa24]
ja 0x42d461
mov ecx, dword [eax - 8]
lea edx, [esi + esi]
lea edi, [eax + edi*2]
test edx, edx
je 0x42d47b
test eax, eax
jne 0x42d438
call fcn.00591458
mov dword [eax], 0x16
call fcn.0059137f
jmp case.0x42d33c.78
test edi, edi
je 0x42d426
add ecx, ecx
cmp ecx, edx
jae 0x42d454
call fcn.00591458
mov dword [eax], 0x22
call fcn.0059137f
jmp case.0x42d33c.78
push edx
push edi
push eax
call fcn.0058d260
add esp, 0xc
jmp case.0x42d33c.78
push esi
lea ecx, [ebp - 0xa18]
push ecx
push dword [eax - 8]
push eax
call fcn.00405d4d
add esp, 0x10
mov eax, dword [ebp - 0xa20]
cmp esi, dword [eax - 8]
jg case.0x42d33c.20
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0xa20]
mov word [eax + esi*2], cx
mov edi, dword [ebp - 0xa28]
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa1c]
mov dword [ebp - 4], 3
add edi, 4
mov dword [ebp - 0xa1c], 0
push eax
mov ecx, edi
call fcn.0042d9b0
mov esi, dword [ebp - 0xa1c]
cmp esi, dword [edi]
je 0x42d4f2
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x10]
test eax, eax
je case.0x42d33c.1
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0xa20]
call fcn.00594dfb
add esp, 8
test eax, eax
jns 0x42d528
lea eax, [ebp - 0xa20]
push ecx
mov dword [ebp - 0xa24], eax
lea eax, [ebp - 0xa24]
push eax
push ecx
mov ecx, edi
call fcn.0042ceb0
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0xa2c]
push eax
call fcn.0042de60
mov esi, dword [ebp - 0xa2c]
push ebx
call fcn.00594cd0
add esp, 4
lea ecx, [esi + 0x14]
push eax
push ebx
call fcn.00409b39
mov edx, dword [ebp - 0xa20]
add edx, 0xfffffff0
mov dword [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d560
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 8
cmp word [ebx], 0
jne 0x42d240
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405d25
push 0x80070057
call fcn.00405d25
push 0x8007000e
call fcn.00405d25
nop
jne 0x42d58a
inc edx
add byte [ecx - 0x60ffbd2b], ch
aad 0x42
add byte [ebp + 0x42d5], dl
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3