Function at 0x418155
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push edi
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x83c], 0xd
mov dword [ebp - 4], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x838], 0
mov byte [ebp - 0x870], 0
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x86f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x80c], 0
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x80b]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x848], 0
lea eax, [ebp - 0x840]
push eax
push 0x20019
push 0
push 0x472508
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41835e
mov dword [ebp - 0x848], 1
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x80c]
push edx
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp - 0x838]
push edx
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x41835e
mov ecx, dword [ebp - 0x838]
add ecx, 1
mov dword [ebp - 0x838], ecx
push 0x472528
lea edx, [ebp - 0x870]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x418345
lea eax, [ebp - 0x870]
test eax, eax
je 0x4182fb
mov ecx, 0x472538
test ecx, ecx
je 0x4182fb
push 0x472548
lea edx, [ebp - 0x870]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x418345
cmp dword [ebp + 0xc], 0
je 0x418318
lea eax, [ebp - 0x870]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x878], eax
jmp 0x418324
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x878], ecx
mov edx, dword [ebp - 0x834]
add edx, dword [ebp - 0x878]
mov dword [ebp - 0x834], edx
mov eax, dword [ebp - 0x820]
add eax, 1
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x41826c
call dword [sym.imp.MSVCRT.dll___p__environ]
mov ecx, dword [eax]
mov dword [ebp - 0x830], ecx
jmp 0x41837d
mov edx, dword [ebp - 0x830]
add edx, 4
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x41845e
push 0x5f
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418459
cmp dword [ebp - 8], 0
je 0x418459
mov eax, 0x472558
test eax, eax
je 0x418459
mov ecx, dword [ebp - 0x83c]
push ecx
push 0x472568
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x418459
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x41841a
mov ecx, 0x472578
test ecx, ecx
je 0x41841a
mov edx, dword [ebp - 0x83c]
add edx, 2
push edx
push 0x472588
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x418459
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x83c]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x418459
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x834]
add ecx, eax
mov dword [ebp - 0x834], ecx
mov edx, dword [ebp - 0x820]
add edx, 1
mov dword [ebp - 0x820], edx
jmp 0x41836e
cmp dword [ebp - 0x820], 0
jne 0x41846e
xor eax, eax
jmp 0x4187bb
mov eax, dword [ebp - 0x834]
add eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041ab90
add esp, 8
mov dword [ebp - 0x874], eax
mov edx, dword [ebp - 0x874]
mov dword [ebp - 0x844], edx
cmp dword [ebp - 0x848], 0
je 0x4185f4
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 0
push 0
lea edx, [ebp - 0x82c]
push edx
lea eax, [ebp - 0x870]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4185e7
mov eax, dword [ebp - 0x838]
add eax, 1
mov dword [ebp - 0x838], eax
push 0x472598
lea ecx, [ebp - 0x870]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4185ce
lea edx, [ebp - 0x870]
test edx, edx
je 0x418557
mov eax, 0x4725a8
test eax, eax
je 0x418557
push 0x4725b8
lea ecx, [ebp - 0x870]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x4185ce
mov edx, dword [ebp - 0x844]
cmp edx, dword [ebp - 0x874]
jbe 0x41857d
mov eax, dword [ebp - 0x844]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x844]
add ecx, 1
mov dword [ebp - 0x844], ecx
cmp dword [ebp + 0xc], 0
je 0x41859b
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x844]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4185b1
lea ecx, [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x844]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x844]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x844]
add ecx, eax
mov dword [ebp - 0x844], ecx
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x4184c4
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.MSVCRT.dll___p__environ]
mov eax, dword [eax]
mov dword [ebp - 0x830], eax
jmp 0x418613
mov ecx, dword [ebp - 0x830]
add ecx, 4
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x4187a3
push 0x5f
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41879e
cmp dword [ebp - 8], 0
je 0x41879e
mov edx, 0x4725c8
test edx, edx
je 0x41879e
mov eax, dword [ebp - 0x83c]
push eax
push str._LICENSE_FILE
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x41879e
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x4186b8
mov eax, 0x4725e8
test eax, eax
je 0x4186b8
mov ecx, dword [ebp - 0x83c]
add ecx, 2
push ecx
push 0x4725f8
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x41879e
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x83c]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x41879e
mov eax, dword [ebp - 0x844]
cmp eax, dword [ebp - 0x874]
jbe 0x4186f3
mov ecx, dword [ebp - 0x844]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x844]
add edx, 1
mov dword [ebp - 0x844], edx
cmp dword [ebp + 0xc], 0
jne 0x41873b
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x83c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x41871b
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x418726
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x418705
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x418781
mov edx, dword [ebp - 0x830]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
add eax, dword [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x844]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 0x830]
mov edx, dword [ebp - 8]
sub edx, dword [ecx]
add edx, dword [ebp - 0x83c]
mov eax, dword [ebp - 0x844]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x844]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x844]
add edx, eax
mov dword [ebp - 0x844], edx
jmp 0x418604
cmp dword [ebp - 4], 0
je 0x4187b5
mov eax, dword [ebp - 4]
push eax
call fcn.0041ac76
add esp, 4
mov eax, dword [ebp - 0x874]
pop edi
mov esp, ebp
pop ebp
ret