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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x104
cmp eax, edi
je 0x407478
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x407481
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x40748b
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x407495
mov byte [eax], 0
call fcn.00406e33
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0x20119
push edi
push 0xb7
mov ebx, 0xa9
push ebx
push 0x22
push 0x4106fc
mov esi, 0x412390
push esi
call fcn.0040254d
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x100
push edi
push esi
test eax, eax
jne 0x407845
call fcn.0040ee85
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x14], edi
push edi
jmp 0x40774f
lea eax, [ebp - 0x22c]
push eax
call fcn.00406d1e
pop ecx
test eax, eax
je 0x407739
lea eax, [ebp - 0x22c]
push eax
call fcn.0040f200
pop ecx
cmp eax, dword [ebp - 0x1c]
jne 0x407739
lea eax, [ebp - 8]
push eax
push 0x101
push edi
lea eax, [ebp - 0x22c]
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 0x407773
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push 0xb7
push ebx
push 0xa
push 0x4106f0
push esi
call fcn.0040254d
add esp, 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x407773
lea eax, [ebp - 0x22c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407595
sub eax, edx
cmp dword [ebp - 0xc], eax
jbe 0x4077a1
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040eef0
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4077a1
push 0xb7
push ebx
push 5
mov edi, 0x4106a8
push edi
push esi
call fcn.0040254d
push eax
push dword [ebp - 4]
call fcn.0040eef0
add esp, 0x1c
test eax, eax
je 0x40779f
cmp byte [ebp - 0x128], 0x22
jne 0x40761e
lea eax, [ebp - 0x127]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040ef5b
lea eax, [ebp - 0x128]
push 0x22
push eax
call fcn.0040ed5e
add esp, 0x10
jmp 0x40762e
lea eax, [ebp - 0x128]
push 0x20
push eax
call fcn.0040ed5e
pop ecx
pop ecx
test eax, eax
je 0x407635
mov byte [eax], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040eef0
push 0xb7
push ebx
push 5
push edi
push esi
mov dword [ebp - 4], eax
call fcn.0040254d
push eax
push dword [ebp - 4]
call fcn.0040eef0
push 0x100
push 0
push esi
mov dword [ebp - 0x18], eax
call fcn.0040ee85
mov eax, dword [ebp + 8]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40767c
sub eax, ecx
mov ecx, dword [ebp - 4]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40768b
sub ecx, edi
cmp eax, ecx
jle 0x4076b0
push dword [ebp - 4]
sub eax, ecx
add eax, dword [ebp + 8]
push eax
call fcn.0040edd2
pop ecx
pop ecx
test eax, eax
je 0x4077b5
mov edi, dword [ebp - 0x18]
push 0x5c
push dword [ebp - 4]
mov byte [edi], 0
call fcn.0040ed7e
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x4076d4
lea eax, [ebp - 0x128]
mov dword [ebp - 4], eax
jmp 0x4076d7
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.00406d1e
pop ecx
test eax, eax
je 0x40776e
push dword [ebp - 4]
call fcn.0040f200
mov ecx, dword [ebp - 0x18]
mov edi, eax
shr edi, 8
push eax
mov dword [ebp - 0x20], eax
and edi, 0xff
mov byte [ecx], 0x2e
call fcn.00406d07
pop ecx
pop ecx
test eax, eax
jne 0x407729
lea eax, [edi - 0x51]
cmp eax, 0x2e
ja 0x407729
mov eax, dword [ebp - 0x20]
and eax, 0xff
cmp eax, 0x10
jl 0x4077ca
xor edi, edi
cmp dword [ebp - 8], edi
je 0x407739
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 - 0x22c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4074fd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40784d
mov byte [edi], 0x2e
jmp 0x407729
cmp eax, 5
jne 0x4077a1
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0x14]
call fcn.0040ef5b
pop ecx
pop ecx
cmp dword [ebp - 8], edi
je 0x407797
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop esi
jmp 0x407838
xor edi, edi
push 0x100
push edi
push esi
call fcn.0040ee85
add esp, 0xc
jmp 0x40772b
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0x14]
call fcn.0040ef5b
pop ecx
pop ecx
xor esi, esi
jmp 0x40782f
lea eax, [ebp - 0x250]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x4077e6
inc ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4077ef
mov dword [eax], edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x407810
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x128]
sub esi, eax
push esi
push eax
push edi
call fcn.0040ee63
add esp, 0xc
mov byte [esi + edi], 0
cmp dword [ebp + 0x18], 0
je 0x407823
push dword [ebp - 4]
push dword [ebp + 0x18]
call fcn.0040ef5b
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40782c
mov dword [eax], ebx
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 0x407850
call fcn.0040ee85
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret