Function at 0x4c5a90
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5bafc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x6653d0
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c5c6c
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push 0x6653c4
push edx
call ebp
test eax, eax
je 0x4c5b09
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4c5d48
mov ecx, dword [0x6754d4]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0059b10a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push ebx
push 0x6653c4
push edx
call ebp
test eax, eax
je 0x4c5b60
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059ad3d
xor al, al
jmp 0x4c5d48
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0059b12a
or edi, 0xffffffff
cmp eax, edi
je 0x4c5c4e
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00593782
cmp eax, edi
je 0x4c5c5f
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00593496
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0059b12a
inc eax
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.00593496
push 0x3a
lea ecx, [esp + 0x14]
call fcn.0059b12a
mov esi, eax
cmp esi, edi
je 0x4c5c5f
lea edx, [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.0059370a
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x2c], 1
call fcn.0059ae76
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0059ad3d
inc esi
lea ecx, [esp + 0x10]
push esi
push ebx
call fcn.00593496
push 0x3b
lea ecx, [esp + 0x14]
call fcn.0059b12a
cmp eax, edi
je 0x4c5c27
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.0059370a
mov dword [esp + 0x18], 1
mov byte [esp + 0x28], 2
jmp 0x4c5c2b
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x38]
push eax
call fcn.0059ae76
mov al, byte [esp + 0x18]
mov dword [esp + 0x28], ebx
test al, 1
je 0x4c5cfa
lea ecx, [esp + 0x34]
jmp 0x4c5cf5
push 0x3a
lea ecx, [esp + 0x14]
call fcn.0059b12a
mov esi, eax
cmp esi, edi
jne 0x4c5c73
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0059ad3d
xor al, al
jmp 0x4c5d48
lea ecx, [esp + 0x30]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0059370a
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x2c], 3
call fcn.0059ae76
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0059ad3d
inc esi
lea ecx, [esp + 0x10]
push esi
push ebx
call fcn.00593496
push 0x3b
lea ecx, [esp + 0x14]
call fcn.0059b12a
cmp eax, edi
je 0x4c5cd7
lea edx, [esp + 0x34]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0059370a
mov dword [esp + 0x18], 2
mov byte [esp + 0x28], 4
jmp 0x4c5cdb
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x38]
push eax
call fcn.0059ae76
mov al, byte [esp + 0x18]
mov dword [esp + 0x28], ebx
test al, 2
je 0x4c5cfa
lea ecx, [esp + 0x34]
call fcn.0059ad3d
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x4c5d2e
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push ebx
push 0x6653b8
push edx
mov dword [esi], ebx
mov dword [esp + 0x34], 4
call ebp
test eax, eax
jne 0x4c5d2e
mov eax, dword [esp + 0x34]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0059ad3d
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10