Function at 0x45f990
Capabilities:
Get disk information
Get disk information via ioctl
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ea572
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push ebx
push esi
push edi
push 0x51d604
mov dword [esp + 0x50], 0x51d604
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
cmp word [edx], 0x2a
mov dword [esp + 0x2cc], 0
sete al
test al, al
mov byte [esp + 0x23], al
je 0x45f9ea
add edx, 2
mov dword [ebp + 8], edx
mov eax, edx
mov ecx, 0x4f9e98
mov esi, 1
movzx edi, word [eax]
movsx ebx, byte [ecx]
or edi, 0x20
or ebx, 0x20
add eax, 2
inc ecx
cmp ebx, edi
jne 0x45fab8
dec esi
jns 0x45f9f6
mov byte [esp + 0x22], 1
mov eax, edx
mov ecx, 0x4f9e94
mov esi, 1
movzx edi, word [eax]
movsx ebx, byte [ecx]
or edi, 0x20
or ebx, 0x20
add eax, 2
inc ecx
cmp ebx, edi
jne 0x45fac2
dec esi
jns 0x45fa22
mov al, 1
mov byte [esp + 0x13], al
mov byte [esp + 0x1f], al
mov eax, edx
mov ecx, 0x4f9e90
mov esi, 2
movzx edi, word [eax]
movsx ebx, byte [ecx]
or edi, 0x20
or ebx, 0x20
add eax, 2
inc ecx
cmp ebx, edi
jne 0x45fac9
dec esi
jns 0x45fa53
mov byte [esp + 0x5f], 1
mov eax, edx
mov ecx, 0x4f9e8c
mov edx, 1
jmp 0x45fa80
movzx esi, word [eax]
movsx edi, byte [ecx]
or esi, 0x20
or edi, 0x20
add eax, 2
inc ecx
cmp edi, esi
jne 0x45fad0
dec edx
jns 0x45fa80
mov byte [esp + 0x2b], 1
mov al, byte [esp + 0x22]
test al, al
jne 0x45fad7
mov al, byte [esp + 0x13]
test al, al
jne 0x45fad7
mov al, byte [esp + 0x2b]
test al, al
jne 0x45fad7
xor bl, bl
jmp 0x45fad9
mov byte [esp + 0x22], 0
jmp 0x45fa16
xor al, al
jmp 0x45fa3f
mov byte [esp + 0x5f], 0
jmp 0x45fa6f
mov byte [esp + 0x2b], 0
jmp 0x45fa9c
mov bl, 1
lea eax, [ebp + 8]
push eax
call fcn.00417de5
lea ecx, [ebp + 8]
push ecx
call fcn.00443850
push 0xc
call fcn.00449130
xor esi, esi
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x34], eax
je 0x45fb02
mov word [eax], si
push 0x2a
call fcn.00449130
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], eax
je 0x45fb17
mov word [eax], si
push 2
call fcn.00449130
add esp, 4
cmp eax, esi
mov dword [esp + 0x44], eax
je 0x45fb2c
mov word [eax], si
mov dword [esp + 0x48], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
push 6
push esi
push 0x4f6d9c
mov byte [esp + 0x2d8], 3
mov byte [esp + 0x60], bl
mov dword [esp + 0xa0], 0x3e8
mov byte [esp + 0x2d], 0
mov dword [esp + 0x64], 0xffffffff
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x47], 0x43
mov byte [esp + 0x2c], 0
mov byte [esp + 0x6a], 0
call fcn.00444970
add esp, 0xc
test al, al
mov byte [esp + 0x13], al
je 0x45fba5
lea edx, [ebp + 8]
add esi, 0xc
push edx
mov dword [ebp + 8], esi
call fcn.00443850
mov esi, dword [ebp + 8]
add esp, 4
mov eax, esi
mov ecx, str._SKIP
mov edx, 5
movzx edi, word [eax]
movsx ebx, byte [ecx]
or edi, 0x20
or ebx, 0x20
add eax, 2
inc ecx
cmp ebx, edi
jne 0x45fc0d
dec edx
jns 0x45fbb1
lea eax, [ebp + 8]
add esi, 0xc
push eax
mov dword [ebp + 8], esi
call fcn.00443850
lea ecx, [esp + 0x90]
push ecx
lea edx, [ebp + 8]
push edx
mov dword [esp + 0x98], 0x42
call fcn.0044ce90
mov al, byte [esp + 0x98]
lea ecx, [ebp + 8]
push ecx
mov byte [esp + 0x6e], al
call fcn.00443850
mov esi, dword [ebp + 8]
add esp, 0x10
push 2
push esi
push 0x4f9e80
call fcn.00444970
add esp, 0xc
test al, al
je 0x45fc3b
lea edx, [ebp + 8]
add esi, 4
push edx
mov dword [ebp + 8], esi
call fcn.00443850
mov esi, dword [ebp + 8]
add esp, 4
mov byte [esp + 0x21], 1
mov ax, word [esi]
test ax, ax
mov ebx, dword [esp + 0x30]
je 0x45fca0
mov ecx, dword [esp + 0x48]
jmp 0x45fc50
cmp ax, 0x2a
jne 0x45fc5d
mov byte [esp + 0x54], 1
jmp 0x45fc83
cmp ax, 0x26
jne 0x45fc68
or ecx, 8
jmp 0x45fc83
cmp ax, 0x2d
jne 0x45fc8f
mov ax, word [esi + 2]
cmp ax, 0x30
jb 0x45fc7e
cmp ax, 0x39
jbe 0x45fc8f
mov ebx, 1
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x45fc50
mov dword [ebp + 8], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], ecx
lea ebx, [ebx]
mov ax, word [esi]
cmp ax, 9
jb 0x45fcaf
cmp ax, 0xd
jbe 0x45fcb5
cmp ax, 0x20
jne 0x45fcba
add esi, 2
jmp 0x45fca0
mov dword [ebp + 8], esi
mov si, word [esi]
test si, si
jne 0x45fcd0
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], eax
test si, si
mov dword [esp + 0xb4], 0
je 0x45fffc
push 0x2c
lea eax, [esp + 0x48]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.0044c770
mov esi, dword [ebp + 8]
add esp, 0xc
cmp word [esi], 0x2c
jne 0x45fde8
push 0x2c
lea edx, [esp + 0x38]
push edx
lea eax, [ebp + 8]
add esi, 2
push eax
mov dword [ebp + 8], esi
call fcn.0044c770
mov esi, dword [ebp + 8]
add esp, 0xc
cmp word [esi], 0x2c
jne 0x45fde8
push 0x2c
lea ecx, [esp + 0x7c]
xor eax, eax
push ecx
lea edx, [ebp + 8]
add esi, 2
push edx
mov dword [ebp + 8], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.0044ca90
mov esi, dword [ebp + 8]
add esp, 0xc
cmp word [esi], 0x2c
jne 0x45fde8
push 2
call fcn.00449130
add esp, 4
test eax, eax
je 0x45fd73
mov word [eax], 0
lea edx, [esi + 2]
test edx, edx
je 0x45fd9a
lea ebx, [ebx]
mov cx, word [edx]
cmp cx, 9
jb 0x45fd8f
cmp cx, 0xd
jbe 0x45fd95
cmp cx, 0x20
jne 0x45fd9a
add edx, 2
jmp 0x45fd80
movzx edx, word [edx]
mov esi, dword [esp + 0x14]
mov ecx, edx
and ecx, 0xffdf
test esi, esi
jg 0x45fdbe
cmp dx, 0x2a
jne 0x45fdbe
mov dword [esp + 0xb4], 0x2a
cmp cx, 0x41
jb 0x45fdd2
cmp cx, 0x5a
ja 0x45fdd2
mov byte [esp + 0x3b], cl
mov byte [esp + 0x20], cl
test eax, eax
je 0x45fde8
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x44]
xor edi, edi
mov di, word [esi]
mov eax, edi
and eax, 0xffdf
cmp di, 0x30
jb 0x45fe08
cmp di, 0x39
jbe 0x45fedb
cmp di, 0x2d
jne 0x45fe22
mov cx, word [esi + 2]
cmp cx, 0x30
jb 0x45fe22
cmp cx, 0x39
jbe 0x45fedb
cmp ax, 0x46
jne 0x45fe6e
mov byte [esp + 0x11], 0xc
add esi, 2
cmp word [esi], 0
jne 0x45fe50
mov ecx, dword [esp + 0x34]
cmp word [ecx], 0
je 0x45fe50
mov dword [esp + 0x30], 1
jmp 0x45fe50
mov ax, word [esi]
cmp ax, 9
jb 0x45fe5f
cmp ax, 0xd
jbe 0x45fe69
cmp ax, 0x20
jne 0x45ff5e
add esi, 2
jmp 0x45fe50
cmp ax, 0x55
je 0x45fed1
cmp ax, 0x52
je 0x45fed1
cmp di, 0x3a
je 0x45fe30
cmp di, 0x23
je 0x45fe30
test ebx, ebx
jne 0x45fe30
test di, di
je 0x45fe30
lea ecx, [esp + 0x44]
call fcn.00443880
lea ecx, [esp + 0x2c]
call fcn.00443880
lea ecx, [esp + 0x34]
call fcn.00443880
push 0x51d604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80070057
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [esp + 0x11], 0xb
jmp 0x45fe2d
lea ecx, [esp + 0x78]
or eax, 0xffffffff
push ecx
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.0044cd70
add esp, 8
test eax, eax
jle 0x45ff14
mov eax, dword [esp + 0x78]
mov dword [esp + 0x58], eax
test di, di
je 0x45ff40
lea esp, [esp]
cmp di, 0x3a
je 0x45ff40
cmp di, 0x23
je 0x45ff40
mov di, word [esi + 2]
add esi, 2
test di, di
jne 0x45ff20
jmp 0x45ff40
mov ax, word [esi]
cmp ax, 9
jb 0x45ff4f
cmp ax, 0xd
jbe 0x45ff59
cmp ax, 0x20
jne 0x45fe30
add esi, 2
jmp 0x45ff40
mov ax, word [esi]
cmp ax, 0x3a
je 0x45ff76
cmp ax, 0x23
jne 0x45fffc
mov byte [esp + 0x12], 1
mov al, byte [esp + 0x11]
test al, al
jne 0x45ff86
mov eax, dword [esp + 0x58]
test eax, eax
jge 0x45ff8b
mov byte [esp + 0x12], 0
add esi, 2
mov dword [ebp + 8], esi
je 0x45ffb0
mov ax, word [esi]
cmp ax, 9
jb 0x45ffa2
cmp ax, 0xd
jbe 0x45ffa8
cmp ax, 0x20
jne 0x45ffad
add esi, 2
jmp 0x45ff93
mov dword [ebp + 8], esi
cmp word [esi], 0x2d
jne 0x45ffd0
mov si, word [esi + 2]
cmp si, 0x30
jb 0x45ffc6
cmp si, 0x39
jbe 0x45ffd0
mov dword [esp + 0x30], 1
jmp 0x45fffc
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x7c], edx
push 0x2c
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
push edx
lea eax, [ebp + 8]
push eax
call fcn.0044ca90
add esp, 0xc
test eax, eax
jle 0x45fffc
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov al, byte [esp + 0x12]
mov edx, dword [esp + 0x14]
xor ebx, ebx
test al, al
mov dword [esp + 0x68], 0xfffffff8
mov dword [esp + 0xb0], edx
je 0x4600a4
mov eax, edx
cmp eax, ebx
jg 0x460091
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x46003e
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push ebx
push eax
call esi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x460054
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x46006a
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
push 0x51d604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 4
jg 0x460099
dec eax
jmp 0x4600a0
lea eax, [eax*4 - 0x10]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 5
lea eax, [esi + esi + 2]
push edi
call fcn.00449190
add esp, 4
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x4600cd
mov word [eax + esi*2], bx
mov cx, word [eax]
cmp cx, 0x61
jb 0x4600e1
cmp cx, 0x7a
ja 0x4600e1
add word [eax], 0xffe0
mov cl, byte [esp + 0x11]
test cl, cl
mov byte [esp + 0x53], 0
jne 0x46013d
cmp dword [esp + 0x30], ebx
jne 0x46013d
mov cx, word [eax]
cmp cx, 0x100
jae 0x46013d
cmp cx, 0x41
jb 0x46010a
cmp cx, 0x5a
jbe 0x46013d
mov edi, dword [esp + 0x58]
cmp edi, ebx
mov esi, dword [esp + 0x14]
mov word [eax], bx
jl 0x460122
cmp esi, 1
jl 0x460122
mov dword [esp + 0x68], esi
mov cl, byte [esp + 0x12]
test cl, cl
je 0x460145
cmp edi, ebx
jl 0x460145
cmp esi, ebx
jl 0x460145
mov dword [esp + 0x68], esi
mov byte [esp + 0x53], 1
jmp 0x460145
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
mov cx, word [eax]
mov edx, dword [esp + 0x2c]
push edx
mov eax, 0xca
mov dword [esp + 0x94], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x84], cx
call fcn.00449190
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x46017c
mov word [eax + 0xc8], bx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x9c], eax
mov al, byte [esp + 0x2b]
test al, al
mov al, byte [esp + 0x20]
jne 0x460197
mov al, 0x43
movsx ax, al
mov word [esp + 0x98], ax
cmp dword [esp + 0x30], ebx
mov dword [esp + 0xac], 1
jne 0x4601fb
cmp esi, ebx
jl 0x4601c0
mov al, byte [esp + 0x13]
test al, al
jne 0x4601fb
cmp edi, ebx
mov byte [esp + 0x43], 1
mov byte [esp + 0x13], 1
jge 0x4601d3
mov byte [esp + 0x13], 0
mov dl, byte [esp + 0x12]
test dl, dl
jne 0x460202
mov al, byte [esp + 0x21]
test al, al
je 0x460202
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
xor esi, esi
cmp ecx, esi
jl 0x46020c
cmp eax, esi
jle 0x46020c
mov dword [esp + 0x68], eax
jmp 0x46020c
mov byte [esp + 0x43], 0
jmp 0x4601ce
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
xor esi, esi
mov bl, byte [esp + 0x13]
test bl, bl
jne 0x46025b
mov bl, byte [esp + 0x23]
test bl, bl
jne 0x46025b
mov bl, byte [esp + 0x11]
test bl, bl
jne 0x46025b
cmp dword [esp + 0x68], esi
jge 0x46025b
test dl, dl
jne 0x46025b
mov edi, dword [esp + 0x34]
cmp word [edi], si
jne 0x460240
cmp eax, esi
je 0x46025b
cmp eax, 0xffffffff
je 0x46025b
cmp dword [esp + 0x30], esi
je 0x4611e2
cmp ecx, esi
jl 0x461296
cmp eax, 1
jl 0x461271
push 0x200001
call fcn.00449130
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [esp + 0x24], ebx
je 0x460275
mov byte [ebx], 0
xor ecx, ecx
mov dword [esp + 0xea], ecx
push esi
mov dword [esp + 0xf2], ecx
lea edx, [esp + 0xec]
xor eax, eax
push ebx
mov word [esp + 0xf0], si
mov ecx, 0x41
lea edi, [esp + 0xfa]
push edx
mov byte [esp + 0x2d8], 4
rep stosd dword es:[edi], eax
call fcn.0044eba0
mov eax, dword [esp + 0x8c]
mov word [esp + 0x6c], ax
mov word [esp + 0x78], ax
mov eax, dword [esp + 0x64]
mov ecx, 0x3a
add esp, 0xc
cmp eax, esi
mov word [esp + 0x62], cx
mov word [esp + 0x64], si
mov word [esp + 0x6e], cx
mov word [esp + 0x70], 0x5c
mov word [esp + 0x72], si
mov dword [esp + 0xc0], esi
mov dword [esp + 0x8c], esi
jl 0x46030b
mov dword [esp + 0xa4], 0x7530
jmp 0x460346
mov dword [esp + 0xa4], esi
mov eax, dword [esp + 0x94]
dec eax
cmp eax, esi
mov dword [esp + 0x94], eax
jle 0x460a47
cmp word [esp + 0xa4], 0x3e80
jge 0x460a47
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x84], eax
movsx eax, ax
push eax
lea eax, [esp + 0x1fc]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 0x18], esi
push esi
push 0x20000000
push 3
push esi
push 3
push SysReAllocStringLen
lea ecx, [esp + 0x210]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x2e8], 5
call fcn.00417e55
mov esi, dword [esp + 0x18]
test esi, esi
je 0x460f15
mov al, byte [esp + 0x43]
or edi, 0xffffffff
test al, al
mov dword [esp + 0x8c], 0
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
je 0x4603d7
lea edx, [esp + 0xcc]
push edx
push esi
call fcn.0044fb50
add esp, 8
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov al, byte [esp + 0x11]
test al, al
je 0x460419
push 0
push ebx
push esi
call fcn.0044f4b0
movsx ecx, byte [esp + 0x1d]
add esp, 0xc
cmp eax, ecx
je 0x460419
cmp esi, edi
mov byte [esp + 0x2cc], 4
je 0x460f36
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
xor eax, eax
push eax
lea edx, [esp + 0xd0]
push edx
push 0x100000
push ebx
push eax
push eax
push 0x70050
mov ecx, 0x30
mov edi, ebx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0xec], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x460545
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
mov eax, dword [ebx + 4]
mov edi, dword [esi + 0x28]
cmp edx, 1
sete byte [esp + 0x42]
xor ecx, ecx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x74], eax
xor eax, eax
push eax
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], ecx
lea edx, [esp + 0xac]
push edx
mov edx, dword [esp + 0x20]
push 0x18
mov dword [esp + 0xf0], ecx
lea ecx, [esp + 0xdc]
push ecx
push eax
push eax
push 0x70000
push edx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0x104], 0x200
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [esi + 0x100000]
mov esi, dword [esp + 0xe4]
lea ecx, [esi + eax]
lea ebx, [esi + ecx]
mov cl, byte [esp + 0x12]
test cl, cl
je 0x46066a
mov cl, byte [esp + 0x42]
test cl, cl
je 0x460644
push 0
push 0
push 0
push esi
push edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0044f2b0
mov eax, dword [esp + 0xcc]
add esp, 0x1c
cmp eax, edi
jle 0x46056b
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
mov byte [esp + 0x2cc], 4
je 0x460f36
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
cmp esi, 0xffffffff
mov byte [esp + 0x2cc], 4
je 0x460f36
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x24]
push esi
add eax, 0x30
push edx
push eax
mov eax, dword [esp + 0xbc]
shl eax, 7
lea ecx, [eax + ebx - 0x80]
push ecx
call fcn.0044f180
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
jge 0x46059f
cmp dword [esp + 0x18], 0xffffffff
jmp 0x46061d
mov cl, byte [esp + 0x53]
test cl, cl
je 0x4605ab
mov dword [esp + 0x68], eax
mov esi, dword [esp + 0x18]
push esi
push 0
call fcn.0044b680
add esp, 8
cmp eax, 7
je 0x4606a5
mov al, byte [esp + 0x42]
test al, al
jne 0x4606a5
cmp dword [esp + 0x74], 4
jne 0x4606a5
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x5e]
mov dl, byte [eax + 0x50]
add eax, 0x30
cmp cl, dl
jne 0x4606a5
mov cl, byte [eax + 0xb0]
test cl, cl
jne 0x4606a5
mov cl, byte [eax + 0x140]
test cl, cl
jne 0x4606a5
mov cl, byte [eax + 0x1d0]
test cl, cl
jne 0x4606a5
cmp esi, 0xffffffff
mov byte [esp + 0x2cc], 4
je 0x460f36
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x460671
cmp eax, 4
jg 0x46065d
lea ecx, [eax - 1]
mov dword [esp + 0x14], ecx
jmp 0x460671
lea edx, [eax*4 - 0x10]
mov dword [esp + 0x14], edx
jmp 0x460671
mov eax, dword [esp + 0xb0]
cmp eax, dword [esp + 0x74]
jle 0x4605ab
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
mov byte [esp + 0x2cc], 4
je 0x460f36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
mov eax, dword [esp + 0x94]
xor esi, esi
dec eax
test eax, eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0x88], esi
mov dword [esp + 0x94], eax
jle 0x460eef
cmp esi, dword [esp + 0x74]
jge 0x460eef
mov edi, dword [esp + 0x4c]
test edi, edi
mov dword [esp + 0xa8], esi
je 0x4606f7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dl, byte [esp + 0x12]
test dl, dl
je 0x460729
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x460729
mov ecx, dword [esp + 0x74]
cmp eax, ecx
lea esi, [ecx + 0x186a0]
mov dword [esp + 0x88], esi
mov esi, eax
mov dword [esp + 0xa8], esi
jge 0x460eef
mov al, byte [esp + 0x42]
test al, al
je 0x460738
mov ebx, 0xff07
jmp 0x46074a
mov eax, dword [esp + 0x24]
lea ecx, [esi + esi*8]
shl ecx, 4
movzx ebx, byte [ecx + eax + 0x50]
add eax, 0x30
mov eax, dword [esp + 0x24]
lea ecx, [esi + esi*8]
mov esi, dword [esp + 0x14]
shl ecx, 4
add eax, 0x30
movsx edi, word [eax + ecx + 0x18]
add eax, ecx
mov cl, byte [esp + 0x23]
test cl, cl
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], edi
je 0x46077c
test esi, esi
jge 0x460784
test dl, dl
jne 0x4607b6
test esi, esi
jle 0x4607b6
cmp edi, esi
jne 0x460ec9
test cl, cl
je 0x4607a5
test bl, 0x10
jne 0x460fa3
cmp ebx, 0x84
je 0x460fa3
mov ecx, dword [esp + 0x74]
add ecx, 0x186a0
mov dword [esp + 0x88], ecx
mov cl, byte [esp + 0x43]
test cl, cl
je 0x4607d4
mov ecx, dword [esp + 0x78]
cmp ecx, dword [eax + 8]
jne 0x4607d4
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [eax + 0xc]
je 0x460ec9
test ebx, ebx
je 0x460ec9
test edi, edi
jle 0x460ec9
cmp ebx, 5
je 0x460ec9
cmp ebx, 0xf
je 0x460ec9
mov ecx, dword [esp + 0x14]
test ecx, ecx
jg 0x460842
mov ecx, dword [eax + 0x14]
test ecx, ecx
jg 0x460842
jl 0x460810
cmp dword [eax + 0x10], 0x200
ja 0x460842
test bl, 0x10
je 0x460ec9
movsx eax, word [esp + 0x84]
push 0
push 0
push 1
push 1
push 0
push edi
push eax
lea edx, [esp + 0x104]
push edx
call fcn.00446e30
add esp, 0x20
jmp 0x460ec9
mov ecx, dword [esp + 0xc0]
inc ecx
test dl, dl
mov dword [esp + 0xc0], ecx
jne 0x460866
mov eax, dword [esp + 0x68]
cmp eax, 1
jl 0x460866
cmp eax, edi
jne 0x460ec9
mov eax, dword [esp + 0x68]
test eax, eax
jl 0x46087e
mov eax, dword [esp + 0x74]
add eax, 0x3e8
mov dword [esp + 0x88], eax
test dl, dl
je 0x4609f6
mov edx, dword [esp + 0x2c]
movzx eax, byte [esp + 0x54]
movsx esi, word [esp + 0x84]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
or edx, dword [esp + 0x58]
push edx
push edi
lea eax, [esp + 0x100]
push esi
push eax
call fcn.00446e30
add esp, 0x20
cmp word [esp + 0xb4], 0
jne 0x460ec9
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x461039
mov cl, byte [esp + 0x23]
test cl, cl
je 0x4608f9
test bl, 0x10
jne 0x460ec9
cmp ebx, 0x84
je 0x460ec9
test eax, eax
je 0x460918
cmp word [esp + 0x80], 0
je 0x461039
mov al, byte [esp + 0x21]
test al, al
jne 0x461039
movsx ecx, di
mov edi, dword [esp + 0x2c]
push ecx
push esi
push str.DeviceHarddisk_dPartition_d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov cx, word [esp + 0x70]
add esp, 0x10
test cx, cx
jne 0x460965
xor edx, edx
mov dl, byte [esp + 0x3b]
sub dl, 0x41
lea eax, [esp + 0x9c]
push edx
push 0xc
push eax
call fcn.00446d10
mov cx, ax
add esp, 0xc
mov word [esp + 0x6c], ax
mov word [esp + 0x60], cx
jmp 0x46096a
mov ax, word [esp + 0x6c]
cmp cx, 0x41
jb 0x46105e
cmp cx, 0x5a
ja 0x46105e
test ax, ax
je 0x4609b8
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edi
call fcn.0044e6f0
add esp, 0x14
test eax, eax
je 0x4609ae
mov dword [esp + 0x3c], 0
jmp 0x4609b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x460ec9
lea ecx, [esp + 0x18]
call fcn.00417e50
lea ecx, [esp + 0x24]
call fcn.00443880
lea ecx, [esp + 0x44]
call fcn.00443880
lea ecx, [esp + 0x2c]
call fcn.00443880
lea ecx, [esp + 0x34]
call fcn.00443880
jmp 0x4614a0
cmp word [esp + 0xb4], 0
jne 0x460ec9
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x460a71
mov eax, dword [esp + 0x68]
test eax, eax
mov eax, dword [esp + 0x14]
jge 0x460a75
test eax, eax
jle 0x460a77
cmp dword [esp + 0xc0], eax
jl 0x460a75
movsx ecx, word [esp + 0x84]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov byte [esp + 0x2cc], 4
call fcn.00417e50
mov edx, dword [esp + 0xac]
mov al, byte [esp + 0x1f]
inc edx
cmp al, 1
mov dword [esp + 0xac], edx
jne 0x460f44
mov byte [esp + 0x1f], 2
mov byte [esp + 0x11], 0
jmp 0x460f76
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x460aa6
test ecx, ecx
je 0x460a81
cmp eax, edi
je 0x460aa6
mov ecx, dword [esp + 0x68]
test ecx, ecx
jge 0x460aa6
test eax, eax
jne 0x460ec9
test bl, 0x10
jne 0x460ec9
cmp ebx, 0x84
je 0x460ec9
xor bl, bl
xor esi, esi
xor edi, edi
lea esp, [esp]
mov dx, word [esp + 0x84]
movsx eax, di
lea eax, [eax + eax*4]
shl eax, 1
cmp word [esp + eax + 0xea], dx
jne 0x460b7e
movsx ecx, word [esp + eax + 0xe8]
cmp ecx, dword [esp + 0xbc]
jne 0x460b7e
mov si, word [esp + eax + 0xf0]
mov eax, dword [esp + 0x30]
test eax, eax
mov bl, 1
je 0x460b95
mov edx, dword [esp + 0x74]
mov ax, si
mov word [esp + 0x60], ax
mov word [esp + 0x6c], ax
mov al, byte [esp + 0x54]
add edx, 0x3e8
test al, al
mov dword [esp + 0x88], edx
je 0x460b34
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x460b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov ax, word [ecx]
mov edx, dword [esp + 0x90]
neg ax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x64]
or edx, eax
push ecx
or edx, 2
push edx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x460b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [esp + 0x54]
test al, al
je 0x460b7e
mov eax, dword [esp + 0x6c]
push eax
call fcn.00446ca0
add esp, 4
inc edi
cmp di, 0x1a
jl 0x460ab0
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x460ec9
mov al, byte [esp + 0x23]
test al, al
je 0x460bbc
test byte [esp + 0xb8], 0x10
jne 0x460ec9
cmp dword [esp + 0xb8], 0x84
je 0x460ec9
mov al, byte [esp + 0x22]
test al, al
mov dl, byte [esp + 0x1f]
jne 0x460bd8
test dl, dl
jne 0x460bd8
mov al, byte [esp + 0x2b]
test al, al
je 0x460df3
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0x98]
inc eax
mov dword [esp + 0xa0], eax
lea ecx, [edi - 0x41]
mov eax, 1
shl eax, cl
mov cl, byte [esp + 0x5f]
test cl, cl
je 0x460dd4
test dl, dl
je 0x460c35
cmp dword [esp + 0xa8], 4
jle 0x460c35
mov edi, dword [esp + 0xa0]
inc edi
cmp dl, 1
mov dword [esp + 0xa0], edi
je 0x460ec9
mov edi, dword [esp + 0x98]
mov dl, byte [esp + 0x1f]
cmp dl, 2
jne 0x460c54
test si, si
je 0x460c54
cmp dword [esp + 0xa0], 1
je 0x460ec9
mov edi, dword [esp + 0x98]
mov ecx, edi
mov word [esp + 0x6c], di
mov word [esp + 0x60], di
inc edi
cmp si, cx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x98], edi
je 0x460ec9
mov edx, dword [esp + 0x9c]
test edx, eax
je 0x460d16
mov edi, ecx
lea eax, [esp + 0x6c]
push eax
mov word [esp + 0x70], di
mov word [esp + 0x64], di
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x460ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x90]
push 0
lea ecx, [esp + 0x64]
push ecx
or edx, dword [esp + 0x50]
or edx, 2
push edx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x460cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [esp + 0x54]
test al, al
je 0x460ce3
mov eax, dword [esp + 0x6c]
push eax
call fcn.00446ca0
add esp, 4
mov cx, word [esp + 0x84]
mov dx, word [esp + 0xbc]
lea eax, [edi - 0x41]
movsx eax, ax
lea eax, [eax + eax*4]
shl eax, 1
mov word [esp + eax + 0xea], cx
mov word [esp + eax + 0xe8], dx
mov word [esp + eax + 0xf0], di
test si, si
je 0x460e12
lea eax, [esp + 0x6c]
push eax
mov word [esp + 0x70], si
mov word [esp + 0x64], si
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x460d3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x90]
push 0
lea ecx, [esp + 0x64]
or edx, eax
push ecx
or edx, 2
push edx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x460d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [esp + 0x54]
test al, al
je 0x460d7b
mov eax, dword [esp + 0x6c]
push eax
call fcn.00446ca0
add esp, 4
mov edx, dword [esp + 0x9c]
lea ecx, [esi - 0x41]
mov eax, 1
shl eax, cl
mov ecx, 0xfffffff1
not eax
and edx, eax
lea eax, [esi - 0x41]
movsx eax, ax
lea eax, [eax + eax*4]
shl eax, 1
mov word [esp + eax + 0xe8], cx
mov word [esp + eax + 0xea], cx
mov word [esp + eax + 0xf0], 0
mov eax, dword [esp + 0x80]
mov dword [esp + 0x9c], edx
mov word [esp + 0x6c], ax
mov word [esp + 0x60], ax
jmp 0x460e12
cmp dl, 1
jne 0x460c35
mov ecx, dword [esp + 0x74]
add ecx, 0x3e8
mov dword [esp + 0x88], ecx
jmp 0x460c54
test bl, bl
je 0x460e12
cmp word [esp + 0x80], 0
je 0x460ec9
mov al, byte [esp + 0x21]
test al, al
jne 0x460ec9
movsx ecx, word [esp + 0xbc]
movsx eax, word [esp + 0x84]
mov edi, dword [esp + 0x2c]
push ecx
push eax
push str.DeviceHarddisk_dPartition_d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [esp + 0x80], 0
jne 0x460e6d
xor edx, edx
mov dl, byte [esp + 0x3b]
sub dl, 0x41
lea eax, [esp + 0x9c]
push edx
push 0xc
push eax
call fcn.00446d10
mov cx, ax
add esp, 0xc
mov word [esp + 0x6c], ax
mov word [esp + 0x60], cx
jmp 0x460e77
mov cx, word [esp + 0x60]
mov ax, word [esp + 0x6c]
cmp cx, 0x41
jb 0x4610f6
cmp cx, 0x5a
ja 0x4610f6
test ax, ax
je 0x460ec9
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.0044e6f0
add esp, 0x14
test eax, eax
je 0x460ebf
mov dword [esp + 0x3c], 0
jmp 0x460ec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x94]
inc esi
dec eax
test eax, eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x94], eax
jg 0x4606d0
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
mov byte [esp + 0x2cc], 4
je 0x460f36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
mov eax, dword [esp + 0x8c]
inc eax
cmp ax, 0x20
mov dword [esp + 0x8c], eax
mov byte [esp + 0x2cc], 4
jge 0x460a47
inc dword [esp + 0xa4]
xor esi, esi
jmp 0x460312
mov cl, byte [esp + 0x22]
test cl, cl
jne 0x460f54
test al, al
je 0x46118a
mov al, byte [esp + 0x20]
test al, al
je 0x46118a
movsx cx, al
mov word [esp + 0x98], cx
mov byte [esp + 0x20], 0
mov byte [esp + 0x11], 0xb
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x2cc], 3
je 0x4601d3
mov edx, eax
mov eax, dword [0x51d3c8]
add edx, 0xfffffff8
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4601d3
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x460fb5
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
mov eax, dword [0x51d3c8]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add edx, 0xfffffff8
push edx
push 0
push eax
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x460fe4
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x460ffb
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x461011
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x461020
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x46104b
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add edx, 0xfffffff8
push edx
jmp 0x461452
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x46106e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
mov edx, dword [0x51d3c8]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46109d
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
test edi, edi
je 0x4610b0
mov ecx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push ecx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4610c7
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x46116e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80070057
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x461106
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x51d3c8]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x461136
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
test edi, edi
je 0x461148
mov eax, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46115f
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x46116e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80070057
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x461440
mov eax, dword [esp + 0x68]
test eax, eax
jge 0x461440
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x461440
mov al, byte [esp + 0x12]
test al, al
jne 0x461440
mov al, byte [esp + 0x13]
test al, al
jne 0x461440
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4611e2
mov edx, eax
mov eax, dword [0x51d3c8]
add edx, 0xfffffff8
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x58]
test eax, eax
jl 0x4611f2
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x461267
mov eax, dword [esp + 0x44]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x46120f
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x461226
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46123c
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x46124b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
xor esi, esi
cmp ecx, esi
jl 0x461296
cmp eax, esi
jle 0x461296
mov ebx, dword [esp + 0x2c]
movsx edx, ax
push edx
movsx eax, cx
push eax
push str.DeviceHarddisk_dPartition_d
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x46129a
mov ebx, dword [esp + 0x2c]
mov ecx, 0x3a
mov word [edi + 2], cx
mov ax, word [edi]
cmp ax, 0x2c
jne 0x4612b3
mov word [edi], 0xff0c
jmp 0x4612d7
cmp ax, 0x3b
jne 0x4612c0
mov word [edi], 0xff1b
jmp 0x4612d7
cmp ax, cx
jne 0x4612cc
mov word [edi], 0xff1a
jmp 0x4612d7
cmp ax, 0x3d
jne 0x4612d7
mov word [edi], 0xff1d
mov word [edi + 4], 0x5c
mov word [edi + 6], si
mov dx, word [edi]
mov word [esp + 0xc4], dx
mov word [esp + 0xc6], cx
mov word [esp + 0xc8], si
cmp word [ebx], si
je 0x46138f
cmp dword [esp + 0x30], esi
jne 0x46138f
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x94]
or eax, edx
push eax
push edi
lea ecx, [esp + 0xd0]
push ecx
push ebx
call fcn.0044e6f0
add esp, 0x14
cmp eax, esi
je 0x46133e
mov dword [esp + 0x3c], esi
jmp 0x461348
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x461364
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push esi
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push esi
push ecx
call ebx
mov edx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push esi
push edx
call ebx
mov eax, dword [esp + 0x4c]
cmp eax, esi
jmp 0x4614a6
mov al, byte [esp + 0x54]
test al, al
je 0x4613a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x4613a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ax, word [ebx]
mov ecx, dword [esp + 0x48]
neg ax
sbb eax, eax
and eax, ebx
push eax
lea eax, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x98]
or eax, ecx
or eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x4613dc
mov dword [esp + 0x3c], esi
jmp 0x4613e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0x54]
test al, al
je 0x4613fc
xor ecx, ecx
mov cx, word [edi]
push ecx
call fcn.00446ca0
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x461418
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push esi
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push esi
push ecx
call ebx
mov edx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push esi
push edx
call ebx
mov eax, dword [esp + 0x4c]
cmp eax, esi
jmp 0x4614a6
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x46145c
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x461473
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46148a
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4614a0
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4614af
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8