Function at 0x49d7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1080
call fcn.00472970
mov eax, dword [0x541514]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1078], 0xd
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x3c], 0
push 0x27
push 0
lea eax, [ebp - 0x3b]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [ebp - 0x1070], 0
push 0x1000
push 0
lea ecx, [ebp - 0x106f]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
push 0
call fcn.0049df00
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
push 0x52d010
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49d9bd
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
lea ecx, [ebp - 0x107c]
push ecx
lea edx, [ebp - 0x1070]
push edx
push 0
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x49d9bd
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
push 0x52d030
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x49d9a7
lea eax, [ebp - 0x3c]
test eax, eax
je 0x49d96c
mov ecx, 0x52d040
test ecx, ecx
je 0x49d96c
push 0x52d050
lea edx, [ebp - 0x3c]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
je 0x49d9a7
cmp dword [ebp + 0xc], 0
je 0x49d986
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov dword [ebp - 0x1080], eax
jmp 0x49d992
mov ecx, dword [ebp - 0x107c]
mov dword [ebp - 0x1080], ecx
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x1080]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
jmp 0x49d8f8
mov ecx, dword [sym.imp.MSVCR80.dll__environ]
mov edx, dword [ecx]
mov dword [ebp - 0x64], edx
jmp 0x49d9d3
mov eax, dword [ebp - 0x64]
add eax, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
cmp dword [ecx], 0
je 0x49da93
push 0x5f
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49da8e
cmp dword [ebp - 0xc], 0
je 0x49da8e
mov ecx, 0x52d060
test ecx, ecx
je 0x49da8e
mov edx, dword [ebp - 0x1078]
push edx
push 0x52d070
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x49da8e
mov ecx, dword [ebp - 0x64]
cmp dword [ecx], 0
je 0x49da60
mov edx, 0x52d080
test edx, edx
je 0x49da60
mov eax, dword [ebp - 0x1078]
add eax, 2
push eax
push 0x52d090
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x49da8e
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1078]
movsx ecx, byte [eax]
cmp ecx, 0x3d
jne 0x49da8e
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x49d9ca
cmp dword [ebp - 0x50], 0
jne 0x49daa0
xor eax, eax
jmp 0x49dd49
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x10], 0
je 0x49dbc6
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
lea edx, [ebp - 0x107c]
push edx
lea eax, [ebp - 0x1070]
push eax
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x49dbbc
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
push 0x52d0a0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x49dba6
lea ecx, [ebp - 0x3c]
test ecx, ecx
je 0x49db52
mov edx, 0x52d0b0
test edx, edx
je 0x49db52
push 0x52d0c0
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
je 0x49dba6
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x54]
jbe 0x49db69
mov edx, dword [ebp - 0x5c]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp + 0xc], 0
je 0x49db81
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x49db94
lea eax, [ebp - 0x1070]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x5c]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
jmp 0x49dade
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [sym.imp.MSVCR80.dll__environ]
mov edx, dword [ecx]
mov dword [ebp - 0x64], edx
jmp 0x49dbdc
mov eax, dword [ebp - 0x64]
add eax, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
cmp dword [ecx], 0
je 0x49dd34
push 0x5f
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49dd2f
cmp dword [ebp - 0xc], 0
je 0x49dd2f
mov ecx, 0x52d0d0
test ecx, ecx
je 0x49dd2f
mov edx, dword [ebp - 0x1078]
push edx
push str._LICENSE_FILE
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x49dd2f
mov ecx, dword [ebp - 0x64]
cmp dword [ecx], 0
je 0x49dc75
mov edx, 0x52d0f0
test edx, edx
je 0x49dc75
mov eax, dword [ebp - 0x1078]
add eax, 2
push eax
push 0x52d100
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x49dd2f
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1078]
movsx ecx, byte [eax]
cmp ecx, 0x3d
jne 0x49dd2f
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 0x54]
jbe 0x49dca1
mov eax, dword [ebp - 0x5c]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
cmp dword [ebp + 0xc], 0
jne 0x49dce6
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x1078]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x3d
je 0x49dcc9
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jne 0x49dcd4
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x49dcb3
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x49dd1d
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx]
add edx, dword [ebp - 0x1078]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax]
add ecx, dword [ebp - 0x1078]
mov edx, dword [ebp - 0x5c]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0x5c]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
jmp 0x49dbd3
cmp dword [ebp - 0x60], 0
je 0x49dd46
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00496150
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047294a
mov esp, ebp
pop ebp
ret