Function at 0x1005444
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100d008]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 8], ebx
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x8c], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x6c], ebx
je 0x10058bd
cmp esi, ebx
je 0x10058bd
lea eax, [ebp - 0x64]
xor edi, edi
push eax
inc edi
push edi
call fcn.01001b93
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp + 8]
call fcn.010050b8
test eax, eax
jne 0x10054be
push 0x20000
jmp 0x1005532
cmp dword [ebp - 0x6c], edi
jne 0x10054ce
push edi
call fcn.01001f2f
jmp 0x10055db
lea eax, [ebp - 0x64]
push eax
call fcn.01002013
cmp eax, ebx
mov dword [ebp - 0x70], eax
jne 0x10054e2
push 0xffffffffffffffff
jmp 0x1005528
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1005846
cmp dword [ebp - 0x68], ebx
jne 0x1005518
push 0x42b
jmp 0x1005528
cmp dword [ebp - 0x20], ebx
jne 0x1005545
lea eax, [ebp - 0x68]
push eax
call fcn.01001b65
push 0x57
call fcn.01002093
push 0x20001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100b4f9
jmp 0x10055d9
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10055b2
push ebx
push 0xca
call fcn.0100b4a7
push edi
push 0xce
mov esi, eax
call fcn.0100b4a7
mov edi, eax
push dword [ebp - 0x54]
push edi
push dword [ebp - 0x20]
push esi
call fcn.01001c89
cmp eax, 2
jg 0x1005573
cmp eax, 1
je 0x10055eb
lea eax, [ebp - 0x68]
push eax
call fcn.01001b65
push 0x4c7
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
jmp 0x10055db
cmp eax, 2
je 0x10055ee
push eax
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100b4f9
lea eax, [ebp - 0x68]
push eax
call fcn.01001b65
mov ebx, edi
lea eax, [ebp - 0x64]
push eax
call fcn.01001c25
mov eax, ebx
jmp 0x10058d6
xor edi, edi
inc edi
mov eax, dword [ebp - 0x38]
cmp eax, 3
mov dword [ebp - 0x70], edi
je 0x1005790
jle 0x1005758
cmp eax, 5
jle 0x1005710
cmp eax, 7
jne 0x1005758
push ebx
push dword [ebp - 0x1c]
call fcn.01009813
mov esi, eax
push ebx
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x74], esi
call fcn.01009813
mov dword [ebp - 0x88], eax
lea eax, [esi + esi + 6]
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x10057b8
xor edi, edi
cmp dword [ebp - 0x74], ebx
mov esi, eax
jle 0x1005676
push edi
push 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call fcn.01009e17
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
je 0x10056b1
cmp eax, edi
jne 0x10056b7
mov dword [ebp - 0x84], 1
push ebx
push 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call fcn.01009834
test eax, eax
mov eax, dword [ebp - 0x80]
jne 0x10056fd
lea esi, [eax + 4]
sub esi, eax
sar esi, 1
shl esi, 1
push esi
push eax
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x80]
jmp 0x100583d
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.01009ee4
push ebx
push esi
call fcn.01009813
mov ecx, dword [ebp - 0x80]
lea esi, [esi + eax*2 + 2]
mov eax, dword [ebp - 0x74]
lea ecx, [ecx + eax*2 + 4]
cmp esi, ecx
jae 0x1005676
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x6c]
lea edi, [ecx + edx]
cmp edi, eax
jl 0x1005651
jmp 0x1005676
inc esi
inc esi
cmp dword [ebp - 0x84], 1
jne 0x100568f
push 0x7b
mov dword [ebp - 0x70], ebx
pop esi
jmp 0x10056a9
cmp dword [ebp - 0x1c], ebx
je 0x100575d
push 0xa
pop esi
push 2
push edi
push 0x1001778
push dword [ebp - 0x1c]
call fcn.01009834
test eax, eax
jne 0x100572f
push 0x10
pop esi
push ebx
push esi
push dword [ebp - 0x1c]
call fcn.0100ab0c
test eax, eax
jne 0x1005744
mov dword [ebp - 0x70], ebx
push 0x79
jmp 0x100575f
push esi
push dword [ebp - 0x1c]
call fcn.0100a908
mov dword [ebp - 0x78], eax
push 4
lea eax, [ebp - 0x78]
push eax
jmp 0x1005779
cmp dword [ebp - 0x1c], ebx
jne 0x1005765
push 0x57
pop esi
jmp 0x1005846
push ebx
push dword [ebp - 0x1c]
call fcn.01009813
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x1005846
cmp dword [ebp - 0x1c], ebx
je 0x100575d
push ebx
push dword [ebp - 0x1c]
call fcn.01009813
mov ecx, eax
shr ecx, 1
and eax, edi
lea eax, [ecx + eax + 1]
push eax
mov dword [ebp - 0x74], eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x10057bc
push 8
jmp 0x100575f
mov esi, dword [ebp - 0x1c]
push 6
xor edi, edi
lea eax, [ebp - 0xc]
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x10057c7
jmp 0x1005815
test al, 1
jne 0x10057de
mov ax, word [esi]
inc esi
mov word [ebp - 0xc], ax
inc esi
jmp 0x10057e4
mov word [ebp - 0xc], 0x30
mov ax, word [esi]
push 1
mov word [ebp - 0xa], ax
push 0x10
lea eax, [ebp - 0xc]
inc esi
push eax
inc esi
call fcn.0100ab0c
test eax, eax
je 0x1005870
push 0x10
lea eax, [ebp - 0xc]
push eax
call fcn.0100a908
mov ecx, dword [ebp - 0x7c]
mov byte [ecx + edi], al
inc edi
cmp edi, dword [ebp - 0x74]
jae 0x1005878
push ebx
push esi
call fcn.01009813
cmp eax, 1
mov dword [ebp - 0x78], eax
ja 0x10057cf
push edi
push dword [ebp - 0x7c]
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
call fcn.01009f4b
xor edi, edi
inc edi
lea eax, [ebp - 0x68]
push eax
call fcn.01001b65
lea eax, [ebp - 0x64]
push eax
call fcn.01001c25
cmp dword [ebp - 0x70], ebx
jne 0x100587f
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x40
push eax
call fcn.0100b4da
mov esi, edi
jmp 0x10058b9
push 0x7a
mov dword [ebp - 0x70], ebx
pop esi
jmp 0x100583a
mov esi, 0x42b
jmp 0x100583a
cmp esi, ebx
je 0x100589e
push esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100b4f9
jmp 0x100586c
push ebx
xor esi, esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
mov eax, esi
jmp 0x10058d6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01009740
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010092ae
leave
ret 8