Function at 0x430e67
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x280
push ebx
push esi
mov eax, 0x4975fc
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 0x430e9e
add esi, edi
mov dword [ebp + 0x78], esi
push edi
push esi
push 0x486368
call fcn.00428263
push edi
push esi
push 0x486364
mov byte [ebp + 0x37], al
call fcn.00428263
push 3
push esi
push 0x486360
mov byte [ebp + 0x6d], al
call fcn.00428263
push edi
push esi
push 0x48635c
mov byte [ebp + 3], al
call fcn.00428263
mov byte [ebp + 0x3f], al
lea eax, [ebp + 0x78]
push eax
call fcn.00403cc8
add esp, 0x34
push 5
lea ecx, [ebp + 0x38]
call fcn.0042c827
push 0x14
lea ecx, [ebp + 0x50]
call fcn.0042c827
lea ecx, [ebp - 8]
call fcn.0042c809
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.00428263
add esp, 0xc
test al, al
je 0x430f7f
add dword [ebp + 0x78], 0xc
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp - 4], 0x42
call fcn.0042f0d0
mov al, byte [ebp - 4]
mov byte [ebp + 0x3e], al
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
add esp, 0x10
push edi
push dword [ebp + 0x78]
push 0x486350
call fcn.00428219
add esp, 0xc
test al, al
je 0x430fa6
add dword [ebp + 0x78], 4
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
pop ecx
mov byte [ebp + 0x5e], 1
mov ecx, dword [ebp + 0x78]
jmp 0x430fe8
cmp ax, 0x2a
jne 0x430fb7
mov byte [ebp + 4], 1
jmp 0x430fe3
cmp ax, 0x26
jne 0x430fc3
or dword [ebp + 0x30], 8
jmp 0x430fe3
cmp ax, 0x2d
jne 0x430ff0
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0040efef
add esp, 4
test al, al
jne 0x430ff0
mov dword [ebp + 0x58], 1
add ecx, edi
mov dword [ebp + 0x78], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x430fab
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, bx
pop ecx
jne 0x43100d
or dword [ebp + 0x68], 0xffffffff
or dword [ebp + 0x40], 0xffffffff
cmp ax, bx
push 0x2c
mov dword [ebp - 0x2c], ebx
pop esi
je 0x4311ff
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042ec20
mov eax, dword [ebp + 0x78]
add esp, 0xc
cmp word [eax], si
jne 0x431049
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042ec20
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], si
jne 0x431065
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042ee6d
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2c
mov edi, 0xffdf
jne 0x4310c4
lea ecx, [ebp + 8]
call fcn.0042c809
mov eax, dword [ebp + 0x78]
add eax, 2
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
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 0x4310aa
push 0x2a
pop edx
cmp cx, dx
jne 0x4310aa
mov dword [ebp - 0x2c], edx
cmp ax, 0x41
jb 0x4310bc
cmp ax, 0x5a
ja 0x4310bc
mov byte [ebp + 0x5d], al
mov byte [ebp + 0x5f], al
lea ecx, [ebp + 8]
call fcn.00427365
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.0040efef
add esp, 4
test al, al
jne 0x43113d
cmp si, 0x2d
jne 0x4310f9
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0040efef
add esp, 4
test al, al
jne 0x43113d
cmp dx, 0x46
jne 0x43110b
mov byte [ebp + 0x6e], 0xc
add ecx, 2
mov dword [ebp + 0x78], ecx
jmp 0x431176
cmp dx, 0x55
je 0x431137
cmp dx, 0x52
je 0x431137
cmp si, 0x3a
je 0x431176
cmp si, 0x23
je 0x431176
cmp dword [ebp + 0x58], ebx
jne 0x431176
cmp si, bx
je 0x431176
mov esi, 0x80070057
jmp 0x431c98
mov byte [ebp + 0x6e], 0xb
jmp 0x431103
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.0042f0d0
pop ecx
pop ecx
jmp 0x431167
cmp si, 0x3a
je 0x43116c
cmp si, 0x23
je 0x43116c
add dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
mov si, word [eax]
cmp si, bx
jne 0x431151
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
jne 0x43118d
mov eax, dword [ebp + 0x38]
cmp word [eax], bx
je 0x43118d
mov dword [ebp + 0x58], 1
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x3a
pop ecx
je 0x4311ad
cmp ax, 0x23
jne 0x4311ff
mov byte [ebp + 0x6f], 1
cmp byte [ebp + 0x6e], 0
jne 0x4311b8
cmp dword [ebp + 0x40], ebx
jge 0x4311bc
mov byte [ebp + 0x6f], 0
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x78]
push eax
call fcn.00427312
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
pop ecx
jne 0x4311ed
movzx eax, word [eax + 2]
push eax
call fcn.0040efef
add esp, 4
test al, al
jne 0x4311ed
mov dword [ebp + 0x58], 1
jmp 0x4311ff
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042ee6d
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov edi, dword [ebp + 0x68]
mov dword [ebp + 0x28], 0xfffffff8
mov dword [ebp - 0x18], edi
je 0x431230
cmp edi, ebx
jg 0x43121e
xor esi, esi
inc esi
jmp 0x431c98
cmp edi, 4
jg 0x431226
dec edi
jmp 0x43122d
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.0042c850
mov esi, dword [ebp + 0x38]
mov ax, word [esi]
cmp ax, 0x61
jb 0x43125c
cmp ax, 0x7a
ja 0x43125c
add word [esi], 0xffe0
cmp byte [ebp + 0x6e], 0
mov byte [ebp + 0x36], 0
jne 0x4312a6
cmp dword [ebp + 0x58], ebx
jne 0x4312a6
mov ax, word [esi]
cmp ax, 0x100
jae 0x4312a6
cmp ax, 0x41
jb 0x431280
cmp ax, 0x5a
jbe 0x4312a6
cmp dword [ebp + 0x40], ebx
mov word [esi], bx
jl 0x431290
cmp edi, 1
jl 0x431290
mov dword [ebp + 0x28], edi
cmp byte [ebp + 0x6f], 0
je 0x4312a6
cmp dword [ebp + 0x40], ebx
jl 0x4312a6
cmp edi, ebx
jl 0x4312a6
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.0042c850
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp byte [ebp + 0x3f], 0
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 0x5f]
jne 0x4312ce
mov al, 0x43
movsx ax, al
mov word [ebp - 0x1c], ax
mov dword [ebp + 8], 1
cmp byte [ebp + 0x6f], 0
jne 0x4312f5
cmp byte [ebp + 0x5e], 0
je 0x4312f5
cmp dword [ebp + 0x40], ebx
jl 0x4312f5
cmp edi, ebx
jle 0x4312f5
mov dword [ebp + 0x28], edi
cmp byte [ebp + 0x67], 0
jne 0x431335
cmp byte [ebp + 0x6e], 0
jne 0x431335
cmp dword [ebp + 0x28], ebx
jge 0x431335
cmp byte [ebp + 0x6f], 0
jne 0x431335
cmp word [esi], bx
jne 0x43131a
cmp edi, ebx
je 0x431335
cmp edi, 0xffffffff
je 0x431335
cmp dword [ebp + 0x58], ebx
je 0x431bdb
cmp dword [ebp + 0x40], ebx
jl 0x431bd6
cmp edi, 1
jl 0x431bd6
push 0x200000
lea ecx, [ebp + 0x54]
call fcn.0042c6b0
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.0043034a
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 0x431b29
cmp word [ebp - 0x10], 0x3e80
jge 0x431b29
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x40]
xor esi, esi
cmp eax, esi
jl 0x4313d2
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.00403ce4
cmp dword [ebp + 0x60], esi
je 0x431af0
cmp byte [ebp + 0x6e], 0
mov dword [ebp - 0x24], esi
je 0x43143b
push esi
push dword [ebp + 0x54]
push dword [ebp + 0x60]
call fcn.00430964
movsx ecx, byte [ebp + 0x6e]
add esp, 0xc
cmp eax, ecx
jne 0x431afa
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x54]
mov dword [ebp + 0x24], esi
push dword [ebp + 0x60]
call fcn.00429e9b
add esp, 0xc
cmp eax, esi
je 0x431afa
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.00429b24
mov esi, dword [ebp + 0x54]
add esi, 0x100000
cmp byte [ebp + 0x6f], 0
pop ecx
mov ebx, eax
je 0x4314f3
cmp byte [ebp + 0x7b], 0
je 0x4314d8
xor eax, eax
push eax
push eax
push eax
push ebx
push edi
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.004307e8
add esp, 0x1c
cmp dword [ebp - 0x18], edi
jg 0x431afa
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.0043072f
add esp, 0x10
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x431afa
cmp byte [ebp + 0x36], 0
je 0x431502
mov dword [ebp + 0x28], eax
jmp 0x431502
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x4314f6
cmp eax, 4
lea ecx, [eax - 1]
jle 0x4314ee
lea ecx, [eax*4 - 0x10]
mov dword [ebp + 0x68], ecx
jmp 0x4314f6
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x24]
jg 0x431afa
mov edi, dword [ebp - 0x20]
push dword [ebp + 0x60]
xor esi, esi
push esi
call fcn.0042e0d5
cmp eax, 7
pop ecx
pop ecx
je 0x431547
cmp byte [ebp + 0x7b], 0
jne 0x431547
cmp dword [ebp + 0x24], 4
jne 0x431547
mov al, byte [ebp + 0x3e]
cmp al, byte [edi + 0x20]
jne 0x431547
cmp byte [edi + 0xb0], 0
jne 0x431547
cmp byte [edi + 0x140], 0
jne 0x431547
cmp byte [edi + 0x1d0], 0
je 0x431afa
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x1c], esi
jle 0x431afa
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x24]
cmp edi, esi
jge 0x431afa
lea ecx, [ebp - 0x38]
call fcn.00427250
cmp byte [ebp + 0x6f], 0
je 0x43158f
cmp dword [ebp + 0x68], 0
jl 0x43158f
mov edi, dword [ebp + 0x68]
cmp edi, esi
lea eax, [esi + 0x3e8]
mov dword [ebp + 0x1c], eax
jge 0x431afa
cmp byte [ebp + 0x7b], 0
je 0x43159c
mov ebx, 0xff07
jmp 0x4315aa
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 0x4315f5
cmp dword [ebp + 0x68], 0
jl 0x4315f5
cmp ecx, dword [ebp + 0x68]
jne 0x431ade
test bl, 0x10
jne 0x431b74
cmp ebx, 0x84
je 0x431b74
mov ecx, dword [ebp + 0x24]
add ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
test ebx, ebx
je 0x431ade
cmp dword [ebp + 0x2c], 0
jle 0x431ade
cmp ebx, 5
je 0x431ade
cmp ebx, 0xf
je 0x431ade
cmp dword [ebp + 0x68], 0
jg 0x43165e
cmp dword [eax + 0x14], 0
jg 0x43165e
jl 0x431630
cmp dword [eax + 0x10], 0x200
ja 0x43165e
test bl, 0x10
je 0x431ade
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.00429b65
add esp, 0x20
jmp 0x431ade
inc dword [ebp - 0x28]
cmp byte [ebp + 0x6f], 0
jne 0x431678
mov eax, dword [ebp + 0x28]
cmp eax, 1
jl 0x431678
cmp eax, dword [ebp + 0x2c]
jne 0x431ade
cmp dword [ebp + 0x28], 0
jl 0x431689
mov eax, dword [ebp + 0x24]
add eax, 0x3e8
mov dword [ebp + 0x1c], eax
cmp byte [ebp + 0x6f], 0
je 0x4317a7
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.00429b65
xor edi, edi
add esp, 0x20
cmp word [ebp - 0x2c], di
jne 0x431ade
cmp dword [ebp + 0x58], edi
jne 0x43178f
cmp byte [ebp + 0x67], 0
je 0x4316ec
test bl, 0x10
jne 0x431ade
cmp ebx, 0x84
je 0x431ade
cmp eax, edi
je 0x431704
cmp word [ebp + 0x10], di
je 0x43178f
cmp byte [ebp + 0x5e], 0
jne 0x43178f
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 0x43173f
xor eax, eax
mov al, byte [ebp + 0x5d]
sub al, 0x41
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.00429a8a
add esp, 0xc
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x431b8b
cmp word [ebp + 0x48], 0x5a
ja 0x431b8b
cmp word [ebp + 0x14], di
je 0x431786
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.0043003c
add esp, 0x14
test eax, eax
je 0x43177d
mov dword [ebp + 0x20], edi
jmp 0x431786
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x68], edi
jl 0x431ade
lea ecx, [ebp + 0x60]
call fcn.00402a26
lea ecx, [ebp + 0x54]
call fcn.00427365
mov esi, dword [ebp + 0x20]
jmp 0x431c98
cmp word [ebp - 0x2c], 0
jne 0x431ade
mov eax, dword [ebp + 0x68]
xor ecx, ecx
cmp dword [ebp + 0x58], ecx
jne 0x4317ce
cmp dword [ebp + 0x28], ecx
jge 0x4317ce
cmp eax, ecx
jle 0x4317d0
cmp dword [ebp - 0x28], eax
jge 0x431b14
cmp eax, ecx
jl 0x4317fe
cmp dword [ebp + 0x58], ecx
je 0x4317dc
cmp eax, dword [ebp + 0x2c]
je 0x4317fe
cmp dword [ebp + 0x28], ecx
jge 0x4317fe
cmp eax, ecx
jne 0x431ade
test bl, 0x10
jne 0x431ade
cmp ebx, 0x84
je 0x431ade
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 0x431891
movsx ecx, word [ebp + eax - 0x148]
cmp ecx, dword [ebp + 0x2c]
jne 0x431891
cmp dword [ebp + 0x58], 0
mov si, word [ebp + eax - 0x140]
mov byte [ebp + 0x5c], 1
je 0x4318a6
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 0x431868
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x431868
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 0x431891
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp bx, 0x1a
jl 0x431806
cmp dword [ebp + 0x58], 0
jne 0x431ade
cmp byte [ebp + 0x67], 0
je 0x4318c3
test byte [ebp - 4], 0x10
jne 0x431ade
cmp dword [ebp - 4], 0x84
je 0x431ade
cmp byte [ebp + 0x37], 0
jne 0x4318d9
cmp byte [ebp + 0x6d], 0
jne 0x4318d9
cmp byte [ebp + 0x3f], 0
je 0x431a3a
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 0x431907
cmp byte [ebp + 0x6d], 0
je 0x431919
cmp edi, 4
jle 0x431919
inc dword [ebp - 0xc]
cmp byte [ebp + 0x6d], 1
je 0x431ade
jmp 0x431919
cmp byte [ebp + 0x6d], 1
jne 0x431919
mov ecx, dword [ebp + 0x24]
add ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
cmp byte [ebp + 0x6d], 2
jne 0x43192e
test si, si
je 0x43192e
cmp dword [ebp - 0xc], 1
je 0x431ade
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 0x431ade
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x4319b8
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 0x431970
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 0x43198d
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 0x431a36
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 0x4319d9
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 0x4319f6
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 0x431a55
cmp word [ebp + 0x10], 0
je 0x431ade
cmp byte [ebp + 0x5e], 0
jne 0x431ade
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 0x431a95
xor eax, eax
mov al, byte [ebp + 0x5d]
sub al, 0x41
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.00429a8a
add esp, 0xc
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x431b8b
cmp word [ebp + 0x48], 0x5a
ja 0x431b8b
cmp word [ebp + 0x14], 0
je 0x431ade
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.0043003c
add esp, 0x14
test eax, eax
je 0x431ad5
and dword [ebp + 0x20], 0
jmp 0x431ade
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 0x431559
jmp 0x431afa
inc dword [ebp - 0x24]
cmp word [ebp - 0x24], 0x20
jge 0x431b21
lea ecx, [ebp + 0x60]
call fcn.00402a26
inc dword [ebp - 0x10]
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], 0
jg 0x4313ad
jmp 0x431b29
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.00402a26
inc dword [ebp + 8]
cmp byte [ebp + 0x6d], 1
jne 0x431b3c
mov byte [ebp + 0x6d], 2
mov byte [ebp + 0x6e], 0
jmp 0x431b5f
cmp byte [ebp + 0x37], 0
jne 0x431b48
cmp byte [ebp + 0x6d], 0
je 0x431ba0
cmp byte [ebp + 0x5f], 0
je 0x431ba0
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.00427365
mov edi, dword [ebp + 0x68]
mov esi, dword [ebp + 0x38]
xor ebx, ebx
jmp 0x4312dd
lea ecx, [ebp + 0x60]
call fcn.00402a26
lea ecx, [ebp + 0x54]
call fcn.00427365
xor esi, esi
jmp 0x431c98
lea ecx, [ebp + 0x60]
call fcn.00402a26
lea ecx, [ebp + 0x54]
call fcn.00427365
jmp 0x43112d
xor eax, eax
cmp dword [ebp + 0x68], eax
jle 0x431cfd
cmp dword [ebp + 0x28], eax
jge 0x431cfd
cmp dword [ebp + 0x58], eax
jne 0x431cfd
cmp byte [ebp + 0x6f], al
jne 0x431cfd
lea ecx, [ebp + 0x54]
call fcn.00427365
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x68]
xor ebx, ebx
cmp dword [ebp + 0x58], ebx
jne 0x431bec
cmp dword [ebp + 0x40], ebx
jl 0x431216
cmp edi, ebx
jle 0x431216
cmp dword [ebp + 0x40], ebx
jl 0x431c0f
cmp edi, ebx
jle 0x431c0f
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 0x431c25
mov word [esi], 0xff0c
jmp 0x431c4a
cmp ax, 0x3b
jne 0x431c32
mov word [esi], 0xff1b
jmp 0x431c4a
cmp ax, 0x3a
jne 0x431c3f
mov word [esi], 0xff1a
jmp 0x431c4a
cmp ax, 0x3d
jne 0x431c4a
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 0x431cbf
cmp dword [ebp + 0x58], ebx
jne 0x431cbf
push dword [ebp + 4]
lea eax, [ebp - 0x34]
push dword [ebp + 0x30]
push esi
push eax
push dword [ebp + 0x50]
call fcn.0043003c
add esp, 0x14
cmp eax, ebx
jne 0x431b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.00427365
lea ecx, [ebp + 0x50]
call fcn.00427365
lea ecx, [ebp + 0x38]
call fcn.00427365
push 0x4975fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x431d2b
cmp byte [ebp + 4], 0
je 0x431cd6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x431cd6
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 0x431c90
xor eax, eax
jmp 0x431c96
lea ecx, [ebp + 0x54]
call fcn.00427365
lea ecx, [ebp - 8]
call fcn.00427365
lea ecx, [ebp + 0x50]
call fcn.00427365
lea ecx, [ebp + 0x38]
call fcn.00427365
push 0x4975fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8