Function at 0x4333d6
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x280
push ebx
push esi
mov eax, 0x49b61c
push edi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2a
push 2
sete byte [ebp + 0x67]
xor ebx, ebx
cmp byte [ebp + 0x67], bl
pop edi
je 0x43340d
add esi, edi
mov dword [ebp + 0x78], esi
push edi
push esi
push 0x48a7f8
call fcn.0042996a
push edi
push esi
push 0x48a7f4
mov byte [ebp + 0x37], al
call fcn.0042996a
push 3
push esi
push 0x48a7f0
mov byte [ebp + 0x6d], al
call fcn.0042996a
push edi
push esi
push 0x48a7ec
mov byte [ebp + 3], al
call fcn.0042996a
mov byte [ebp + 0x3f], al
lea eax, [ebp + 0x78]
push eax
call fcn.00404037
add esp, 0x34
push 5
lea ecx, [ebp + 0x38]
call fcn.0042e1e2
push 0x14
lea ecx, [ebp + 0x50]
call fcn.0042e1e2
lea ecx, [ebp - 8]
call fcn.0042e1c4
or dword [ebp + 0x40], 0xffffffff
push 6
push dword [ebp + 0x78]
mov dword [ebp + 8], ebx
push str._SKIP
mov byte [ebp + 4], 0
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x44], 0x3e8
mov byte [ebp + 0x5e], 0
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x6e], 0
mov byte [ebp + 0x6f], 0
mov byte [ebp + 0x5d], 0x43
mov byte [ebp + 0x5f], 0
mov byte [ebp + 0x3e], 0
call fcn.0042996a
add esp, 0xc
test al, al
je 0x4334ee
add dword [ebp + 0x78], 0xc
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp - 4], 0x42
call fcn.00430ad7
mov al, byte [ebp - 4]
mov byte [ebp + 0x3e], al
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
add esp, 0x10
push edi
push dword [ebp + 0x78]
push 0x48a7e0
call fcn.00429920
add esp, 0xc
test al, al
je 0x433515
add dword [ebp + 0x78], 4
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
pop ecx
mov byte [ebp + 0x5e], 1
mov ecx, dword [ebp + 0x78]
jmp 0x433557
cmp ax, 0x2a
jne 0x433526
mov byte [ebp + 4], 1
jmp 0x433552
cmp ax, 0x26
jne 0x433532
or dword [ebp + 0x30], 8
jmp 0x433552
cmp ax, 0x2d
jne 0x43355f
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0040fd8a
add esp, 4
test al, al
jne 0x43355f
mov dword [ebp + 0x58], 1
add ecx, edi
mov dword [ebp + 0x78], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x43351a
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, bx
pop ecx
jne 0x43357c
or dword [ebp + 0x68], 0xffffffff
or dword [ebp + 0x40], 0xffffffff
cmp ax, bx
push 0x2c
mov dword [ebp - 0x2c], ebx
pop esi
je 0x43376e
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043060a
mov eax, dword [ebp + 0x78]
add esp, 0xc
cmp word [eax], si
jne 0x4335b8
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043060a
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], si
jne 0x4335d4
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00430857
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2c
mov edi, 0xffdf
jne 0x433633
lea ecx, [ebp + 8]
call fcn.0042e1c4
mov eax, dword [ebp + 0x78]
add eax, 2
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
mov eax, dword [ebp + 0x78]
pop ecx
xor ecx, ecx
mov cx, word [eax]
mov eax, ecx
and eax, edi
cmp dword [ebp + 0x68], ebx
jg 0x433619
push 0x2a
pop edx
cmp cx, dx
jne 0x433619
mov dword [ebp - 0x2c], edx
cmp ax, 0x41
jb 0x43362b
cmp ax, 0x5a
ja 0x43362b
mov byte [ebp + 0x5d], al
mov byte [ebp + 0x5f], al
lea ecx, [ebp + 8]
call fcn.00428a48
mov ecx, dword [ebp - 8]
xor esi, esi
mov si, word [ecx]
mov dword [ebp + 0x78], ecx
mov edx, esi
push esi
and edx, edi
call fcn.0040fd8a
add esp, 4
test al, al
jne 0x4336ac
cmp si, 0x2d
jne 0x433668
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0040fd8a
add esp, 4
test al, al
jne 0x4336ac
cmp dx, 0x46
jne 0x43367a
mov byte [ebp + 0x6e], 0xc
add ecx, 2
mov dword [ebp + 0x78], ecx
jmp 0x4336e5
cmp dx, 0x55
je 0x4336a6
cmp dx, 0x52
je 0x4336a6
cmp si, 0x3a
je 0x4336e5
cmp si, 0x23
je 0x4336e5
cmp dword [ebp + 0x58], ebx
jne 0x4336e5
cmp si, bx
je 0x4336e5
mov esi, 0x80070057
jmp 0x434207
mov byte [ebp + 0x6e], 0xb
jmp 0x433672
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.00430ad7
pop ecx
pop ecx
jmp 0x4336d6
cmp si, 0x3a
je 0x4336db
cmp si, 0x23
je 0x4336db
add dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
mov si, word [eax]
cmp si, bx
jne 0x4336c0
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
jne 0x4336fc
mov eax, dword [ebp + 0x38]
cmp word [eax], bx
je 0x4336fc
mov dword [ebp + 0x58], 1
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x3a
pop ecx
je 0x43371c
cmp ax, 0x23
jne 0x43376e
mov byte [ebp + 0x6f], 1
cmp byte [ebp + 0x6e], 0
jne 0x433727
cmp dword [ebp + 0x40], ebx
jge 0x43372b
mov byte [ebp + 0x6f], 0
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x78]
push eax
call fcn.00428a5b
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
pop ecx
jne 0x43375c
movzx eax, word [eax + 2]
push eax
call fcn.0040fd8a
add esp, 4
test al, al
jne 0x43375c
mov dword [ebp + 0x58], 1
jmp 0x43376e
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00430857
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov edi, dword [ebp + 0x68]
mov dword [ebp + 0x28], 0xfffffff8
mov dword [ebp - 0x18], edi
je 0x43379f
cmp edi, ebx
jg 0x43378d
xor esi, esi
inc esi
jmp 0x434207
cmp edi, 4
jg 0x433795
dec edi
jmp 0x43379c
lea edi, [edi*4 - 0x10]
mov dword [ebp + 0x68], edi
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 5
push eax
lea ecx, [ebp + 0x38]
call fcn.0042e20b
mov esi, dword [ebp + 0x38]
mov ax, word [esi]
cmp ax, 0x61
jb 0x4337cb
cmp ax, 0x7a
ja 0x4337cb
add word [esi], 0xffe0
cmp byte [ebp + 0x6e], 0
mov byte [ebp + 0x36], 0
jne 0x433815
cmp dword [ebp + 0x58], ebx
jne 0x433815
mov ax, word [esi]
cmp ax, 0x100
jae 0x433815
cmp ax, 0x41
jb 0x4337ef
cmp ax, 0x5a
jbe 0x433815
cmp dword [ebp + 0x40], ebx
mov word [esi], bx
jl 0x4337ff
cmp edi, 1
jl 0x4337ff
mov dword [ebp + 0x28], edi
cmp byte [ebp + 0x6f], 0
je 0x433815
cmp dword [ebp + 0x40], ebx
jl 0x433815
cmp edi, ebx
jl 0x433815
mov dword [ebp + 0x28], edi
mov byte [ebp + 0x36], 1
mov ax, word [esi]
push 0x64
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x20], ebx
mov word [ebp + 0x10], ax
call fcn.0042e20b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp byte [ebp + 0x3f], 0
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 0x5f]
jne 0x43383d
mov al, 0x43
movsx ax, al
mov word [ebp - 0x1c], ax
mov dword [ebp + 8], 1
cmp byte [ebp + 0x6f], 0
jne 0x433864
cmp byte [ebp + 0x5e], 0
je 0x433864
cmp dword [ebp + 0x40], ebx
jl 0x433864
cmp edi, ebx
jle 0x433864
mov dword [ebp + 0x28], edi
cmp byte [ebp + 0x67], 0
jne 0x4338a4
cmp byte [ebp + 0x6e], 0
jne 0x4338a4
cmp dword [ebp + 0x28], ebx
jge 0x4338a4
cmp byte [ebp + 0x6f], 0
jne 0x4338a4
cmp word [esi], bx
jne 0x433889
cmp edi, ebx
je 0x4338a4
cmp edi, 0xffffffff
je 0x4338a4
cmp dword [ebp + 0x58], ebx
je 0x43414a
cmp dword [ebp + 0x40], ebx
jl 0x434145
cmp edi, 1
jl 0x434145
push 0x200000
lea ecx, [ebp + 0x54]
call fcn.0042e06b
xor eax, eax
mov word [ebp - 0x148], bx
lea edi, [ebp - 0x146]
stosd dword es:[edi], eax
push 0x41
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push ebx
push dword [ebp + 0x54]
lea edi, [ebp - 0x13e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x148]
push eax
call fcn.00431e7e
mov eax, dword [ebp + 0x10]
add esp, 0xc
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], ebx
mov word [ebp + 0x48], ax
mov word [ebp + 0x4a], 0x3a
mov word [ebp + 0x4c], bx
mov word [ebp + 0x14], ax
mov word [ebp + 0x16], 0x3a
mov word [ebp + 0x18], 0x5c
mov word [ebp + 0x1a], bx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
jle 0x434098
cmp word [ebp - 0x10], 0x3e80
jge 0x434098
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x40]
xor esi, esi
cmp eax, esi
jl 0x433941
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], 0x7530
movsx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push 0x20000000
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], esi
call fcn.00404073
cmp dword [ebp + 0x60], esi
je 0x43405f
cmp byte [ebp + 0x6e], 0
mov dword [ebp - 0x24], esi
je 0x4339aa
push esi
push dword [ebp + 0x54]
push dword [ebp + 0x60]
call fcn.00432498
movsx ecx, byte [ebp + 0x6e]
add esp, 0xc
cmp eax, ecx
jne 0x434069
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x54]
mov dword [ebp + 0x24], esi
push dword [ebp + 0x60]
call fcn.0042b613
add esp, 0xc
cmp eax, esi
je 0x434069
cmp dword [eax], 1
push dword [ebp + 0x60]
mov edi, dword [eax + 0x28]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x20], ecx
sete byte [ebp + 0x7b]
call fcn.0042b29c
mov esi, dword [ebp + 0x54]
add esi, 0x100000
cmp byte [ebp + 0x6f], 0
pop ecx
mov ebx, eax
je 0x433a62
cmp byte [ebp + 0x7b], 0
je 0x433a47
xor eax, eax
push eax
push eax
push eax
push ebx
push edi
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.0043231c
add esp, 0x1c
cmp dword [ebp - 0x18], edi
jg 0x434069
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
push ebx
push dword [ebp + 0x24]
shl eax, 6
add eax, ebx
lea eax, [esi + eax*2 - 0x80]
push edi
push eax
call fcn.00432263
add esp, 0x10
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x434069
cmp byte [ebp + 0x36], 0
je 0x433a71
mov dword [ebp + 0x28], eax
jmp 0x433a71
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x433a65
cmp eax, 4
lea ecx, [eax - 1]
jle 0x433a5d
lea ecx, [eax*4 - 0x10]
mov dword [ebp + 0x68], ecx
jmp 0x433a65
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x24]
jg 0x434069
mov edi, dword [ebp - 0x20]
push dword [ebp + 0x60]
xor esi, esi
push esi
call fcn.0042fa5a
cmp eax, 7
pop ecx
pop ecx
je 0x433ab6
cmp byte [ebp + 0x7b], 0
jne 0x433ab6
cmp dword [ebp + 0x24], 4
jne 0x433ab6
mov al, byte [ebp + 0x3e]
cmp al, byte [edi + 0x20]
jne 0x433ab6
cmp byte [edi + 0xb0], 0
jne 0x433ab6
cmp byte [edi + 0x140], 0
jne 0x433ab6
cmp byte [edi + 0x1d0], 0
je 0x434069
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x1c], esi
jle 0x434069
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x24]
cmp edi, esi
jge 0x434069
lea ecx, [ebp - 0x38]
call fcn.0042899e
cmp byte [ebp + 0x6f], 0
je 0x433afe
cmp dword [ebp + 0x68], 0
jl 0x433afe
mov edi, dword [ebp + 0x68]
cmp edi, esi
lea eax, [esi + 0x3e8]
mov dword [ebp + 0x1c], eax
jge 0x434069
cmp byte [ebp + 0x7b], 0
je 0x433b0b
mov ebx, 0xff07
jmp 0x433b19
mov ecx, dword [ebp - 0x20]
lea eax, [edi + edi*8]
shl eax, 4
movzx ebx, byte [eax + ecx + 0x20]
mov ecx, dword [ebp - 0x20]
lea eax, [edi + edi*8]
shl eax, 4
add eax, ecx
cmp byte [ebp + 0x67], 0
movsx ecx, word [eax + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x2c], ecx
je 0x433b64
cmp dword [ebp + 0x68], 0
jl 0x433b64
cmp ecx, dword [ebp + 0x68]
jne 0x43404d
test bl, 0x10
jne 0x4340e3
cmp ebx, 0x84
je 0x4340e3
mov ecx, dword [ebp + 0x24]
add ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
test ebx, ebx
je 0x43404d
cmp dword [ebp + 0x2c], 0
jle 0x43404d
cmp ebx, 5
je 0x43404d
cmp ebx, 0xf
je 0x43404d
cmp dword [ebp + 0x68], 0
jg 0x433bcd
cmp dword [eax + 0x14], 0
jg 0x433bcd
jl 0x433b9f
cmp dword [eax + 0x10], 0x200
ja 0x433bcd
test bl, 0x10
je 0x43404d
xor eax, eax
push eax
push eax
push 1
push 1
push eax
movsx eax, word [ebp + 0xc]
push dword [ebp + 0x2c]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0042b2dd
add esp, 0x20
jmp 0x43404d
inc dword [ebp - 0x28]
cmp byte [ebp + 0x6f], 0
jne 0x433be7
mov eax, dword [ebp + 0x28]
cmp eax, 1
jl 0x433be7
cmp eax, dword [ebp + 0x2c]
jne 0x43404d
cmp dword [ebp + 0x28], 0
jl 0x433bf8
mov eax, dword [ebp + 0x24]
add eax, 0x3e8
mov dword [ebp + 0x1c], eax
cmp byte [ebp + 0x6f], 0
je 0x433d16
movsx esi, word [ebp + 0xc]
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x50]
movzx eax, byte [ebp + 4]
push eax
push dword [ebp + 0x58]
lea eax, [ebp - 0x148]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push esi
push eax
call fcn.0042b2dd
xor edi, edi
add esp, 0x20
cmp word [ebp - 0x2c], di
jne 0x43404d
cmp dword [ebp + 0x58], edi
jne 0x433cfe
cmp byte [ebp + 0x67], 0
je 0x433c5b
test bl, 0x10
jne 0x43404d
cmp ebx, 0x84
je 0x43404d
cmp eax, edi
je 0x433c73
cmp word [ebp + 0x10], di
je 0x433cfe
cmp byte [ebp + 0x5e], 0
jne 0x433cfe
movsx eax, word [ebp + 0x2c]
push eax
push esi
push str.DeviceHarddisk_dPartition_d
push dword [ebp + 0x50]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp + 0x48], di
jne 0x433cae
xor eax, eax
mov al, byte [ebp + 0x5d]
sub al, 0x41
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.0042b202
add esp, 0xc
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x4340fa
cmp word [ebp + 0x48], 0x5a
ja 0x4340fa
cmp word [ebp + 0x14], di
je 0x433cf5
push dword [ebp + 4]
lea eax, [ebp + 0x14]
push dword [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x50]
call fcn.00431b70
add esp, 0x14
test eax, eax
je 0x433cec
mov dword [ebp + 0x20], edi
jmp 0x433cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x68], edi
jl 0x43404d
lea ecx, [ebp + 0x60]
call fcn.00402abc
lea ecx, [ebp + 0x54]
call fcn.00428a48
mov esi, dword [ebp + 0x20]
jmp 0x434207
cmp word [ebp - 0x2c], 0
jne 0x43404d
mov eax, dword [ebp + 0x68]
xor ecx, ecx
cmp dword [ebp + 0x58], ecx
jne 0x433d3d
cmp dword [ebp + 0x28], ecx
jge 0x433d3d
cmp eax, ecx
jle 0x433d3f
cmp dword [ebp - 0x28], eax
jge 0x434083
cmp eax, ecx
jl 0x433d6d
cmp dword [ebp + 0x58], ecx
je 0x433d4b
cmp eax, dword [ebp + 0x2c]
je 0x433d6d
cmp dword [ebp + 0x28], ecx
jge 0x433d6d
cmp eax, ecx
jne 0x43404d
test bl, 0x10
jne 0x43404d
cmp ebx, 0x84
je 0x43404d
xor esi, esi
mov byte [ebp + 0x5c], 0
xor ebx, ebx
movsx eax, bx
lea eax, [eax + eax*4]
shl eax, 1
mov cx, word [ebp + eax - 0x146]
cmp cx, word [ebp + 0xc]
jne 0x433e00
movsx ecx, word [ebp + eax - 0x148]
cmp ecx, dword [ebp + 0x2c]
jne 0x433e00
cmp dword [ebp + 0x58], 0
mov si, word [ebp + eax - 0x140]
mov byte [ebp + 0x5c], 1
je 0x433e15
mov eax, dword [ebp + 0x24]
add eax, 0x3e8
cmp byte [ebp + 4], 0
mov dword [ebp + 0x1c], eax
mov word [ebp + 0x48], si
mov word [ebp + 0x14], si
je 0x433dd7
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x433dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x50]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x30]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x433e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp bx, 0x1a
jl 0x433d75
cmp dword [ebp + 0x58], 0
jne 0x43404d
cmp byte [ebp + 0x67], 0
je 0x433e32
test byte [ebp - 4], 0x10
jne 0x43404d
cmp dword [ebp - 4], 0x84
je 0x43404d
cmp byte [ebp + 0x37], 0
jne 0x433e48
cmp byte [ebp + 0x6d], 0
jne 0x433e48
cmp byte [ebp + 0x3f], 0
je 0x433fa9
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0xc]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
cmp byte [ebp + 3], 0
je 0x433e76
cmp byte [ebp + 0x6d], 0
je 0x433e88
cmp edi, 4
jle 0x433e88
inc dword [ebp - 0xc]
cmp byte [ebp + 0x6d], 1
je 0x43404d
jmp 0x433e88
cmp byte [ebp + 0x6d], 1
jne 0x433e88
mov ecx, dword [ebp + 0x24]
add ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
cmp byte [ebp + 0x6d], 2
jne 0x433e9d
test si, si
je 0x433e9d
cmp dword [ebp - 0xc], 1
je 0x43404d
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
mov word [ebp + 0x14], cx
mov word [ebp + 0x48], cx
inc ecx
cmp si, word [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
je 0x43404d
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x433f27
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
mov word [ebp + 0x14], di
mov word [ebp + 0x48], di
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x433edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x30]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x433efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cx, word [ebp + 0xc]
lea eax, [edi - 0x41]
movsx eax, ax
lea eax, [eax + eax*4]
shl eax, 1
mov word [ebp + eax - 0x146], cx
mov cx, word [ebp + 0x2c]
mov word [ebp + eax - 0x148], cx
mov word [ebp + eax - 0x140], di
test si, si
je 0x433fa5
lea eax, [ebp + 0x14]
push eax
mov word [ebp + 0x14], si
mov word [ebp + 0x48], si
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x433f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x30]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x433f65
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
lea ecx, [esi - 0x41]
shl eax, cl
not eax
and dword [ebp - 0x14], eax
lea eax, [esi - 0x41]
movsx eax, ax
lea eax, [eax + eax*4]
shl eax, 1
and word [ebp + eax - 0x140], 0
mov word [ebp + eax - 0x148], 0xfff1
mov word [ebp + eax - 0x146], 0xfff1
mov eax, dword [ebp + 0x10]
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
mov byte [ebp + 0x5c], 0
cmp byte [ebp + 0x5c], 0
je 0x433fc4
cmp word [ebp + 0x10], 0
je 0x43404d
cmp byte [ebp + 0x5e], 0
jne 0x43404d
movsx eax, word [ebp + 0x2c]
push eax
movsx eax, word [ebp + 0xc]
push eax
push str.DeviceHarddisk_dPartition_d
push dword [ebp + 0x50]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp + 0x10], 0
jne 0x434004
xor eax, eax
mov al, byte [ebp + 0x5d]
sub al, 0x41
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.0042b202
add esp, 0xc
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x4340fa
cmp word [ebp + 0x48], 0x5a
ja 0x4340fa
cmp word [ebp + 0x14], 0
je 0x43404d
push dword [ebp + 4]
lea eax, [ebp + 0x14]
push dword [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x50]
call fcn.00431b70
add esp, 0x14
test eax, eax
je 0x434044
and dword [ebp + 0x20], 0
jmp 0x43404d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x20], eax
inc dword [ebp + 0x1c]
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], 0
jg 0x433ac8
jmp 0x434069
inc dword [ebp - 0x24]
cmp word [ebp - 0x24], 0x20
jge 0x434090
lea ecx, [ebp + 0x60]
call fcn.00402abc
inc dword [ebp - 0x10]
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], 0
jg 0x43391c
jmp 0x434098
movsx eax, word [ebp + 0xc]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x68], eax
lea ecx, [ebp + 0x60]
call fcn.00402abc
inc dword [ebp + 8]
cmp byte [ebp + 0x6d], 1
jne 0x4340ab
mov byte [ebp + 0x6d], 2
mov byte [ebp + 0x6e], 0
jmp 0x4340ce
cmp byte [ebp + 0x37], 0
jne 0x4340b7
cmp byte [ebp + 0x6d], 0
je 0x43410f
cmp byte [ebp + 0x5f], 0
je 0x43410f
movsx ax, byte [ebp + 0x5f]
mov word [ebp - 0x1c], ax
mov byte [ebp + 0x5f], 0
mov byte [ebp + 0x6e], 0xb
lea ecx, [ebp + 0x54]
call fcn.00428a48
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x68]
xor ebx, ebx
jmp 0x43384c
lea ecx, [ebp + 0x60]
call fcn.00402abc
lea ecx, [ebp + 0x54]
call fcn.00428a48
xor esi, esi
jmp 0x434207
lea ecx, [ebp + 0x60]
call fcn.00402abc
lea ecx, [ebp + 0x54]
call fcn.00428a48
jmp 0x43369c
xor eax, eax
cmp dword [ebp + 0x68], eax
jle 0x43426c
cmp dword [ebp + 0x28], eax
jge 0x43426c
cmp dword [ebp + 0x58], eax
jne 0x43426c
cmp byte [ebp + 0x6f], al
jne 0x43426c
lea ecx, [ebp + 0x54]
call fcn.00428a48
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x68]
xor ebx, ebx
cmp dword [ebp + 0x58], ebx
jne 0x43415b
cmp dword [ebp + 0x40], ebx
jl 0x433785
cmp edi, ebx
jle 0x433785
cmp dword [ebp + 0x40], ebx
jl 0x43417e
cmp edi, ebx
jle 0x43417e
movsx eax, di
push eax
movsx eax, word [ebp + 0x40]
push eax
push str.DeviceHarddisk_dPartition_d
push dword [ebp + 0x50]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov word [esi + 2], 0x3a
mov ax, word [esi]
cmp ax, 0x2c
jne 0x434194
mov word [esi], 0xff0c
jmp 0x4341b9
cmp ax, 0x3b
jne 0x4341a1
mov word [esi], 0xff1b
jmp 0x4341b9
cmp ax, 0x3a
jne 0x4341ae
mov word [esi], 0xff1a
jmp 0x4341b9
cmp ax, 0x3d
jne 0x4341b9
mov word [esi], 0xff1d
mov word [esi + 4], 0x5c
mov word [esi + 6], bx
mov ax, word [esi]
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0x50]
mov word [ebp - 0x32], 0x3a
mov word [ebp - 0x30], bx
cmp word [eax], bx
je 0x43422e
cmp dword [ebp + 0x58], ebx
jne 0x43422e
push dword [ebp + 4]
lea eax, [ebp - 0x34]
push dword [ebp + 0x30]
push esi
push eax
push dword [ebp + 0x50]
call fcn.00431b70
add esp, 0x14
cmp eax, ebx
jne 0x4340f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.00428a48
lea ecx, [ebp + 0x50]
call fcn.00428a48
lea ecx, [ebp + 0x38]
call fcn.00428a48
push 0x49b61c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x43429a
cmp byte [ebp + 4], 0
je 0x434245
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x434245
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x50]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x30]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x4341ff
xor eax, eax
jmp 0x434205
lea ecx, [ebp + 0x54]
call fcn.00428a48
lea ecx, [ebp - 8]
call fcn.00428a48
lea ecx, [ebp + 0x50]
call fcn.00428a48
lea ecx, [ebp + 0x38]
call fcn.00428a48
push 0x49b61c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8