Function at 0x407560
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x478
mov eax, dword [0x57f970]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [esi]
push ebx
push edi
xor edi, edi
cmp eax, edi
jg 0x4083d5
push 0x206
lea ecx, [esp + 0x276]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], edi
mov word [esp + 0x27c], ax
call fcn.00508a80
add esp, 0xc
push 0x206
lea eax, [esp + 0x6e]
xor edx, edx
push edi
push eax
mov word [esp + 0x74], dx
call fcn.00508a80
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
xor eax, eax
push edi
push 0x55bac8
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x48], 0
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov byte [esp + 0x59], al
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x407ad9
mov ecx, dword [esp + 0x1c]
push edi
push edi
push edi
push edi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x284]
push eax
push edi
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x104
call ebx
test eax, eax
jne 0x407aaf
nop
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x27c]
push eax
push ecx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a80
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0x38]
push eax
push 0
push 0x55bb3c
push ecx
call edi
test eax, eax
jne 0x407a80
cmp dword [esp + 0x28], eax
jbe 0x407a80
test ebx, ebx
je 0x4076c5
push ebx
call fcn.00408cec
add esp, 4
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408cb2
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 4
lea ecx, [eax + eax]
push ecx
push 0
push ebx
mov dword [esp + 0x24], ebx
call fcn.00508a80
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0x38]
push eax
push 0
push 0x55bb54
push ecx
call edi
test eax, eax
jne 0x407a80
push ebx
lea edx, [esp + 0x6c]
push 0x55bb6c
push edx
mov edx, 0x104
call fcn.004017a0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a69
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x38]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0x170002
push edi
mov dword [esp + 0x2c], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407a5e
cmp dword [esp + 0x2c], 0
jne 0x407a5e
mov ecx, dword [esi]
add ecx, 0xc2
shl ecx, 4
add ecx, esi
push ecx
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x34]
push edx
mov edx, ebx
mov ecx, esi
call fcn.00406350
test eax, eax
jne 0x4077ff
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x10205
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test ebx, ebx
je 0x407814
push ebx
call fcn.00408cec
add esp, 4
mov dword [esp + 0x18], 0
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x55bb7c
push eax
call fcn.005075f6
mov eax, dword [esi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
mov dword [esi + ecx*2 + 0x16c], edx
lea eax, [esi + ecx*2 + 0x16c]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [eax + 0x10], dl
add esp, 0x20
xor eax, eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x1010101
call ebx
test eax, eax
je 0x407923
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x55bb9c
push eax
call fcn.005075f6
mov eax, dword [esi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x1010102
call ebx
test eax, eax
je 0x4079c6
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x55bbbc
push eax
call fcn.005075f6
mov eax, dword [esi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], dl
push 0x208
lea eax, [esp + 0x6c]
push 0
push eax
mov dword [esp + 0x18], 0x1010d
call fcn.00508a80
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x208
lea edx, [esp + 0x74]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0x170002
push edi
call ebx
test eax, eax
je 0x407a4f
cmp dword [esp + 0x14], 0
jbe 0x407a4f
lea ebx, [esp + 0x68]
call fcn.004017e0
mov dword [esp + 0x18], eax
test eax, eax
je 0x407a4f
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esi]
lea edx, [ecx + ecx]
push edx
shl eax, 8
lea ecx, [eax + esi + 0x220]
push ebx
push ecx
call fcn.0050b020
add esp, 0xc
push ebx
call fcn.00408cec
add esp, 4
mov dword [esp + 0x18], 0
test edi, edi
je 0x407a5a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x407a69
test edi, edi
je 0x407a69
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407a80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x284]
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x407650
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x407ac4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x407ad7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
jg 0x4083d5
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push 0x55bbe0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ef5
mov eax, dword [esp + 0x1c]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x284]
push edx
push edi
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x104
call ebx
test eax, eax
jne 0x407ec5
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea esp, [esp]
inc dword [esp + 0x20]
lea ecx, [esp + 0x270]
push ecx
lea eax, [esp + 0x6c]
mov edx, 0x104
push 0x55bc5c
push eax
mov dword [esp + 0x30], edx
call fcn.004017a0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407e98
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x38]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x10114
call ebx
test eax, eax
je 0x407e8d
cmp dword [esp + 0x2c], 0
jne 0x407e8d
mov edx, dword [esi]
add edx, 0xc2
shl edx, 4
add edx, esi
push edx
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x274]
mov ecx, esi
call fcn.00406350
test eax, eax
jne 0x407c36
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x10205
call ebx
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55bc6c
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0x16c], ecx
mov edx, dword [esp + 0x6c]
mov dword [esi + eax*2 + 0x170], edx
mov ecx, dword [esp + 0x70]
lea eax, [esi + eax*2 + 0x16c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
mov byte [eax + 0x10], cl
add esp, 0x20
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x1010101
call ebx
test eax, eax
je 0x407d45
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55bc8c
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 4], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x1010102
call ebx
test eax, eax
je 0x407ded
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55bcac
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0xb8], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 0xb8]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
push 0x208
lea edx, [esp + 0x6c]
push 0
push edx
mov dword [esp + 0x18], 0x1010d
call fcn.00508a80
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push 0x208
lea ecx, [esp + 0x74]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push edi
call ebx
test eax, eax
je 0x407e78
cmp dword [esp + 0x14], 0
jbe 0x407e78
lea ebx, [esp + 0x68]
call fcn.004017e0
mov dword [esp + 0x18], eax
test eax, eax
je 0x407e78
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov ebx, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
shl edx, 8
lea eax, [edx + esi + 0x220]
push ebx
push eax
call fcn.0050b020
add esp, 0xc
push ebx
call fcn.00408cec
add esp, 4
mov dword [esp + 0x18], 0
test edi, edi
je 0x407e83
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x407e98
test edi, edi
je 0x407e98
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x284]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407b40
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x407eda
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x407eed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
jg 0x4083d5
lea edx, [esp + 0x1c]
push edx
push 0x20019
push edi
push 0x55bcd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4083d3
mov edx, dword [esp + 0x1c]
push edi
push edi
push edi
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x284]
push ecx
push edi
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x104
call ebx
test eax, eax
jne 0x4083ad
nop
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
inc dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x27c]
push ecx
push edx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408380
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x55b8d4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408380
cmp dword [esp + 0x28], eax
jbe 0x408380
test edi, edi
je 0x407fc3
push edi
call fcn.00408cec
add esp, 4
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408cb2
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 4
lea ecx, [eax + eax]
push ecx
push 0
push edi
mov dword [esp + 0x24], edi
call fcn.00508a80
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push 0
push 0x55bd6c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408380
push edi
lea edx, [esp + 0x6c]
push 0x55bd90
push edx
mov edx, 0x104
call fcn.004017a0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40807d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408380
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
jmp 0x408380
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x38]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0x170002
push edi
mov dword [esp + 0x2c], 0x10114
call ebx
test eax, eax
je 0x408375
cmp dword [esp + 0x2c], 0
jne 0x408375
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
add ecx, 0xc2
shl ecx, 4
add ecx, esi
push ecx
push edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00406350
test eax, eax
jne 0x408121
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x12
lea edx, [esp + 0x40]
push edx
push 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x20]
push eax
push 0x170002
push edi
mov dword [esp + 0x2c], 0x10205
call ebx
movzx ecx, byte [esp + 0x39]
movzx edx, byte [esp + 0x38]
movzx eax, byte [esp + 0x37]
push ecx
movzx ecx, byte [esp + 0x3a]
push edx
movzx edx, byte [esp + 0x3d]
push eax
movzx eax, byte [esp + 0x40]
push ecx
push edx
push eax
lea ecx, [esp + 0x60]
push 0x55bda0
push ecx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea edx, [eax + eax*8]
mov dword [esi + edx*2 + 0x16c], ecx
lea eax, [esi + edx*2 + 0x16c]
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
mov byte [eax + 0x10], cl
add esp, 0x20
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x1010101
call ebx
test eax, eax
je 0x40822c
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55bdc0
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 4], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push edi
mov dword [esp + 0x2c], 0x1010102
call ebx
test eax, eax
je 0x4082d4
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55bde0
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0xb8], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 0xb8]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
push 0x208
lea edx, [esp + 0x6c]
push 0
push edx
mov dword [esp + 0x18], 0x1010d
call fcn.00508a80
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push 0x208
lea ecx, [esp + 0x74]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push edi
call ebx
test eax, eax
je 0x40835f
cmp dword [esp + 0x14], 0
jbe 0x40835f
lea ebx, [esp + 0x68]
call fcn.004017e0
mov dword [esp + 0x18], eax
test eax, eax
je 0x40835f
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov ebx, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
shl edx, 8
lea eax, [edx + esi + 0x220]
push ebx
push eax
call fcn.0050b020
add esp, 0xc
push ebx
call fcn.00408cec
add esp, 4
mov dword [esp + 0x18], 0
inc dword [esi]
test edi, edi
je 0x40805d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40805d
test edi, edi
je 0x408380
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x284]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407f50
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4083c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4083d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
mov ecx, dword [esp + 0x47c]
pop edi
pop ebx
xor ecx, esp
call fcn.005072ec
mov esp, ebp
pop ebp
ret