Function at 0x477af0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.0040a530
mov eax, dword [0x539a68]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1080], 0xd
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x1084], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x40], 0
push 0x27
push 0
lea eax, [ebp - 0x3f]
push eax
call fcn.004057a0
add esp, 0xc
mov byte [ebp - 0x1078], 0
push 0x1000
push 0
lea ecx, [ebp - 0x1077]
push ecx
call fcn.004057a0
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
call fcn.00478230
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x545b60
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x477ce0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
lea edx, [ebp - 0x1084]
push edx
lea eax, [ebp - 0x1078]
push eax
push 0
push 0
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x477ce0
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
push 0x545b80
lea eax, [ebp - 0x40]
push eax
call fcn.00444e00
add esp, 8
test eax, eax
je 0x477cca
lea ecx, [ebp - 0x40]
test ecx, ecx
je 0x477c8f
mov edx, 0x545b90
test edx, edx
je 0x477c8f
push 0x545ba0
lea eax, [ebp - 0x40]
push eax
call fcn.004046b0
add esp, 8
test eax, eax
je 0x477cca
cmp dword [ebp + 0xc], 0
je 0x477ca9
lea ecx, [ebp - 0x40]
push ecx
call fcn.004038b0
add esp, 4
mov dword [ebp - 0x1088], eax
jmp 0x477cb5
mov edx, dword [ebp - 0x1084]
mov dword [ebp - 0x1088], edx
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x1088]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
jmp 0x477c1c
mov edx, dword [ebp - 0x68]
mov dword [ebp - 8], edx
jmp 0x477cfc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x477dc1
lea edx, [ebp - 8]
mov dword [ebp - 0x70], edx
push 0x5f
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.0040b9d0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x477dbc
cmp dword [ebp - 0x10], 0
je 0x477dbc
mov edx, 0x545bb0
test edx, edx
je 0x477dbc
mov eax, dword [ebp - 0x1080]
push eax
push 0x545bc0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00408ea6
add esp, 0xc
test eax, eax
jne 0x477dbc
mov edx, dword [ebp - 0x70]
cmp dword [edx], 0
je 0x477d8e
mov eax, 0x545bd0
test eax, eax
je 0x477d8e
mov ecx, dword [ebp - 0x1080]
add ecx, 2
push ecx
push 0x545be0
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
call fcn.00408ea6
add esp, 0xc
test eax, eax
je 0x477dbc
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1080]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x477dbc
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.004038b0
add esp, 4
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
jmp 0x477ce8
cmp dword [ebp - 0x58], 0
jne 0x477dce
xor eax, eax
jmp 0x478090
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00462740
add esp, 8
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x14], 0
je 0x477ef3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
lea eax, [ebp - 0x1084]
push eax
lea ecx, [ebp - 0x1078]
push ecx
push 0
push 0
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x477ee9
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
push 0x545bf0
lea ecx, [ebp - 0x40]
push ecx
call fcn.00444e00
add esp, 8
test eax, eax
je 0x477ed3
lea edx, [ebp - 0x40]
test edx, edx
je 0x477e7f
mov eax, 0x545c00
test eax, eax
je 0x477e7f
push 0x545c10
lea ecx, [ebp - 0x40]
push ecx
call fcn.004046b0
add esp, 8
test eax, eax
je 0x477ed3
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x5c]
jbe 0x477e96
mov eax, dword [ebp - 0x64]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp + 0xc], 0
je 0x477eae
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.00443310
add esp, 8
jmp 0x477ec1
lea ecx, [ebp - 0x1078]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00443310
add esp, 8
mov eax, dword [ebp - 0x64]
push eax
call fcn.004038b0
add esp, 4
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
jmp 0x477e0c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 8], edx
jmp 0x477f0f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x47806b
lea edx, [ebp - 8]
mov dword [ebp - 0x70], edx
push 0x5f
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.0040b9d0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x478066
cmp dword [ebp - 0x10], 0
je 0x478066
mov edx, 0x545c20
test edx, edx
je 0x478066
mov eax, dword [ebp - 0x1080]
push eax
push str._LICENSE_FILE
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00408ea6
add esp, 0xc
test eax, eax
jne 0x478066
mov edx, dword [ebp - 0x70]
cmp dword [edx], 0
je 0x477fad
mov eax, 0x545c40
test eax, eax
je 0x477fad
mov ecx, dword [ebp - 0x1080]
add ecx, 2
push ecx
push 0x545c50
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
call fcn.00408ea6
add esp, 0xc
test eax, eax
je 0x478066
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1080]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x478066
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x5c]
jbe 0x477fd9
mov ecx, dword [ebp - 0x64]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
cmp dword [ebp + 0xc], 0
jne 0x47801e
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1080]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x478001
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x47800c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x477feb
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00443310
add esp, 8
jmp 0x478054
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x10]
sub eax, dword [edx]
add eax, dword [ebp - 0x1080]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.004436c0
add esp, 0xc
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx]
add edx, dword [ebp - 0x1080]
mov eax, dword [ebp - 0x64]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004038b0
add esp, 4
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
jmp 0x477efb
cmp dword [ebp - 0x6c], 0
je 0x47807d
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00462990
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x47808d
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040553d
mov esp, ebp
pop ebp
ret