Function at 0x430af3
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 0x430b2a
add esi, edi
mov dword [ebp + 0x78], esi
push edi
push esi
push 0x486360
call fcn.00427f14
push edi
push esi
push 0x48635c
mov byte [ebp + 0x37], al
call fcn.00427f14
push 3
push esi
push 0x486358
mov byte [ebp + 0x6d], al
call fcn.00427f14
push edi
push esi
push 0x486354
mov byte [ebp + 3], al
call fcn.00427f14
mov byte [ebp + 0x3f], al
lea eax, [ebp + 0x78]
push eax
call fcn.00403c51
add esp, 0x34
push 5
lea ecx, [ebp + 0x38]
call fcn.0042c415
push 0x14
lea ecx, [ebp + 0x50]
call fcn.0042c415
lea ecx, [ebp - 8]
call fcn.0042c3f7
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.00427f14
add esp, 0xc
test al, al
je 0x430c0b
add dword [ebp + 0x78], 0xc
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp - 4], 0x42
call fcn.0042ed5c
mov al, byte [ebp - 4]
mov byte [ebp + 0x3e], al
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
add esp, 0x10
push edi
push dword [ebp + 0x78]
push 0x486348
call fcn.00427eca
add esp, 0xc
test al, al
je 0x430c32
add dword [ebp + 0x78], 4
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
pop ecx
mov byte [ebp + 0x5e], 1
mov ecx, dword [ebp + 0x78]
jmp 0x430c74
cmp ax, 0x2a
jne 0x430c43
mov byte [ebp + 4], 1
jmp 0x430c6f
cmp ax, 0x26
jne 0x430c4f
or dword [ebp + 0x30], 8
jmp 0x430c6f
cmp ax, 0x2d
jne 0x430c7c
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0040ee76
add esp, 4
test al, al
jne 0x430c7c
mov dword [ebp + 0x58], 1
add ecx, edi
mov dword [ebp + 0x78], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x430c37
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, bx
pop ecx
jne 0x430c99
or dword [ebp + 0x68], 0xffffffff
or dword [ebp + 0x40], 0xffffffff
cmp ax, bx
push 0x2c
mov dword [ebp - 0x2c], ebx
pop esi
je 0x430e8b
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042e8ac
mov eax, dword [ebp + 0x78]
add esp, 0xc
cmp word [eax], si
jne 0x430cd5
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042e8ac
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], si
jne 0x430cf1
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042eaf9
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2c
mov edi, 0xffdf
jne 0x430d50
lea ecx, [ebp + 8]
call fcn.0042c3f7
mov eax, dword [ebp + 0x78]
add eax, 2
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
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 0x430d36
push 0x2a
pop edx
cmp cx, dx
jne 0x430d36
mov dword [ebp - 0x2c], edx
cmp ax, 0x41
jb 0x430d48
cmp ax, 0x5a
ja 0x430d48
mov byte [ebp + 0x5d], al
mov byte [ebp + 0x5f], al
lea ecx, [ebp + 8]
call fcn.0042704a
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.0040ee76
add esp, 4
test al, al
jne 0x430dc9
cmp si, 0x2d
jne 0x430d85
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0040ee76
add esp, 4
test al, al
jne 0x430dc9
cmp dx, 0x46
jne 0x430d97
mov byte [ebp + 0x6e], 0xc
add ecx, 2
mov dword [ebp + 0x78], ecx
jmp 0x430e02
cmp dx, 0x55
je 0x430dc3
cmp dx, 0x52
je 0x430dc3
cmp si, 0x3a
je 0x430e02
cmp si, 0x23
je 0x430e02
cmp dword [ebp + 0x58], ebx
jne 0x430e02
cmp si, bx
je 0x430e02
mov esi, 0x80070057
jmp 0x431924
mov byte [ebp + 0x6e], 0xb
jmp 0x430d8f
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.0042ed5c
pop ecx
pop ecx
jmp 0x430df3
cmp si, 0x3a
je 0x430df8
cmp si, 0x23
je 0x430df8
add dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
mov si, word [eax]
cmp si, bx
jne 0x430ddd
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
jne 0x430e19
mov eax, dword [ebp + 0x38]
cmp word [eax], bx
je 0x430e19
mov dword [ebp + 0x58], 1
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x3a
pop ecx
je 0x430e39
cmp ax, 0x23
jne 0x430e8b
mov byte [ebp + 0x6f], 1
cmp byte [ebp + 0x6e], 0
jne 0x430e44
cmp dword [ebp + 0x40], ebx
jge 0x430e48
mov byte [ebp + 0x6f], 0
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x78]
push eax
call fcn.00426ff7
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
pop ecx
jne 0x430e79
movzx eax, word [eax + 2]
push eax
call fcn.0040ee76
add esp, 4
test al, al
jne 0x430e79
mov dword [ebp + 0x58], 1
jmp 0x430e8b
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042eaf9
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov edi, dword [ebp + 0x68]
mov dword [ebp + 0x28], 0xfffffff8
mov dword [ebp - 0x18], edi
je 0x430ebc
cmp edi, ebx
jg 0x430eaa
xor esi, esi
inc esi
jmp 0x431924
cmp edi, 4
jg 0x430eb2
dec edi
jmp 0x430eb9
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.0042c43e
mov esi, dword [ebp + 0x38]
mov ax, word [esi]
cmp ax, 0x61
jb 0x430ee8
cmp ax, 0x7a
ja 0x430ee8
add word [esi], 0xffe0
cmp byte [ebp + 0x6e], 0
mov byte [ebp + 0x36], 0
jne 0x430f32
cmp dword [ebp + 0x58], ebx
jne 0x430f32
mov ax, word [esi]
cmp ax, 0x100
jae 0x430f32
cmp ax, 0x41
jb 0x430f0c
cmp ax, 0x5a
jbe 0x430f32
cmp dword [ebp + 0x40], ebx
mov word [esi], bx
jl 0x430f1c
cmp edi, 1
jl 0x430f1c
mov dword [ebp + 0x28], edi
cmp byte [ebp + 0x6f], 0
je 0x430f32
cmp dword [ebp + 0x40], ebx
jl 0x430f32
cmp edi, ebx
jl 0x430f32
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.0042c43e
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp byte [ebp + 0x3f], 0
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 0x5f]
jne 0x430f5a
mov al, 0x43
movsx ax, al
mov word [ebp - 0x1c], ax
mov dword [ebp + 8], 1
cmp byte [ebp + 0x6f], 0
jne 0x430f81
cmp byte [ebp + 0x5e], 0
je 0x430f81
cmp dword [ebp + 0x40], ebx
jl 0x430f81
cmp edi, ebx
jle 0x430f81
mov dword [ebp + 0x28], edi
cmp byte [ebp + 0x67], 0
jne 0x430fc1
cmp byte [ebp + 0x6e], 0
jne 0x430fc1
cmp dword [ebp + 0x28], ebx
jge 0x430fc1
cmp byte [ebp + 0x6f], 0
jne 0x430fc1
cmp word [esi], bx
jne 0x430fa6
cmp edi, ebx
je 0x430fc1
cmp edi, 0xffffffff
je 0x430fc1
cmp dword [ebp + 0x58], ebx
je 0x431867
cmp dword [ebp + 0x40], ebx
jl 0x431862
cmp edi, 1
jl 0x431862
push 0x200000
lea ecx, [ebp + 0x54]
call fcn.0042c29e
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.0042ffd6
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 0x4317b5
cmp word [ebp - 0x10], 0x3e80
jge 0x4317b5
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x40]
xor esi, esi
cmp eax, esi
jl 0x43105e
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.00403c6d
cmp dword [ebp + 0x60], esi
je 0x43177c
cmp byte [ebp + 0x6e], 0
mov dword [ebp - 0x24], esi
je 0x4310c7
push esi
push dword [ebp + 0x54]
push dword [ebp + 0x60]
call fcn.004305f0
movsx ecx, byte [ebp + 0x6e]
add esp, 0xc
cmp eax, ecx
jne 0x431786
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x54]
mov dword [ebp + 0x24], esi
push dword [ebp + 0x60]
call fcn.00429b49
add esp, 0xc
cmp eax, esi
je 0x431786
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.004297d2
mov esi, dword [ebp + 0x54]
add esi, 0x100000
cmp byte [ebp + 0x6f], 0
pop ecx
mov ebx, eax
je 0x43117f
cmp byte [ebp + 0x7b], 0
je 0x431164
xor eax, eax
push eax
push eax
push eax
push ebx
push edi
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.00430474
add esp, 0x1c
cmp dword [ebp - 0x18], edi
jg 0x431786
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.004303bb
add esp, 0x10
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x431786
cmp byte [ebp + 0x36], 0
je 0x43118e
mov dword [ebp + 0x28], eax
jmp 0x43118e
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x431182
cmp eax, 4
lea ecx, [eax - 1]
jle 0x43117a
lea ecx, [eax*4 - 0x10]
mov dword [ebp + 0x68], ecx
jmp 0x431182
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x24]
jg 0x431786
mov edi, dword [ebp - 0x20]
push dword [ebp + 0x60]
xor esi, esi
push esi
call fcn.0042dd61
cmp eax, 7
pop ecx
pop ecx
je 0x4311d3
cmp byte [ebp + 0x7b], 0
jne 0x4311d3
cmp dword [ebp + 0x24], 4
jne 0x4311d3
mov al, byte [ebp + 0x3e]
cmp al, byte [edi + 0x20]
jne 0x4311d3
cmp byte [edi + 0xb0], 0
jne 0x4311d3
cmp byte [edi + 0x140], 0
jne 0x4311d3
cmp byte [edi + 0x1d0], 0
je 0x431786
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x1c], esi
jle 0x431786
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x24]
cmp edi, esi
jge 0x431786
lea ecx, [ebp - 0x38]
call fcn.00426f34
cmp byte [ebp + 0x6f], 0
je 0x43121b
cmp dword [ebp + 0x68], 0
jl 0x43121b
mov edi, dword [ebp + 0x68]
cmp edi, esi
lea eax, [esi + 0x3e8]
mov dword [ebp + 0x1c], eax
jge 0x431786
cmp byte [ebp + 0x7b], 0
je 0x431228
mov ebx, 0xff07
jmp 0x431236
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 0x431281
cmp dword [ebp + 0x68], 0
jl 0x431281
cmp ecx, dword [ebp + 0x68]
jne 0x43176a
test bl, 0x10
jne 0x431800
cmp ebx, 0x84
je 0x431800
mov ecx, dword [ebp + 0x24]
add ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
test ebx, ebx
je 0x43176a
cmp dword [ebp + 0x2c], 0
jle 0x43176a
cmp ebx, 5
je 0x43176a
cmp ebx, 0xf
je 0x43176a
cmp dword [ebp + 0x68], 0
jg 0x4312ea
cmp dword [eax + 0x14], 0
jg 0x4312ea
jl 0x4312bc
cmp dword [eax + 0x10], 0x200
ja 0x4312ea
test bl, 0x10
je 0x43176a
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.00429813
add esp, 0x20
jmp 0x43176a
inc dword [ebp - 0x28]
cmp byte [ebp + 0x6f], 0
jne 0x431304
mov eax, dword [ebp + 0x28]
cmp eax, 1
jl 0x431304
cmp eax, dword [ebp + 0x2c]
jne 0x43176a
cmp dword [ebp + 0x28], 0
jl 0x431315
mov eax, dword [ebp + 0x24]
add eax, 0x3e8
mov dword [ebp + 0x1c], eax
cmp byte [ebp + 0x6f], 0
je 0x431433
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.00429813
xor edi, edi
add esp, 0x20
cmp word [ebp - 0x2c], di
jne 0x43176a
cmp dword [ebp + 0x58], edi
jne 0x43141b
cmp byte [ebp + 0x67], 0
je 0x431378
test bl, 0x10
jne 0x43176a
cmp ebx, 0x84
je 0x43176a
cmp eax, edi
je 0x431390
cmp word [ebp + 0x10], di
je 0x43141b
cmp byte [ebp + 0x5e], 0
jne 0x43141b
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 0x4313cb
xor eax, eax
mov al, byte [ebp + 0x5d]
sub al, 0x41
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.00429738
add esp, 0xc
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x431817
cmp word [ebp + 0x48], 0x5a
ja 0x431817
cmp word [ebp + 0x14], di
je 0x431412
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.0042fcc8
add esp, 0x14
test eax, eax
je 0x431409
mov dword [ebp + 0x20], edi
jmp 0x431412
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x68], edi
jl 0x43176a
lea ecx, [ebp + 0x60]
call fcn.0040296e
lea ecx, [ebp + 0x54]
call fcn.0042704a
mov esi, dword [ebp + 0x20]
jmp 0x431924
cmp word [ebp - 0x2c], 0
jne 0x43176a
mov eax, dword [ebp + 0x68]
xor ecx, ecx
cmp dword [ebp + 0x58], ecx
jne 0x43145a
cmp dword [ebp + 0x28], ecx
jge 0x43145a
cmp eax, ecx
jle 0x43145c
cmp dword [ebp - 0x28], eax
jge 0x4317a0
cmp eax, ecx
jl 0x43148a
cmp dword [ebp + 0x58], ecx
je 0x431468
cmp eax, dword [ebp + 0x2c]
je 0x43148a
cmp dword [ebp + 0x28], ecx
jge 0x43148a
cmp eax, ecx
jne 0x43176a
test bl, 0x10
jne 0x43176a
cmp ebx, 0x84
je 0x43176a
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 0x43151d
movsx ecx, word [ebp + eax - 0x148]
cmp ecx, dword [ebp + 0x2c]
jne 0x43151d
cmp dword [ebp + 0x58], 0
mov si, word [ebp + eax - 0x140]
mov byte [ebp + 0x5c], 1
je 0x431532
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 0x4314f4
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x4314f4
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 0x43151d
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp bx, 0x1a
jl 0x431492
cmp dword [ebp + 0x58], 0
jne 0x43176a
cmp byte [ebp + 0x67], 0
je 0x43154f
test byte [ebp - 4], 0x10
jne 0x43176a
cmp dword [ebp - 4], 0x84
je 0x43176a
cmp byte [ebp + 0x37], 0
jne 0x431565
cmp byte [ebp + 0x6d], 0
jne 0x431565
cmp byte [ebp + 0x3f], 0
je 0x4316c6
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 0x431593
cmp byte [ebp + 0x6d], 0
je 0x4315a5
cmp edi, 4
jle 0x4315a5
inc dword [ebp - 0xc]
cmp byte [ebp + 0x6d], 1
je 0x43176a
jmp 0x4315a5
cmp byte [ebp + 0x6d], 1
jne 0x4315a5
mov ecx, dword [ebp + 0x24]
add ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
cmp byte [ebp + 0x6d], 2
jne 0x4315ba
test si, si
je 0x4315ba
cmp dword [ebp - 0xc], 1
je 0x43176a
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 0x43176a
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x431644
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 0x4315fc
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 0x431619
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 0x4316c2
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 0x431665
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 0x431682
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 0x4316e1
cmp word [ebp + 0x10], 0
je 0x43176a
cmp byte [ebp + 0x5e], 0
jne 0x43176a
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 0x431721
xor eax, eax
mov al, byte [ebp + 0x5d]
sub al, 0x41
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.00429738
add esp, 0xc
mov word [ebp + 0x14], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x431817
cmp word [ebp + 0x48], 0x5a
ja 0x431817
cmp word [ebp + 0x14], 0
je 0x43176a
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.0042fcc8
add esp, 0x14
test eax, eax
je 0x431761
and dword [ebp + 0x20], 0
jmp 0x43176a
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 0x4311e5
jmp 0x431786
inc dword [ebp - 0x24]
cmp word [ebp - 0x24], 0x20
jge 0x4317ad
lea ecx, [ebp + 0x60]
call fcn.0040296e
inc dword [ebp - 0x10]
dec dword [ebp + 0x44]
cmp dword [ebp + 0x44], 0
jg 0x431039
jmp 0x4317b5
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.0040296e
inc dword [ebp + 8]
cmp byte [ebp + 0x6d], 1
jne 0x4317c8
mov byte [ebp + 0x6d], 2
mov byte [ebp + 0x6e], 0
jmp 0x4317eb
cmp byte [ebp + 0x37], 0
jne 0x4317d4
cmp byte [ebp + 0x6d], 0
je 0x43182c
cmp byte [ebp + 0x5f], 0
je 0x43182c
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.0042704a
mov edi, dword [ebp + 0x68]
mov esi, dword [ebp + 0x38]
xor ebx, ebx
jmp 0x430f69
lea ecx, [ebp + 0x60]
call fcn.0040296e
lea ecx, [ebp + 0x54]
call fcn.0042704a
xor esi, esi
jmp 0x431924
lea ecx, [ebp + 0x60]
call fcn.0040296e
lea ecx, [ebp + 0x54]
call fcn.0042704a
jmp 0x430db9
xor eax, eax
cmp dword [ebp + 0x68], eax
jle 0x431989
cmp dword [ebp + 0x28], eax
jge 0x431989
cmp dword [ebp + 0x58], eax
jne 0x431989
cmp byte [ebp + 0x6f], al
jne 0x431989
lea ecx, [ebp + 0x54]
call fcn.0042704a
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x68]
xor ebx, ebx
cmp dword [ebp + 0x58], ebx
jne 0x431878
cmp dword [ebp + 0x40], ebx
jl 0x430ea2
cmp edi, ebx
jle 0x430ea2
cmp dword [ebp + 0x40], ebx
jl 0x43189b
cmp edi, ebx
jle 0x43189b
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 0x4318b1
mov word [esi], 0xff0c
jmp 0x4318d6
cmp ax, 0x3b
jne 0x4318be
mov word [esi], 0xff1b
jmp 0x4318d6
cmp ax, 0x3a
jne 0x4318cb
mov word [esi], 0xff1a
jmp 0x4318d6
cmp ax, 0x3d
jne 0x4318d6
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 0x43194b
cmp dword [ebp + 0x58], ebx
jne 0x43194b
push dword [ebp + 4]
lea eax, [ebp - 0x34]
push dword [ebp + 0x30]
push esi
push eax
push dword [ebp + 0x50]
call fcn.0042fcc8
add esp, 0x14
cmp eax, ebx
jne 0x431810
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.0042704a
lea ecx, [ebp + 0x50]
call fcn.0042704a
lea ecx, [ebp + 0x38]
call fcn.0042704a
push 0x4975fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4319b7
cmp byte [ebp + 4], 0
je 0x431962
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x431962
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 0x43191c
xor eax, eax
jmp 0x431922
lea ecx, [ebp + 0x54]
call fcn.0042704a
lea ecx, [ebp - 8]
call fcn.0042704a
lea ecx, [ebp + 0x50]
call fcn.0042704a
lea ecx, [ebp + 0x38]
call fcn.0042704a
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