Function at 0x51bba0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x59a445
push eax
mov eax, 0x1a30
mov dword fs:[0], esp
call fcn.00413cb0
mov eax, dword [esp + 0x1a40]
push ebx
push ebp
push esi
mov ebx, dword [eax + 8]
mov eax, dword [ecx + 0x98]
test eax, eax
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ebx
je 0x51cfa5
mov eax, dword [esp + 0x1a54]
test eax, eax
je 0x51cfa5
test ebx, ebx
je 0x51cfa5
mov edx, dword [0x5a57f4]
mov ecx, dword [0x5a57f0]
mov eax, dword [0x5a57f8]
mov dword [esp + 0xcc], edx
push 0x12
mov dword [esp + 0xcc], ecx
mov ecx, dword [0x5a57fc]
push 0
lea edx, [esp + 0xd0]
push 0
push edx
mov dword [esp + 0x20], 0
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
call dword [0x5f45ec]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
je 0x51cfa5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x53d]
mov byte [esp + 0x53c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], 0x1c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
xor esi, esi
push eax
push esi
push ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x20], esi
call dword [0x5f45f0]
test eax, eax
je 0x51bf43
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x53c]
lea edx, [esp + 0x53c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x30]
push ecx
push edx
lea edi, [esp + 0x544]
push 0xf
push eax
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x44], edi
call fcn.00519310
add esp, 0x10
test eax, eax
jne 0x51bd96
mov eax, dword [esp + 0x30]
cmp eax, 0x104
jbe 0x51bf3b
test esi, esi
je 0x51bd3e
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jb 0x51bd31
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x51bd73
push esi
call fcn.00579886
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call fcn.0057985d
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x51bf3b
mov ecx, dword [esp + 0x30]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x30]
push ecx
push esi
mov edi, esi
push 0xf
push edx
mov dword [esp + 0x44], edi
call fcn.00519310
add esp, 0x10
test eax, eax
je 0x51bf3b
cmp byte [edi], 0
je 0x51bf1b
test ebx, ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], 0
jbe 0x51bf1b
xor esi, esi
mov eax, dword [esp + 0x1a50]
mov ecx, dword [eax + 4]
cmp dword [esi + ecx + 4], 1
jne 0x51beae
mov ebp, 1
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov edx, dword [esp + 0x1a50]
mov eax, ebp
shl ebp, 1
mov ecx, dword [edx + 4]
test dword [esi + ecx + 8], eax
je 0x51be93
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dl, bl
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
add dl, 0x41
test eax, eax
je 0x51be93
lea ecx, [esp + 0x138]
test ecx, ecx
je 0x51be93
cmp dl, 0x41
jl 0x51be93
cmp dl, 0x5a
jg 0x51be93
cmp dl, 0x61
jl 0x51be38
cmp dl, 0x7a
jle 0x51be93
mov ax, word [0x5d6bf8]
mov cl, byte [0x5d6bfa]
mov word [esp + 0x24], ax
mov byte [esp + 0x24], dl
lea edx, [esp + 0x138]
push 0x104
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
test eax, eax
je 0x51be93
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x138]
push edx
push eax
call fcn.0041521e
add esp, 8
test eax, eax
je 0x51be9f
inc ebx
cmp ebx, 0x1a
jl 0x51bdd9
jmp 0x51bea7
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x20], 0xffffffff
jne 0x51bed0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
inc eax
add esi, 0x2b4
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x51bdb9
cmp dword [esp + 0x20], 0xffffffff
je 0x51bf0f
mov ecx, dword [esp + 0x28]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov edx, dword [esp + 0x1a50]
lea ecx, [ecx + eax*4]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x7c]
lea ecx, [eax + ecx*4]
push ecx
push 0x51a810
push edx
call fcn.0051a690
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x68]
inc eax
push ecx
push eax
push ebp
mov dword [esp + 0x20], eax
call dword [0x5f45f0]
test eax, eax
jne 0x51bcbb
jmp 0x51bf43
mov dword [esp + 0x18], 0
push ebp
call dword [0x5f45f4]
xor ebp, ebp
cmp esi, ebp
je 0x51bf59
push esi
call fcn.00579886
add esp, 4
cmp dword [esp + 0x10], ebx
je 0x51cfc2
cmp dword [esp + 0x18], ebp
je 0x51cfc2
mov edx, dword [0x5a5800]
mov eax, dword [0x5a5804]
mov ecx, dword [0x5a5808]
mov dword [esp + 0xb8], edx
mov edx, dword [0x5a580c]
mov dword [esp + 0xbc], eax
mov eax, dword [0x5a5810]
mov dword [esp + 0xc0], ecx
mov ecx, dword [0x5a5814]
mov dword [esp + 0xc4], edx
mov edx, dword [0x5a5818]
mov dword [esp + 0xd8], eax
mov eax, dword [0x5a581c]
mov dword [esp + 0xdc], ecx
lea ecx, [esp + 0xfc]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
call fcn.00577ee6
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1a48], ebp
call fcn.00577ee6
lea ecx, [esp + 0x124]
mov byte [esp + 0x1a48], 1
call fcn.0057845b
lea ecx, [esp + 0xe8]
mov byte [esp + 0x1a48], 2
call fcn.0057845b
lea ecx, [esp + 0x110]
mov byte [esp + 0x1a48], 3
call fcn.0057845b
lea ecx, [esp + 0x110]
lea edx, [esp + 0xe8]
push ecx
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0x108]
push ecx
push edx
mov esi, 4
mov byte [esp + 0x1a5c], 4
mov dword [esp + 0x2c], ebp
call fcn.0051fdb0
add esp, 0x14
test eax, eax
je 0x51c0a3
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x14]
cmp eax, 2
jne 0x51c0a3
cmp dword [ecx + 8], esi
jne 0x51c08e
mov edx, dword [esp + 0x104]
mov dword [esp + 0x18], edx
cmp eax, 2
jne 0x51c0a3
cmp dword [ecx + 8], esi
je 0x51c0a3
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x18], eax
cmp ebx, ebp
jbe 0x51ced0
mov edi, dword [esp + 0x1a50]
mov ebx, dword [esp + 0x3c]
jmp 0x51c0c3
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x1a50]
mov eax, ebp
mov ecx, dword [esp + 0x18]
shl eax, 4
add eax, ebp
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1a54]
lea eax, [eax + edx*8]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
cmp eax, 2
je 0x51c0f9
cmp eax, 3
je 0x51c102
cmp eax, 4
je 0x51c0f9
cmp eax, 5
jne 0x51cec3
cmp eax, 3
jne 0x51c1a7
test ecx, ecx
je 0x51c1a7
xor esi, esi
test ecx, ecx
jle 0x51c1a7
mov eax, dword [ebx + 0x14]
cmp eax, 2
jne 0x51c159
cmp dword [ebx + 8], 4
jne 0x51c159
lea eax, [ebp*8]
mov ecx, dword [esp + 0x100]
sub eax, ebp
mov ecx, dword [ecx + esi*4]
lea edx, [eax + eax*2]
push ecx
lea eax, [ebp + edx*2]
lea edx, [ebp + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4 + 0xc]
push eax
call fcn.00417769
add esp, 8
test eax, eax
jne 0x51c160
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jl 0x51c114
jmp 0x51c1a7
mov ecx, dword [esp + 0x90]
lea eax, [ebp*8]
sub eax, ebp
mov esi, dword [ecx + esi*4]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
mov edx, dword [edi + 4]
mov edi, esi
lea ecx, [ebp + eax*4]
xor eax, eax
lea edx, [edx + ecx*4 + 0x1c4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 4
je 0x51c247
mov edi, ecx
lea esi, [edi + 8]
push esi
call fcn.004159a1
lea ebx, [edi + 0x80]
push ebx
call fcn.004159a1
lea eax, [edi + 0xf8]
push eax
call fcn.004159a1
add esp, 0xc
test esi, esi
je 0x51c1fb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51c1fb
cmp byte [eax + esi], 0x20
jne 0x51c1f6
mov byte [eax + esi], 0x5f
inc eax
cmp eax, ecx
jb 0x51c1ec
test ebx, ebx
je 0x51c21c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51c21c
cmp byte [eax + ebx], 0x20
jne 0x51c217
mov byte [eax + ebx], 0x5f
inc eax
cmp eax, ecx
jb 0x51c20d
mov edx, dword [esp + 0x1c]
add edx, 0xf8
test edx, edx
je 0x51c247
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51c247
cmp byte [eax + edx], 0x20
jne 0x51c242
mov byte [eax + edx], 0x5f
inc eax
cmp eax, ecx
jb 0x51c238
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x51c259
jmp dword [eax*4 + 0x51cfc8]
push 0x12
push 0
lea ecx, [esp + 0xc0]
push 0
push ecx
jmp 0x51c288
push 0x12
push 0
lea edx, [esp + 0xe0]
push 0
push edx
jmp 0x51c288
push 6
push 0
push 0
push 0
call dword [0x5f45ec]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x2c], ebx
je 0x51cec3
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x68]
mov dword [esp + 0x40], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x68], 0x1c
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x68]
push eax
push ecx
push ebx
call dword [0x5f45f0]
test eax, eax
je 0x51ce53
mov edx, dword [esp + 0x1c]
cmp dword [edx], 4
jne 0x51c671
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x841]
mov byte [esp + 0x840], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x43d]
mov byte [esp + 0x43c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x43c]
push eax
push 0x100
push ecx
push 0
lea edx, [esp + 0x78]
push 8
push edx
push ebx
mov dword [esp + 0x2c], 0x100
call dword [0x5f45f8]
test eax, eax
je 0x51cdca
lea edi, [esp + 0x43c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51cdca
lea edi, [esp + 0x43c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x840]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x5d8b34]
and ecx, 3
mov dword [esp + 0x24], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x1a48], 6
call fcn.0043bde0
lea ecx, [esp + 0x840]
lea edx, [esp + 0x28]
push ecx
push str.SYSTEMCurrentControlSetControlClass_s
push edx
mov byte [esp + 0x1a54], 7
call fcn.0057703b
mov eax, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x50]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043bf00
test eax, eax
je 0x51c429
lea ecx, [esp + 0x84]
push str.Class
push ecx
lea ecx, [esp + 0x58]
call fcn.0043c530
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a4c], 8
call fcn.00579d57
lea ecx, [esp + 0x84]
mov byte [esp + 0x1a48], 7
call fcn.00579c1e
lea ecx, [esp + 0x50]
call fcn.0043bf50
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51c514
push str.FloppyDisk
push eax
call fcn.0041521e
add esp, 8
test eax, eax
jne 0x51c514
mov ecx, 0x3f
lea edi, [esp + 0x941]
mov byte [esp + 0x940], al
mov byte [esp + 0x740], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x741]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x744]
push 0x100
push eax
push 0
lea ecx, [esp + 0x78]
push 0xe
push ecx
push ebx
mov dword [esp + 0x2c], 0x100
call dword [0x5f45f8]
test eax, eax
je 0x51c555
lea edi, [esp + 0x740]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x940]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp*8]
and ecx, 3
sub eax, ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + eax*2]
lea edx, [ebp + ecx*2]
mov ecx, dword [esp + 0x1a50]
lea eax, [ebp + edx*4]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + eax*4 + 8]
movsx edx, byte [esp + ecx + 0x93e]
dec eax
sub edx, 0x30
cmp edx, eax
je 0x51c555
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
inc eax
mov byte [esp + 0x1a48], 6
mov dword [esp + 0x14], eax
call fcn.0043be80
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a48], 5
call fcn.00579c1e
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a48], 4
call fcn.00579c1e
jmp 0x51cdce
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x33d]
mov byte [esp + 0x33c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x641]
mov byte [esp + 0x640], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x640]
push eax
push 0x100
push ecx
push 0
lea edx, [esp + 0x78]
push 0
push edx
push ebx
mov dword [esp + 0x2c], 0x100
call dword [0x5f45f8]
test eax, eax
je 0x51c63e
lea edi, [esp + 0x640]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x33c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x33c]
push ecx
call fcn.004159a1
lea eax, [ebp*8]
lea edi, [esp + 0x340]
sub eax, ebp
add esp, 4
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
mov edx, dword [esp + 0x1a50]
lea ecx, [ebp + eax*4]
mov eax, dword [edx + 4]
lea edx, [eax + ecx*4 + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
mov byte [esp + 0x1a48], 6
call fcn.0043be80
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a48], 5
call fcn.00579c1e
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a48], 4
call fcn.00579c1e
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x23d]
mov byte [esp + 0x23c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x138]
push ecx
push 0x100
stosb byte es:[edi], al
push edx
push 0
lea eax, [esp + 0x78]
push 1
push eax
push ebx
mov dword [esp + 0x64], 0x100
call dword [0x5f45f8]
test eax, eax
je 0x51c710
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x23c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x23c]
push ecx
call fcn.004159a1
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
cmp eax, 4
je 0x51cddc
cmp eax, 3
jne 0x51cd89
mov eax, dword [0x5d8b34]
mov dword [esp + 0x20], eax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1641]
mov byte [esp + 0x1640], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1241]
mov byte [esp + 0x1240], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x88]
lea edx, [esp + 0x1240]
stosb byte es:[edi], al
mov eax, dword [esp + 0x7c]
push ecx
push edx
push 0xa
push eax
mov byte [esp + 0x1a58], 9
mov dword [esp + 0x98], 0x400
call fcn.00519310
add esp, 0x10
test eax, eax
je 0x51c9ee
lea edi, [esp + 0x1240]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1640]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
call fcn.0043bde0
mov ecx, dword [0x5d8b34]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x23c]
lea eax, [esp + 0x38]
push edx
push str.SYSTEMCurrentControlSetEnum_s
push eax
mov byte [esp + 0x1a54], 0xb
call fcn.0057703b
mov ecx, dword [esp + 0x44]
add esp, 0xc
push 0x20019
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x64]
call fcn.0043bf00
test eax, eax
je 0x51c9cc
lea ecx, [esp + 0xa4]
call fcn.00577ee6
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x58]
push edx
mov byte [esp + 0x1a4c], 0xc
call fcn.0043dca0
test eax, eax
je 0x51c9af
mov eax, dword [esp + 0xac]
xor esi, esi
test eax, eax
jle 0x51c8d4
mov eax, dword [esp + 0xa8]
push 0
push str.Driver
lea ecx, [esp + 0x3c]
mov eax, dword [eax + esi*4]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.0043c3a0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51c89b
lea edx, [esp + 0x1640]
push edx
push eax
call fcn.0041521e
add esp, 8
test eax, eax
je 0x51c8ba
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a48], 0xc
call fcn.00579c1e
mov eax, dword [esp + 0xac]
inc esi
cmp esi, eax
jl 0x51c85b
jmp 0x51c8d2
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a48], 0xc
call fcn.00579c1e
mov eax, dword [esp + 0xac]
test eax, eax
je 0x51c9af
cmp esi, eax
jge 0x51c9af
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xa0]
shl esi, 2
mov eax, dword [eax + esi]
push eax
push ecx
call fcn.0051cfe0
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a4c], 0xe
call fcn.00579d57
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1a48], 0xc
call fcn.00579c1e
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x20]
mov esi, dword [edx + esi]
push esi
push eax
call fcn.00413ed7
add esp, 8
test eax, eax
je 0x51c9a6
push 0x5de3ec
lea ecx, [esp + 0x24]
call fcn.00577247
push 0x5de3ec
lea ecx, [esp + 0x24]
call fcn.00577166
lea eax, [ebp*8]
mov edi, dword [esp + 0x20]
sub eax, ebp
lea ecx, [eax + eax*2]
lea edx, [ebp + ecx*2]
mov ecx, dword [esp + 0x1a50]
lea eax, [ebp + edx*4]
mov edx, dword [ecx + 4]
or ecx, 0xffffffff
lea edx, [edx + eax*4 + 0x1c4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x51c9af
lea ecx, [esp + 0x20]
call fcn.00579ba9
lea ecx, [esp + 0x58]
call fcn.0043bf50
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1a48], 0xb
call fcn.00577f19
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a48], 0xa
call fcn.00579c1e
lea ecx, [esp + 0x58]
mov byte [esp + 0x1a48], 9
call fcn.0043be80
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x51cd14
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
push edx
mov edx, dword [esp + 0x30]
xor esi, esi
push 0x100
push eax
push esi
lea ecx, [esp + 0x78]
push 0x10
push ecx
push edx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x64], 4
call dword [0x5f45f8]
test eax, eax
je 0x51ca45
mov eax, dword [esp + 0x60]
neg eax
sbb eax, eax
and eax, 0x1c
add eax, 0x16
mov dword [esp + 0x10], eax
jmp 0x51ca4d
mov dword [esp + 0x10], 0x32
mov eax, dword [esp + 0x7c]
push esi
lea ecx, [esp + 0x68]
push eax
push ecx
mov dword [esp + 0x70], esi
call dword [0x5f45fc]
test eax, eax
jne 0x51cbd4
mov ecx, 0xff
lea edi, [esp + 0xa41]
mov byte [esp + 0xa40], al
mov byte [esp + 0xe40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xe41]
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push edx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe44]
mov dword [esp + 0x50], 0x400
push eax
push 2
push ecx
call fcn.00519310
add esp, 0x10
test eax, eax
je 0x51cbd4
lea edi, [esp + 0xe40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + ecx + 0xe41]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa40]
push ecx
call fcn.00418638
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51cb4e
push ebx
call fcn.004159a1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00415bde
add esp, 8
lea ecx, [esp + 0xa40]
push str.PRIMARY
push ecx
call fcn.00417769
add esp, 8
test eax, eax
je 0x51cb6f
mov eax, dword [esp + 0x10]
or al, 1
jmp 0x51cbd0
lea edx, [esp + 0xa40]
push str.SECONDARY
push edx
call fcn.00417769
add esp, 8
test eax, eax
je 0x51cb90
mov eax, dword [esp + 0x10]
or al, 2
jmp 0x51cbd0
lea eax, [esp + 0xa40]
push str.TERTIARY
push eax
call fcn.00417769
add esp, 8
test eax, eax
je 0x51cbb1
mov eax, dword [esp + 0x10]
or al, 4
jmp 0x51cbd0
lea ecx, [esp + 0xa40]
push str.QUATERNARY
push ecx
call fcn.00417769
add esp, 8
test eax, eax
je 0x51cbd4
mov eax, dword [esp + 0x10]
or al, 8
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x51cd14
xor edx, edx
test ecx, ecx
jle 0x51cd14
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1a50]
mov eax, dword [esi + 0x14]
cmp eax, 2
jne 0x51cc98
cmp dword [esi + 8], 4
je 0x51cc98
cmp ecx, 1
jle 0x51cc46
mov eax, dword [esp + 0x118]
test eax, eax
jle 0x51cc30
mov eax, dword [esp + 0x114]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
cmp eax, dword [edi + 4]
je 0x51cca3
jmp 0x51cc98
mov eax, dword [esp + 0xec]
mov edi, dword [esp + 0x10]
cmp edi, dword [eax + edx*4]
je 0x51cccd
jmp 0x51cc98
mov ecx, dword [esp + 0x90]
lea eax, [ebp*8]
sub eax, ebp
mov edi, dword [ecx]
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*2]
lea eax, [ebp + ecx*4]
mov ecx, dword [ebx + 4]
lea esi, [ecx + eax*4 + 0x1c4]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x40], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
inc edx
cmp edx, ecx
jl 0x51cbf5
jmp 0x51cd14
mov ecx, dword [esp + 0x90]
lea eax, [ebp*8]
sub eax, ebp
mov edx, dword [ecx + edx*4]
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*2]
lea eax, [ebp + ecx*4]
mov ecx, dword [ebx + 4]
lea ebx, [ecx + eax*4 + 0x1c4]
jmp 0x51ccf5
mov eax, dword [esp + 0x90]
mov edx, dword [eax + edx*4]
lea eax, [ebp*8]
sub eax, ebp
lea ecx, [eax + eax*2]
lea eax, [ebp + ecx*2]
lea ecx, [ebp + eax*4]
mov eax, dword [ebx + 4]
lea ebx, [eax + ecx*4 + 0x1c4]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp*8]
sub eax, ebp
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*2]
mov eax, dword [esp + 0x1a50]
lea edx, [ebp + ecx*4]
mov ecx, dword [eax + 4]
xor eax, eax
lea edx, [ecx + edx*4 + 0x1c4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x51cd74
cmp dword [esp + 0x18], 1
jne 0x51cd74
mov eax, dword [esp + 0x90]
or ecx, 0xffffffff
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a48], 4
call fcn.00579c1e
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 2
jne 0x51ce0a
lea eax, [ebp*8]
sub eax, ebp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
mov edx, dword [esp + 0x1a50]
lea ecx, [ebp + eax*4]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x7c]
lea ecx, [eax + ecx*4]
push ecx
push 0x51a810
push edx
call fcn.0051a690
add esp, 0xc
mov dword [esp + 0x40], eax
inc dword [esp + 0x14]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51c2ba
jmp 0x51ce53
lea eax, [ebp*8]
lea edi, [esp + 0x23c]
sub eax, ebp
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*2]
mov eax, dword [esp + 0x1a50]
lea edx, [ebp + ecx*4]
mov ecx, dword [eax + 4]
lea edx, [ecx + edx*4 + 0xd4]
jmp 0x51ce36
lea eax, [ebp*8]
lea edi, [esp + 0x23c]
sub eax, ebp
lea ecx, [eax + eax*2]
lea edx, [ebp + ecx*2]
mov ecx, dword [esp + 0x1a50]
lea eax, [ebp + edx*4]
mov edx, dword [ecx + 4]
lea edx, [edx + eax*4 + 0xd4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [0x5f45f4]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 3
jne 0x51cec3
lea eax, [ebp*8]
sub eax, ebp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
mov edx, dword [esp + 0x1a50]
lea ecx, [ebp + eax*4]
mov eax, dword [edx + 4]
lea edx, [eax + ecx*4 + 0x1c4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x51cec3
cmp dword [esp + 0x18], 1
jne 0x51cec3
mov ecx, dword [esp + 0x90]
xor eax, eax
mov edi, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
inc ebp
cmp ebp, eax
jb 0x51c0b8
lea ecx, [esp + 0x110]
mov byte [esp + 0x1a48], 3
call fcn.0057848e
lea ecx, [esp + 0xe8]
mov byte [esp + 0x1a48], 2
call fcn.0057848e
lea ecx, [esp + 0x124]
mov byte [esp + 0x1a48], 1
call fcn.0057848e
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1a48], 0
call fcn.00577f19
lea ecx, [esp + 0xfc]
mov dword [esp + 0x1a48], 0xffffffff
call fcn.00577f19
mov eax, 1
jmp 0x51cfa7
lea ecx, [esp + 0x110]
mov byte [esp + 0x1a48], 3
call fcn.0057848e
lea ecx, [esp + 0xe8]
mov byte [esp + 0x1a48], 2
call fcn.0057848e
lea ecx, [esp + 0x124]
mov byte [esp + 0x1a48], 1
call fcn.0057848e
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1a48], 0
call fcn.00577f19
lea ecx, [esp + 0xfc]
mov dword [esp + 0x1a48], 0xffffffff
call fcn.00577f19
xor eax, eax
mov ecx, dword [esp + 0x1a40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a3c
ret 8
mov eax, dword [esp + 0x18]
jmp 0x51cfa7