Function at 0x42f6ee
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x27c
push ebx
push esi
mov eax, 0x490234
push edi
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2a
push 2
sete byte [ebp + 0x66]
xor ebx, ebx
cmp byte [ebp + 0x66], bl
pop edi
je 0x42f725
add esi, edi
mov dword [ebp + 0x78], esi
push edi
push esi
push 0x47ffd0
call fcn.00426f79
push edi
push esi
push 0x47ffcc
mov byte [ebp + 0x38], al
call fcn.00426f79
push 3
push esi
push 0x47ffc8
mov byte [ebp + 0x6d], al
call fcn.00426f79
push edi
push esi
push 0x47ffc4
mov byte [ebp + 7], al
call fcn.00426f79
mov byte [ebp + 0x3b], al
lea eax, [ebp + 0x78]
push eax
call fcn.00403b20
add esp, 0x34
push 5
lea ecx, [ebp + 0x5c]
call fcn.0042aed6
push 0x14
lea ecx, [ebp + 0x3c]
call fcn.0042aed6
lea ecx, [ebp - 4]
call fcn.0042aeb8
or dword [ebp + 0x44], 0xffffffff
push 6
push dword [ebp + 0x78]
mov dword [ebp + 0xc], ebx
push str._SKIP
mov byte [ebp + 8], 0
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x40], 0x3e8
mov byte [ebp + 0x5b], 0
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x6e], 0
mov byte [ebp + 0x6f], 0
mov byte [ebp + 0x59], 0x43
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x39], 0
call fcn.00426f79
add esp, 0xc
test al, al
je 0x42f806
add dword [ebp + 0x78], 0xc
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp], 0x42
call fcn.0042dab0
mov al, byte [ebp]
mov byte [ebp + 0x39], al
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
add esp, 0x10
push edi
push dword [ebp + 0x78]
push 0x47ffb8
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x42f82d
add dword [ebp + 0x78], 4
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
pop ecx
mov byte [ebp + 0x5b], 1
mov ecx, dword [ebp + 0x78]
jmp 0x42f86f
cmp ax, 0x2a
jne 0x42f83e
mov byte [ebp + 8], 1
jmp 0x42f86a
cmp ax, 0x26
jne 0x42f84a
or dword [ebp + 0x34], 8
jmp 0x42f86a
cmp ax, 0x2d
jne 0x42f877
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0042aa31
add esp, 4
test al, al
jne 0x42f877
mov dword [ebp + 0x54], 1
add ecx, edi
mov dword [ebp + 0x78], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x42f832
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, bx
pop ecx
jne 0x42f894
or dword [ebp + 0x68], 0xffffffff
or dword [ebp + 0x44], 0xffffffff
cmp ax, bx
push 0x2c
mov dword [ebp - 0x28], ebx
pop esi
je 0x42fa86
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042d669
mov eax, dword [ebp + 0x78]
add esp, 0xc
cmp word [eax], si
jne 0x42f8d0
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042d669
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], si
jne 0x42f8ec
add dword [ebp + 0x78], edi
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042d84d
add esp, 0xc
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2c
mov edi, 0xffdf
jne 0x42f94b
lea ecx, [ebp + 0xc]
call fcn.0042aeb8
mov eax, dword [ebp + 0x78]
add eax, 2
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
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 0x42f931
push 0x2a
pop edx
cmp cx, dx
jne 0x42f931
mov dword [ebp - 0x28], edx
cmp ax, 0x41
jb 0x42f943
cmp ax, 0x5a
ja 0x42f943
mov byte [ebp + 0x59], al
mov byte [ebp + 0x67], al
lea ecx, [ebp + 0xc]
call fcn.0042602e
mov ecx, dword [ebp - 4]
xor esi, esi
mov si, word [ecx]
mov dword [ebp + 0x78], ecx
mov edx, esi
push esi
and edx, edi
call fcn.0042aa31
add esp, 4
test al, al
jne 0x42f9c4
cmp si, 0x2d
jne 0x42f980
xor eax, eax
mov ax, word [ecx + 2]
push eax
call fcn.0042aa31
add esp, 4
test al, al
jne 0x42f9c4
cmp dx, 0x46
jne 0x42f992
mov byte [ebp + 0x6e], 0xc
add ecx, 2
mov dword [ebp + 0x78], ecx
jmp 0x42f9fd
cmp dx, 0x55
je 0x42f9be
cmp dx, 0x52
je 0x42f9be
cmp si, 0x3a
je 0x42f9fd
cmp si, 0x23
je 0x42f9fd
cmp dword [ebp + 0x54], ebx
jne 0x42f9fd
cmp si, bx
je 0x42f9fd
mov esi, 0x80070057
jmp 0x43053d
mov byte [ebp + 0x6e], 0xb
jmp 0x42f98a
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ecx
call fcn.0042dab0
pop ecx
pop ecx
jmp 0x42f9ee
cmp si, 0x3a
je 0x42f9f3
cmp si, 0x23
je 0x42f9f3
add dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
mov si, word [eax]
cmp si, bx
jne 0x42f9d8
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
jne 0x42fa14
mov eax, dword [ebp + 0x5c]
cmp word [eax], bx
je 0x42fa14
mov dword [ebp + 0x54], 1
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x3a
pop ecx
je 0x42fa34
cmp ax, 0x23
jne 0x42fa86
mov byte [ebp + 0x6f], 1
cmp byte [ebp + 0x6e], 0
jne 0x42fa3f
cmp dword [ebp + 0x44], ebx
jge 0x42fa43
mov byte [ebp + 0x6f], 0
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x78]
push eax
call fcn.0042609c
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
pop ecx
jne 0x42fa74
movzx eax, word [eax + 2]
push eax
call fcn.0042aa31
add esp, 4
test al, al
jne 0x42fa74
mov dword [ebp + 0x54], 1
jmp 0x42fa86
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0042d84d
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov esi, dword [ebp + 0x68]
mov dword [ebp + 0x2c], 0xfffffff8
mov dword [ebp - 0x14], esi
je 0x42fab7
cmp esi, ebx
jg 0x42faa5
xor esi, esi
inc esi
jmp 0x43053d
cmp esi, 4
jg 0x42faad
dec esi
jmp 0x42fab4
lea esi, [esi*4 - 0x10]
mov dword [ebp + 0x68], esi
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 5
push eax
lea ecx, [ebp + 0x5c]
call fcn.0042aeff
mov eax, dword [ebp + 0x5c]
mov cx, word [eax]
cmp cx, 0x61
jb 0x42fae6
cmp cx, 0x7a
ja 0x42fae6
add word [eax], 0xffe0
mov eax, dword [ebp + 0x5c]
cmp byte [ebp + 0x6e], 0
mov byte [ebp + 0x3a], 0
jne 0x42fb34
cmp dword [ebp + 0x54], ebx
jne 0x42fb34
mov cx, word [eax]
cmp cx, 0x100
jae 0x42fb34
cmp cx, 0x41
jb 0x42fb0b
cmp cx, 0x5a
jbe 0x42fb34
cmp dword [ebp + 0x44], ebx
mov word [eax], bx
jl 0x42fb1b
cmp esi, 1
jl 0x42fb1b
mov dword [ebp + 0x2c], esi
cmp byte [ebp + 0x6f], 0
je 0x42fb31
cmp dword [ebp + 0x44], ebx
jl 0x42fb31
cmp esi, ebx
jl 0x42fb31
mov dword [ebp + 0x2c], esi
mov byte [ebp + 0x3a], 1
mov eax, dword [ebp + 0x5c]
mov ax, word [eax]
push 0x64
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x24], ebx
mov word [ebp + 0x14], ax
call fcn.0042aeff
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp byte [ebp + 0x3b], 0
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0x67]
jne 0x42fb5c
mov al, 0x43
movsx ax, al
mov word [ebp - 0x18], ax
mov dword [ebp + 0xc], 1
cmp byte [ebp + 0x6f], 0
jne 0x42fb83
cmp byte [ebp + 0x5b], 0
je 0x42fb83
cmp dword [ebp + 0x44], ebx
jl 0x42fb83
cmp esi, ebx
jle 0x42fb83
mov dword [ebp + 0x2c], esi
cmp byte [ebp + 0x66], 0
jne 0x42fbc6
cmp byte [ebp + 0x6e], 0
jne 0x42fbc6
cmp dword [ebp + 0x2c], ebx
jge 0x42fbc6
cmp byte [ebp + 0x6f], 0
jne 0x42fbc6
mov eax, dword [ebp + 0x5c]
cmp word [eax], bx
jne 0x42fbab
cmp esi, ebx
je 0x42fbc6
cmp esi, 0xffffffff
je 0x42fbc6
cmp dword [ebp + 0x54], ebx
je 0x430470
cmp dword [ebp + 0x44], ebx
jl 0x43046b
cmp esi, 1
jl 0x43046b
push 0x200000
lea ecx, [ebp + 0x50]
call fcn.0042add7
xor eax, eax
mov word [ebp - 0x144], bx
lea edi, [ebp - 0x142]
stosd dword es:[edi], eax
push 0x41
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push ebx
push dword [ebp + 0x50]
lea edi, [ebp - 0x13a]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
push eax
call fcn.0042ec9e
mov eax, dword [ebp + 0x14]
add esp, 0xc
dec dword [ebp + 0x40]
cmp dword [ebp + 0x40], ebx
mov word [ebp + 0x48], ax
mov word [ebp + 0x4a], 0x3a
mov word [ebp + 0x4c], bx
mov word [ebp + 0x18], ax
mov word [ebp + 0x1a], 0x3a
mov word [ebp + 0x1c], 0x5c
mov word [ebp + 0x1e], bx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
jle 0x4303c4
cmp word [ebp - 0xc], 0x3e80
jge 0x4303c4
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x44]
xor esi, esi
cmp eax, esi
jl 0x42fc63
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], 0x7530
movsx eax, word [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push 0x47ff90
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 - 0x20c]
push eax
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], esi
call fcn.00403b3c
cmp dword [ebp + 0x60], esi
je 0x43038b
cmp byte [ebp + 0x6e], 0
mov dword [ebp - 0x20], esi
je 0x42fccc
push esi
push dword [ebp + 0x50]
push dword [ebp + 0x60]
call fcn.0042f22d
movsx ecx, byte [ebp + 0x6e]
add esp, 0xc
cmp eax, ecx
jne 0x430395
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x50]
mov dword [ebp + 0x28], esi
push dword [ebp + 0x60]
call fcn.00428b20
add esp, 0xc
cmp eax, esi
je 0x430395
cmp dword [eax], 1
push dword [ebp + 0x60]
mov edi, dword [eax + 0x28]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x1c], ecx
sete byte [ebp + 0x7b]
call fcn.004287a9
mov esi, dword [ebp + 0x50]
add esi, 0x100000
cmp byte [ebp + 0x6f], 0
pop ecx
mov ebx, eax
je 0x42fd7f
cmp byte [ebp + 0x7b], 0
je 0x42fd64
push ebx
push edi
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.0042f13c
add esp, 0x10
cmp dword [ebp - 0x14], edi
jg 0x430395
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push ebx
push dword [ebp + 0x28]
shl eax, 6
add eax, ebx
lea eax, [esi + eax*2 - 0x80]
push edi
push eax
call fcn.0042f083
add esp, 0x10
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x430395
cmp byte [ebp + 0x3a], 0
je 0x42fd8e
mov dword [ebp + 0x2c], eax
jmp 0x42fd8e
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x42fd82
cmp eax, 4
lea ecx, [eax - 1]
jle 0x42fd7a
lea ecx, [eax*4 - 0x10]
mov dword [ebp + 0x68], ecx
jmp 0x42fd82
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x28]
jg 0x430395
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0x60]
xor esi, esi
push esi
call fcn.0042c3bd
cmp eax, 7
pop ecx
pop ecx
je 0x42fdd3
cmp byte [ebp + 0x7b], 0
jne 0x42fdd3
cmp dword [ebp + 0x28], 4
jne 0x42fdd3
mov al, byte [ebp + 0x39]
cmp al, byte [edi + 0x20]
jne 0x42fdd3
cmp byte [edi + 0xb0], 0
jne 0x42fdd3
cmp byte [edi + 0x140], 0
jne 0x42fdd3
cmp byte [edi + 0x1d0], 0
je 0x430395
dec dword [ebp + 0x40]
cmp dword [ebp + 0x40], esi
mov dword [ebp - 8], esi
mov dword [ebp + 0x20], esi
jle 0x430395
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp + 0x28]
cmp edi, esi
jge 0x430395
lea ecx, [ebp - 0x34]
call fcn.00425f56
cmp byte [ebp + 0x6f], 0
je 0x42fe1b
cmp dword [ebp + 0x68], 0
jl 0x42fe1b
mov edi, dword [ebp + 0x68]
cmp edi, esi
lea eax, [esi + 0x3e8]
mov dword [ebp + 0x20], eax
jge 0x430395
cmp byte [ebp + 0x7b], 0
je 0x42fe28
mov ebx, 0xff07
jmp 0x42fe36
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + edi*8]
shl eax, 4
movzx ebx, byte [eax + ecx + 0x20]
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + edi*8]
shl eax, 4
add eax, ecx
cmp byte [ebp + 0x66], 0
movsx ecx, word [eax + 0x18]
mov dword [ebp], ebx
mov dword [ebp + 0x30], ecx
je 0x42fe81
cmp dword [ebp + 0x68], 0
jl 0x42fe81
cmp ecx, dword [ebp + 0x68]
jne 0x430379
test bl, 0x10
jne 0x43040c
cmp ebx, 0x84
je 0x43040c
mov ecx, dword [ebp + 0x28]
add ecx, 0x3e8
mov dword [ebp + 0x20], ecx
test ebx, ebx
je 0x430379
cmp dword [ebp + 0x30], 0
jle 0x430379
cmp ebx, 5
je 0x430379
cmp ebx, 0xf
je 0x430379
cmp ebx, 0x85
je 0x430379
cmp dword [ebp + 0x68], 0
jg 0x42fef6
cmp dword [eax + 0x14], 0
jg 0x42fef6
jl 0x42fec8
cmp dword [eax + 0x10], 0x200
ja 0x42fef6
test bl, 0x10
je 0x430379
xor eax, eax
push eax
push eax
push 1
push 1
push eax
movsx eax, word [ebp + 0x10]
push dword [ebp + 0x30]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004287ea
add esp, 0x20
jmp 0x430379
inc dword [ebp - 0x24]
cmp byte [ebp + 0x6f], 0
jne 0x42ff10
mov eax, dword [ebp + 0x2c]
cmp eax, 1
jl 0x42ff10
cmp eax, dword [ebp + 0x30]
jne 0x430379
cmp dword [ebp + 0x2c], 0
jl 0x42ff21
mov eax, dword [ebp + 0x28]
add eax, 0x3e8
mov dword [ebp + 0x20], eax
cmp byte [ebp + 0x6f], 0
je 0x43003f
movsx esi, word [ebp + 0x10]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x3c]
movzx eax, byte [ebp + 8]
push eax
push dword [ebp + 0x54]
lea eax, [ebp - 0x144]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push esi
push eax
call fcn.004287ea
xor edi, edi
add esp, 0x20
cmp word [ebp - 0x28], di
jne 0x430379
cmp dword [ebp + 0x54], edi
jne 0x430027
cmp byte [ebp + 0x66], 0
je 0x42ff84
test bl, 0x10
jne 0x430379
cmp ebx, 0x84
je 0x430379
cmp eax, edi
je 0x42ff9c
cmp word [ebp + 0x14], di
je 0x430027
cmp byte [ebp + 0x5b], 0
jne 0x430027
movsx eax, word [ebp + 0x30]
push eax
push esi
push str.DeviceHarddisk_dPartition_d
push dword [ebp + 0x3c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp + 0x48], di
jne 0x42ffd7
xor eax, eax
mov al, byte [ebp + 0x59]
sub al, 0x41
push eax
lea eax, [ebp - 0x10]
push 0xc
push eax
call fcn.0042870f
add esp, 0xc
mov word [ebp + 0x18], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x430423
cmp word [ebp + 0x48], 0x5a
ja 0x430423
cmp word [ebp + 0x18], di
je 0x43001e
push dword [ebp + 8]
lea eax, [ebp + 0x18]
push dword [ebp + 0x34]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x3c]
call fcn.0042e990
add esp, 0x14
test eax, eax
je 0x430015
mov dword [ebp + 0x24], edi
jmp 0x43001e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x68], edi
jl 0x430379
lea ecx, [ebp + 0x60]
call fcn.004029f8
lea ecx, [ebp + 0x50]
call fcn.0042602e
mov esi, dword [ebp + 0x24]
jmp 0x43053d
cmp word [ebp - 0x28], 0
jne 0x430379
mov eax, dword [ebp + 0x68]
xor ecx, ecx
cmp dword [ebp + 0x54], ecx
jne 0x430066
cmp dword [ebp + 0x2c], ecx
jge 0x430066
cmp eax, ecx
jle 0x430068
cmp dword [ebp - 0x24], eax
jge 0x4303af
cmp eax, ecx
jl 0x430096
cmp dword [ebp + 0x54], ecx
je 0x430074
cmp eax, dword [ebp + 0x30]
je 0x430096
cmp dword [ebp + 0x2c], ecx
jge 0x430096
cmp eax, ecx
jne 0x430379
test bl, 0x10
jne 0x430379
cmp ebx, 0x84
je 0x430379
xor esi, esi
mov byte [ebp + 0x5a], 0
xor ebx, ebx
movsx eax, bx
lea eax, [eax + eax*4]
shl eax, 1
mov cx, word [ebp + eax - 0x142]
cmp cx, word [ebp + 0x10]
jne 0x43012c
movsx ecx, word [ebp + eax - 0x144]
cmp ecx, dword [ebp + 0x30]
jne 0x43012c
cmp dword [ebp + 0x54], 0
mov si, word [ebp + eax - 0x13c]
mov byte [ebp + 0x5a], 1
je 0x430141
mov eax, dword [ebp + 0x28]
add eax, 0x3e8
cmp byte [ebp + 8], 0
mov dword [ebp + 0x20], eax
mov ax, si
mov word [ebp + 0x48], ax
mov word [ebp + 0x18], ax
je 0x430103
lea eax, [ebp + 0x18]
push eax
call dword [0x490180]
test eax, eax
jne 0x430103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x3c]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x34]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x43012c
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp bx, 0x1a
jl 0x43009e
cmp dword [ebp + 0x54], 0
jne 0x430379
cmp byte [ebp + 0x66], 0
je 0x43015e
test byte [ebp], 0x10
jne 0x430379
cmp dword [ebp], 0x84
je 0x430379
cmp byte [ebp + 0x38], 0
jne 0x430174
cmp byte [ebp + 0x6d], 0
jne 0x430174
cmp byte [ebp + 0x3b], 0
je 0x4302d5
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 8]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
cmp byte [ebp + 7], 0
je 0x4301a2
cmp byte [ebp + 0x6d], 0
je 0x4301b4
cmp edi, 4
jle 0x4301b4
inc dword [ebp - 8]
cmp byte [ebp + 0x6d], 1
je 0x430379
jmp 0x4301b4
cmp byte [ebp + 0x6d], 1
jne 0x4301b4
mov ecx, dword [ebp + 0x28]
add ecx, 0x3e8
mov dword [ebp + 0x20], ecx
cmp byte [ebp + 0x6d], 2
jne 0x4301c9
test si, si
je 0x4301c9
cmp dword [ebp - 8], 1
je 0x430379
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x14], ecx
mov word [ebp + 0x18], cx
mov word [ebp + 0x48], cx
inc ecx
cmp si, word [ebp + 0x14]
mov dword [ebp - 0x18], ecx
je 0x430379
mov ecx, dword [ebp - 0x10]
test ecx, eax
je 0x430253
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov word [ebp + 0x18], di
mov word [ebp + 0x48], di
call dword [0x490180]
test eax, eax
jne 0x43020b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x34]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x430228
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cx, word [ebp + 0x10]
lea eax, [edi - 0x41]
movsx eax, ax
lea eax, [eax + eax*4]
shl eax, 1
mov word [ebp + eax - 0x142], cx
mov cx, word [ebp + 0x30]
mov word [ebp + eax - 0x144], cx
mov word [ebp + eax - 0x13c], di
test si, si
je 0x4302d1
lea eax, [ebp + 0x18]
push eax
mov word [ebp + 0x18], si
mov word [ebp + 0x48], si
call dword [0x490180]
test eax, eax
jne 0x430274
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x34]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x430291
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
lea ecx, [esi - 0x41]
shl eax, cl
not eax
and dword [ebp - 0x10], eax
lea eax, [esi - 0x41]
movsx eax, ax
lea eax, [eax + eax*4]
shl eax, 1
and word [ebp + eax - 0x13c], 0
mov word [ebp + eax - 0x144], 0xfff1
mov word [ebp + eax - 0x142], 0xfff1
mov eax, dword [ebp + 0x14]
mov word [ebp + 0x18], ax
mov word [ebp + 0x48], ax
mov byte [ebp + 0x5a], 0
cmp byte [ebp + 0x5a], 0
je 0x4302f0
cmp word [ebp + 0x14], 0
je 0x430379
cmp byte [ebp + 0x5b], 0
jne 0x430379
movsx eax, word [ebp + 0x30]
push eax
movsx eax, word [ebp + 0x10]
push eax
push str.DeviceHarddisk_dPartition_d
push dword [ebp + 0x3c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp + 0x14], 0
jne 0x430330
xor eax, eax
mov al, byte [ebp + 0x59]
sub al, 0x41
push eax
lea eax, [ebp - 0x10]
push 0xc
push eax
call fcn.0042870f
add esp, 0xc
mov word [ebp + 0x18], ax
mov word [ebp + 0x48], ax
cmp word [ebp + 0x48], 0x41
jb 0x430423
cmp word [ebp + 0x48], 0x5a
ja 0x430423
cmp word [ebp + 0x18], 0
je 0x430379
push dword [ebp + 8]
lea eax, [ebp + 0x18]
push dword [ebp + 0x34]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x3c]
call fcn.0042e990
add esp, 0x14
test eax, eax
je 0x430370
and dword [ebp + 0x24], 0
jmp 0x430379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x24], eax
inc dword [ebp + 0x20]
dec dword [ebp + 0x40]
cmp dword [ebp + 0x40], 0
jg 0x42fde5
jmp 0x430395
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x20
jge 0x4303bc
lea ecx, [ebp + 0x60]
call fcn.004029f8
inc dword [ebp - 0xc]
dec dword [ebp + 0x40]
cmp dword [ebp + 0x40], 0
jg 0x42fc3e
jmp 0x4303c4
movsx eax, word [ebp + 0x10]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x68], eax
lea ecx, [ebp + 0x60]
call fcn.004029f8
inc dword [ebp + 0xc]
cmp byte [ebp + 0x6d], 1
jne 0x4303d7
mov byte [ebp + 0x6d], 2
mov byte [ebp + 0x6e], 0
jmp 0x4303fa
cmp byte [ebp + 0x38], 0
jne 0x4303e3
cmp byte [ebp + 0x6d], 0
je 0x430438
cmp byte [ebp + 0x67], 0
je 0x430438
movsx ax, byte [ebp + 0x67]
mov word [ebp - 0x18], ax
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x6e], 0xb
lea ecx, [ebp + 0x50]
call fcn.0042602e
mov esi, dword [ebp + 0x68]
xor ebx, ebx
jmp 0x42fb6b
lea ecx, [ebp + 0x60]
call fcn.004029f8
lea ecx, [ebp + 0x50]
call fcn.0042602e
xor esi, esi
jmp 0x43053d
lea ecx, [ebp + 0x60]
call fcn.004029f8
lea ecx, [ebp + 0x50]
call fcn.0042602e
jmp 0x42f9b4
xor eax, eax
cmp dword [ebp + 0x68], eax
jle 0x43059f
cmp dword [ebp + 0x2c], eax
jge 0x43059f
cmp dword [ebp + 0x54], eax
jne 0x43059f
cmp byte [ebp + 0x6f], al
jne 0x43059f
lea ecx, [ebp + 0x50]
call fcn.0042602e
mov esi, dword [ebp + 0x68]
xor ebx, ebx
cmp dword [ebp + 0x54], ebx
jne 0x430481
cmp dword [ebp + 0x44], ebx
jl 0x42fa9d
cmp esi, ebx
jle 0x42fa9d
cmp dword [ebp + 0x44], ebx
jl 0x4304a7
cmp esi, ebx
jle 0x4304a7
movsx eax, si
mov esi, dword [ebp + 0x3c]
push eax
movsx eax, word [ebp + 0x44]
push eax
push str.DeviceHarddisk_dPartition_d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4304aa
mov esi, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x5c]
mov word [eax + 2], 0x3a
mov eax, dword [ebp + 0x5c]
mov cx, word [eax]
cmp cx, 0x2c
jne 0x4304c6
mov word [eax], 0xff0c
jmp 0x4304eb
cmp cx, 0x3b
jne 0x4304d3
mov word [eax], 0xff1b
jmp 0x4304eb
cmp cx, 0x3a
jne 0x4304e0
mov word [eax], 0xff1a
jmp 0x4304eb
cmp cx, 0x3d
jne 0x4304ee
mov word [eax], 0xff1d
mov eax, dword [ebp + 0x5c]
mov word [eax + 4], 0x5c
mov eax, dword [ebp + 0x5c]
mov word [eax + 6], bx
mov eax, dword [ebp + 0x5c]
mov cx, word [eax]
mov word [ebp - 0x30], cx
mov word [ebp - 0x2e], 0x3a
mov word [ebp - 0x2c], bx
cmp word [esi], bx
je 0x430564
cmp dword [ebp + 0x54], ebx
jne 0x430564
push dword [ebp + 8]
push dword [ebp + 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.0042e990
add esp, 0x14
cmp eax, ebx
jne 0x43041c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0042602e
lea ecx, [ebp + 0x3c]
call fcn.0042602e
lea ecx, [ebp + 0x5c]
call fcn.0042602e
push 0x490234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4305cd
cmp byte [ebp + 8], 0
je 0x43057b
push eax
call dword [0x490180]
test eax, eax
jne 0x43057b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x34]
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x430535
xor eax, eax
jmp 0x43053b
lea ecx, [ebp + 0x50]
call fcn.0042602e
lea ecx, [ebp - 4]
call fcn.0042602e
lea ecx, [ebp + 0x3c]
call fcn.0042602e
lea ecx, [ebp + 0x5c]
call fcn.0042602e
push 0x490234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x24]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8