Function at 0x476dcd
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x49aa08
call fcn.00497cb0
sub esp, 0x3d8
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARECat_SoftServ_UDomainsDomainList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x477015
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3e4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1f0]
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xc8
mov dword [ebp - 0x10], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x47700c
push esi
push edi
mov edi, dword [sym.imp.MSVCR71.dll_atoi]
lea eax, [ebp - 0x1f0]
push eax
call edi
mov esi, eax
cmp esi, ebx
pop ecx
jle 0x476fcd
cmp dword [ebp - 0x10], ebx
je 0x476fcd
lea eax, [ebp - 0x104]
push eax
call fcn.00402b56
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x3e4]
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.00483361
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 4], 2
call fcn.0048323b
pop ecx
pop ecx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.004835c3
or dword [ebp - 0x40], 0xffffffff
push 2
mov dword [ebp - 0x44], esi
pop esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x48], 1
call fcn.00402f23
cmp eax, 1
jb 0x476eeb
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
call dword [eax + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00402f23
cmp eax, esi
jb 0x476f0d
mov eax, dword [ebp - 0x28]
add eax, 0x24
push eax
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
call dword [eax + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00402f23
cmp eax, 3
jb 0x476f34
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x64], 0x10
jb 0x476f28
mov eax, dword [eax + 0x50]
jmp 0x476f2b
add eax, 0x50
push eax
call edi
pop ecx
mov dword [ebp - 0x34], eax
jmp 0x476f3b
mov dword [ebp - 0x34], 0x15
lea ecx, [ebp - 0x2c]
call fcn.00402f23
cmp eax, 4
jb 0x476f5e
mov eax, dword [ebp - 0x28]
add eax, 0x6c
push eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb8]
call dword [eax + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00402f23
cmp eax, 5
jb 0x476fa0
mov eax, dword [ebp - 0x28]
add eax, 0x90
cmp dword [eax + 0x1c], 0x10
jb 0x476f7e
mov eax, dword [eax + 8]
jmp 0x476f81
add eax, 8
push eax
call edi
sub eax, ebx
pop ecx
je 0x476f9d
dec eax
je 0x476f94
dec eax
jne 0x476f9d
mov dword [ebp - 0x4c], esi
jmp 0x476fa0
mov dword [ebp - 0x4c], 1
jmp 0x476fa0
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 8]
add eax, 0x48
call fcn.0047b86e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004030d1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x104]
push eax
call fcn.00402bb0
inc dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3e4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0xc8
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x476e45
pop edi
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4