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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x104
cmp eax, edi
je 0x40741d
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x407426
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x407430
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x40743a
mov byte [eax], 0
call fcn.00406dc2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0x20119
push edi
push 0xc8
mov ebx, 0xe4
push ebx
push 0x22
push 0x4106e8
mov esi, 0x4122f8
push esi
call fcn.00402544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x100
push edi
push esi
test eax, eax
jne 0x4077f9
call fcn.0040ee2a
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x14], edi
push edi
jmp 0x407703
lea eax, [ebp - 0x228]
push eax
call fcn.00406cad
pop ecx
test eax, eax
je 0x4076ed
lea eax, [ebp - 0x228]
push eax
call fcn.0040f1a5
xor eax, 0x5a5a5a5a
pop ecx
cmp eax, dword [ebp - 0x1c]
jne 0x4076ed
lea eax, [ebp - 8]
push eax
push 0x101
push edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x407727
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0xc8
push ebx
push 0xa
push 0x4106dc
push esi
call fcn.00402544
add esp, 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x407727
lea eax, [ebp - 0x228]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40753f
sub eax, edx
cmp dword [ebp - 0xc], eax
jbe 0x407755
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040ee95
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x407755
push 0xc8
push ebx
push 5
mov edi, 0x410694
push edi
push esi
call fcn.00402544
push eax
push dword [ebp - 4]
call fcn.0040ee95
add esp, 0x1c
test eax, eax
je 0x407753
cmp byte [ebp - 0x124], 0x22
jne 0x4075c8
lea eax, [ebp - 0x123]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040ef00
lea eax, [ebp - 0x124]
push 0x22
push eax
call fcn.0040ed03
add esp, 0x10
jmp 0x4075d8
lea eax, [ebp - 0x124]
push 0x20
push eax
call fcn.0040ed03
pop ecx
pop ecx
test eax, eax
je 0x4075df
mov byte [eax], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040ee95
push 0xc8
push ebx
push 5
push edi
push esi
mov dword [ebp - 4], eax
call fcn.00402544
push eax
push dword [ebp - 4]
call fcn.0040ee95
push 0x100
push 0
push esi
mov dword [ebp - 0x18], eax
call fcn.0040ee2a
mov eax, dword [ebp + 8]
add esp, 0x30
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407626
mov ecx, dword [ebp - 4]
sub eax, edi
mov edi, eax
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407637
sub ecx, eax
cmp edi, ecx
jle 0x40765c
push dword [ebp - 4]
sub edi, ecx
add edi, dword [ebp + 8]
push edi
call fcn.0040ed77
pop ecx
pop ecx
test eax, eax
je 0x407769
mov edi, dword [ebp - 0x18]
push 0x5c
push dword [ebp - 4]
mov byte [edi], 0
call fcn.0040ed23
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x407680
lea eax, [ebp - 0x124]
mov dword [ebp - 4], eax
jmp 0x407683
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.00406cad
pop ecx
test eax, eax
je 0x407722
push dword [ebp - 4]
call fcn.0040f1a5
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, 0x5a5a5a5a
mov ebx, edi
shr ebx, 8
push edi
and ebx, 0xff
mov byte [eax], 0x2e
call fcn.00406c96
pop ecx
pop ecx
test eax, eax
jne 0x4076d8
lea eax, [ebx - 0x51]
cmp eax, 0x2e
ja 0x4076d8
and edi, 0xff
cmp edi, 0x10
jl 0x40777e
mov ebx, 0xe4
xor edi, edi
cmp dword [ebp - 8], edi
je 0x4076ed
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x14]
mov eax, 0x104
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4074a2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407801
mov byte [edi], 0x2e
jmp 0x4076dd
cmp eax, 5
jne 0x407755
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.0040ef00
pop ecx
pop ecx
cmp dword [ebp - 8], edi
je 0x40774b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop esi
jmp 0x4077ec
xor edi, edi
push 0x100
push edi
push esi
call fcn.0040ee2a
add esp, 0xc
jmp 0x4076df
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.0040ef00
pop ecx
pop ecx
xor esi, esi
jmp 0x4077e3
lea eax, [ebp - 0x24c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x40779a
inc edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4077a3
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4077c4
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x124]
sub esi, eax
push esi
push eax
push ebx
call fcn.0040ee08
add esp, 0xc
mov byte [esi + ebx], 0
cmp dword [ebp + 0x18], 0
je 0x4077d7
push dword [ebp - 4]
push dword [ebp + 0x18]
call fcn.0040ef00
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4077e0
mov dword [eax], edi
push 3
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x407804
call fcn.0040ee2a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret