Function at 0x7315cb30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x504
mov eax, dword [0x731f70b4]
xor eax, esp
mov dword [esp + 0x500], eax
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 4]
mov dword [esp + 0xc], ebx
push edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebx], 0x7315100c
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x3458], 0
mov dword [ebx + 0x3570], eax
mov dword [ebx + 0x24], ebx
push esi
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x3420]
mov ecx, 0xc
mov dword [eax - 0x18f0], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x7315cbb2
push 0x1b00
push ecx
lea eax, [ebx + 0x30]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x58]
push 0x1a8
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 8
mov dword [esp + 0x5c], 0x1a8
lea eax, [esp + 0x5c]
xor edx, edx
xor edi, edi
push eax
call fcn.7316e3c0
add esp, 8
test eax, eax
je 0x7315cd0a
jmp 0x7315cc20
mov eax, dword [esp + 0xfc]
test al, 8
jne 0x7315ccf1
test al, 1
je 0x7315ccf1
test al, 4
je 0x7315ccf1
mov eax, dword [ebx + 0x2c]
lea esi, [esp + 0x5c]
mov edx, 0x104
lea ecx, [eax + eax*8]
mov eax, dword [0x731541c0]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x731541c4]
mov dword [ecx + 0x34], eax
mov eax, dword [0x731541c8]
mov dword [ecx + 0x38], eax
mov eax, dword [0x731541cc]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add dword [eax + ebx + 0x30], edi
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea eax, [edx - 0xe5]
test eax, eax
je 0x7315ccab
mov al, byte [esi + ecx]
test al, al
je 0x7315ccab
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x7315cc90
jmp 0x7315ccaf
test edx, edx
jne 0x7315ccb0
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xfc]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 1
inc dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x5c]
inc edi
push eax
mov edx, edi
call fcn.7316e3c0
add esp, 8
test eax, eax
jne 0x7315cc20
push ecx
lea eax, [esp + 0x5c]
xor edx, edx
push eax
xor edi, edi
call fcn.7316e3c0
add esp, 8
test eax, eax
je 0x7315ce2a
jmp 0x7315cd30
mov eax, dword [esp + 0xfc]
test al, 8
jne 0x7315ce11
test al, 1
je 0x7315ce11
test al, 4
jne 0x7315ce11
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x7315ce11
lea ecx, [eax + eax*8]
mov edx, 0x104
mov eax, dword [0x731541c0]
lea esi, [esp + 0x5c]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x731541c4]
mov dword [ecx + 0x34], eax
mov eax, dword [0x731541c8]
mov dword [ecx + 0x38], eax
mov eax, dword [0x731541cc]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add dword [eax + ebx + 0x30], edi
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea esp, [esp]
lea eax, [edx - 0xe5]
test eax, eax
je 0x7315cdcb
mov al, byte [esi + ecx]
test al, al
je 0x7315cdcb
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x7315cdb0
jmp 0x7315cdcf
test edx, edx
jne 0x7315cdd0
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xfc]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 1
inc dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x5c]
inc edi
push eax
mov edx, edi
call fcn.7316e3c0
add esp, 8
test eax, eax
jne 0x7315cd30
lea eax, [esp + 0x2c]
push eax
push 0x7315410c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7315d16a
push 0x100
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30c]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x7315d160
lea esp, [esp]
xor edx, edx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x308]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edx
lea esp, [esp]
mov al, byte [ecx]
mov edi, ecx
mov dword [esp + 0x28], edi
cmp al, 0x2d
je 0x7315ceac
lea esp, [esp]
test al, al
je 0x7315ceb0
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x2d
jne 0x7315cea0
test al, al
jne 0x7315ceba
mov dword [esp + 0x14], 1
jmp 0x7315cec1
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
dec ecx
xor ebx, ebx
mov esi, 1
cmp ecx, edi
jb 0x7315cf16
lea ecx, [ecx]
mov dl, byte [ecx]
mov edi, esi
lea eax, [edx - 0x41]
cmp al, 5
ja 0x7315cee3
movzx eax, dl
sub eax, 0x37
jmp 0x7315cf03
lea eax, [edx - 0x61]
cmp al, 5
ja 0x7315cef2
movzx eax, dl
sub eax, 0x57
jmp 0x7315cf03
lea eax, [edx - 0x30]
cmp al, 9
ja 0x7315d133
movzx eax, dl
sub eax, 0x30
imul eax, edi
dec ecx
shl esi, 4
add ebx, eax
cmp ecx, dword [esp + 0x28]
jae 0x7315ced0
mov edx, dword [esp + 0x20]
mov eax, edx
sub eax, 0
je 0x7315cf3b
sub eax, 1
je 0x7315cf34
sub eax, 1
je 0x7315cf2d
mov byte [esp + edx + 0x4d], bl
jmp 0x7315cf3f
mov word [esp + 0x4e], bx
jmp 0x7315cf3f
mov word [esp + 0x4c], bx
jmp 0x7315cf3f
mov dword [esp + 0x48], ebx
inc edx
mov dword [esp + 0x20], edx
cmp edx, 0xb
je 0x7315cf5d
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
je 0x7315ce90
jmp 0x7315d133
cmp dword [esp + 0x14], 0
je 0x7315d133
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7315d133
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0xff
push eax
lea eax, [esp + 0x40c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x73154128
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7315d129
cmp dword [esp + 0x30], 1
jne 0x7315d129
mov eax, dword [esp + 0x24]
cmp eax, 0x100
jae 0x7315d5f6
mov byte [esp + eax + 0x408], 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x204]
mov dword [esp + 0x28], 0x103
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x73154134
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7315d129
mov esi, dword [esp + 0x24]
cmp esi, 0x104
jae 0x7315d5f6
lea ecx, [esp + 0x48]
mov byte [esp + esi + 0x200], al
call fcn.73170010
test eax, eax
je 0x7315d047
lea ecx, [esp + 0x200]
call fcn.7316e600
mov esi, dword [esp + 0x24]
mov edi, eax
jmp 0x7315d049
xor edi, edi
cmp dword [esp + 0x30], 1
jne 0x7315d11e
test edi, edi
je 0x7315d129
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x7315d11e
cmp esi, 0x104
jae 0x7315d5f6
lea ecx, [eax + eax*8]
mov byte [esp + esi + 0x200], 0
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x200]
shl ecx, 6
mov edx, 0x104
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea eax, [edx - 1]
test eax, eax
je 0x7315d0d8
mov al, byte [ecx + esi]
test al, al
je 0x7315d0d8
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x7315d0c0
jmp 0x7315d0dc
test edx, edx
jne 0x7315d0dd
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xfc]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 0
inc dword [ebx + 0x2c]
test edi, edi
je 0x7315d129
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x308]
push 0x100
push eax
inc esi
push esi
push dword [esp + 0x38]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x7315ce70
mov ebx, dword [esp + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x18], 0
jbe 0x7315d4f1
mov eax, 0xffffffc0
lea esi, [ebx + 0x40]
sub eax, ebx
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
cmp byte [esi], 0x5c
jne 0x7315d1aa
cmp byte [esi + 1], 0x5c
jne 0x7315d1aa
cmp byte [esi + 2], 0x2e
jne 0x7315d1aa
push 0
push 0
push esi
push 0
jmp 0x7315d1b1
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
lea edx, [esi + 0x22c]
lea eax, [esp + 0x28]
mov ecx, edi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.7320ddda
add esp, 8
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
push 0
push 0
push 1
lea edx, [esi - 0x10]
lea ecx, [esp + 0x34]
call fcn.7320ddda
add esp, 0x14
test eax, eax
jns 0x7315d221
mov eax, dword [esp + 0x1c]
add eax, 0x158
push 0x108
add eax, esi
add eax, ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.7315c930
jmp 0x7315d4d9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
lea edi, [ecx + esi]
add edi, ebx
lea ecx, [edi + 0x158]
mov dword [edi + 0x154], 0
call fcn.7315c400
add esp, 4
test eax, eax
js 0x7315d285
mov ebx, dword [edi + 0x254]
test ebx, ebx
je 0x7315d281
mov ecx, dword [edi + 0x258]
add ecx, 0x50
mov edi, edi
test dword [ecx + 8], 0x400
je 0x7315d279
mov edx, dword [ecx]
lea eax, [edx - 0x17]
cmp eax, 1
ja 0x7315d279
mov dword [edi + 0x154], edx
add ecx, 0x6c
sub ebx, 1
jne 0x7315d260
mov ebx, dword [esp + 0x10]
cmp dword [edi + 0x154], 0
jne 0x7315d2be
push 0
push ecx
lea eax, [esp + 0x40]
push eax
lea edx, [edi + 0x40]
call fcn.7316ba20
mov eax, dword [esp + 0x44]
cmp eax, 0x18
je 0x7315d2b8
cmp eax, 0x17
je 0x7315d2b8
mov dword [edi + 0x154], 0x17
jmp 0x7315d2be
mov dword [edi + 0x154], eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x1c8], 0
jne 0x7315d2f5
mov eax, dword [esp + 0x1c]
add eax, 0x158
push 0x108
add eax, esi
add eax, ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [edi + 0x30]
call fcn.7315c930
jmp 0x7315d4d9
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x10]
add edi, esi
xor ebx, ebx
mov dword [esp + 0x14], eax
mov edx, dword [ecx + edi + 0x254]
test edx, edx
je 0x7315d354
mov ecx, dword [ecx + edi + 0x258]
add ecx, 0x50
lea esp, [esp]
test dword [ecx + 8], 0x400
je 0x7315d348
mov eax, dword [ecx]
cmp eax, 0x16
je 0x7315d343
add eax, 0xffffffe9
cmp eax, 1
ja 0x7315d348
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x7315d34c
mov ebx, 1
mov eax, dword [esp + 0x14]
add ecx, 0x6c
sub edx, 1
jne 0x7315d320
push ebx
push eax
push ecx
push dword [esi + 0x114]
lea edi, [esi + 0x10c]
xor edx, edx
push edi
mov ecx, esi
call fcn.7316d9b0
mov eax, dword [edi]
test eax, eax
je 0x7315d3f1
shl eax, 4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x110], eax
test eax, eax
je 0x7315d445
mov edx, dword [esp + 0x1c]
lea edi, [esi + 0x10c]
push ebx
push dword [esp + 0x18]
add edx, esi
push ecx
mov ecx, dword [esp + 0x1c]
push dword [ecx + edx + 0x154]
mov edx, eax
mov ecx, esi
push edi
call fcn.7316d9b0
mov eax, dword [edi]
test eax, eax
jne 0x7315d3f1
mov eax, dword [esi + 0x110]
test eax, eax
je 0x7315d3cb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push dword [esp + 0x18]
mov dword [esi + 0x110], 0
xor edx, edx
push ecx
push dword [esi + 0x114]
mov ecx, esi
push edi
call fcn.7316d9b0
mov eax, dword [edi]
test eax, eax
jne 0x7315d373
mov ecx, dword [esp + 0x10]
test ebx, ebx
je 0x7315d49d
cmp dword [esi + 0x134], 0
jne 0x7315d49d
cmp dword [esi + 0x1f4], 0x16
je 0x7315d49d
xor edx, edx
test eax, eax
je 0x7315d462
mov ebx, dword [esp + 0x1c]
add ebx, esi
mov ecx, dword [ecx + ebx + 0x150]
add ecx, 0xc
lea ecx, [ecx]
cmp dword [ecx], 0x16
je 0x7315d45e
mov eax, dword [esi + 0x10c]
inc edx
add ecx, 0x10
cmp edx, eax
jb 0x7315d430
jmp 0x7315d462
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add eax, esi
mov dword [ecx + eax + 0x14c], 0
xor eax, eax
jmp 0x7315d3f5
cmp edx, eax
jb 0x7315d49d
xor edx, edx
cmp dword [esi + 0x214], edx
jbe 0x7315d49d
xor edi, edi
mov edi, edi
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + edi + 0x58]
test eax, 0x400
je 0x7315d491
cmp dword [ecx + edi + 0x50], 0x16
jne 0x7315d491
and eax, 0xfffffbff
mov dword [ecx + edi + 0x58], eax
inc edx
add edi, 0x6c
cmp edx, dword [esi + 0x214]
jb 0x7315d470
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c8]
call fcn.7316d580
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x7315d4bd
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x100]
test eax, eax
je 0x7315d4ce
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add esi, 0x240
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x2c]
jb 0x7315d190
lea eax, [esp + 0x18]
mov dword [ebx + 0x345c], 0
push eax
push 0x73154140
push 0x80000002
mov dword [ebx + 0x3460], 0
mov dword [ebx + 0x3464], 0
mov dword [ebx + 0x3468], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7315d57f
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x104
push eax
lea esi, [ebx + 0x346c]
push esi
lea eax, [esp + 0x28]
push eax
push 0
push 0x73154170
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7315d575
cmp dword [esp + 0x20], 1
jne 0x7315d575
cmp byte [esi], al
je 0x7315d575
mov dword [ebx + 0x3468], 1
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
push 0x73154178
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7315d5dd
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x7315419c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7315d5d3
xor ecx, ecx
cmp dword [esp + 0x20], ecx
setne cl
mov dword [ebx + 0x3454], ecx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x50c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.731efbf0
mov esp, ebp
pop ebp
ret 4
call fcn.731efd3a
int3