Function at 0x4490b0
Capabilities:
Access peb ldr_data
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x4d2178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x504530]
push ebx
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x30], eax
push 1
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.004a2dfe
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esi + 0xc]
or edi, 0xffffffff
cmp eax, edi
jne 0x44910a
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x44911e
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], edi
call fcn.004a2da4
xor eax, eax
jmp 0x449304
mov eax, dword [0x513e30]
mov ecx, dword [0x513e28]
mov edx, dword [0x513e2c]
mov dword [esp + 0x28], eax
cmp dword [0x534118], ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [0x513e34]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
jne 0x449151
mov dword [esp + 0x24], ebx
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
push ebp
mov eax, dword [esi + 0xc]
push 0x10
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ebp, eax
neg ebp
sbb ebp, ebp
inc ebp
jne 0x449226
mov ecx, dword [esp + 0x28]
push ecx
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00409e90
mov byte [esp + 0x40], 1
mov edx, dword [esp + 0x26]
mov esi, dword [eax]
push edx
call edi
movzx eax, ax
push eax
push esi
push 0x3ec1
push 0x534540
mov eax, 2
call fcn.00478c60
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4491de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x44920c
call fcn.004ad4a1
cdq
mov ecx, 0xc350
idiv ecx
add edx, 0x2710
movzx eax, dx
push eax
call edi
mov word [esp + 0x26], ax
mov word [0x513e2a], ax
jmp 0x449214
mov dword [esp + 0x28], 0
inc esi
mov dword [esp + 0x14], esi
cmp esi, 5
mov esi, dword [esp + 0x48]
jl 0x449162
mov eax, dword [0x513e2c]
test eax, eax
jne 0x44924b
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x513e28
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test ebp, ebp
pop ebp
je 0x4492b6
mov ecx, dword [0x513e2c]
push ecx
call ebx
push eax
lea ecx, [esp + 0x10]
call fcn.00409e90
mov byte [esp + 0x3c], 2
mov esi, dword [eax]
xor edx, edx
mov dx, word [0x513e2a]
push edx
call edi
movzx eax, ax
push eax
push esi
push 0x3ec4
push 0x534540
xor eax, eax
call fcn.00478c60
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4492b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x44]
mov eax, dword [esi + 0x18]
push 8
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [esi + 0xc]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_listen]
push 0
push 0
push 0
push 0
push esi
push 0x4496c0
call fcn.004bf71e
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x14]
mov dword [esi + 0x10], edx
mov dword [esp + 0x3c], 0xffffffff
call fcn.004a2da4
mov eax, 1
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
call fcn.004ae38e
add esp, 0x34
ret 4