Function at 0x475960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b43f5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.00476600
mov dword [0x4e4d1c], eax
mov bl, 1
mov byte [eax + 0x15], bl
mov eax, dword [0x4e4d1c]
mov dword [eax + 4], eax
mov eax, dword [0x4e4d1c]
mov dword [eax], eax
mov eax, dword [0x4e4d1c]
mov dword [eax + 8], eax
xor eax, eax
mov dword [0x4e4d20], eax
push connect
push ecx
mov dword [esp + 0x40], eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, 0x4cfb88
call fcn.00401400
lea edi, [esp + 0x24]
call fcn.00476790
add esp, 8
mov esi, eax
mov byte [esp + 0x38], bl
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401270
mov ecx, dword [esi + 4]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
lea ebx, [esp + 0x14]
lea edi, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.00475c50
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x475a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475a51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push connect
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, str.hkcu
call fcn.00401400
lea edi, [esp + 0x24]
call fcn.00476790
add esp, 8
mov esi, eax
mov byte [esp + 0x38], 3
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401270
mov edx, dword [esi + 4]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
lea ebx, [esp + 0x14]
lea edi, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.00475c50
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push reloc.WS2_32.dll_bind
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, str.hklm
call fcn.00401400
lea edi, [esp + 0x24]
call fcn.00476790
add esp, 8
mov esi, eax
mov byte [esp + 0x38], 5
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401270
mov edx, dword [esi + 4]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
lea ebx, [esp + 0x14]
lea edi, [esp + 0x24]
mov byte [esp + 0x38], 6
call fcn.00475c50
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475b85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push reloc.WS2_32.dll_closesocket
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, str.hkus
call fcn.00401400
lea edi, [esp + 0x24]
call fcn.00476790
add esp, 8
mov esi, eax
mov byte [esp + 0x38], 7
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401270
mov edx, dword [esi + 4]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
lea ebx, [esp + 0x14]
lea edi, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.00475c50
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475bfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e4d18
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret