Function at 0x4828c6
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports
Set socket configuration
Terminate process

Disassembly:
sub esp, 0x44
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push esi
mov dword [esp + 0x24], eax
mov ebp, edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push edi
mov dword [esp + 0x2c], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x14], ecx
inc eax
mov dword [esp + 0x24], ebp
push 0x1c
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
cmp word [ebx], ax
jne 0x48291a
xor eax, eax
jmp 0x482b51
push 0x64
pop ecx
call fcn.004879e1
mov ecx, dword [esp + 0x60]
mov esi, eax
mov eax, dword [esp + 0x14]
push 0x28c
push 0x7556ec
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x6c]
shl eax, 2
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x74]
push 1
push eax
mov dword [esi], 0x482282
mov dword [esi + 4], 0x4822f6
mov dword [esi + 8], 0x4824cd
mov dword [esi + 0x48], ecx
mov dword [esi + 0x20], ebp
call fcn.005f5ba0
add esp, 0x10
mov dword [esi + 0x24], eax
test eax, eax
jne 0x4829b5
push 1
push esi
call fcn.005f5a60
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfd
push 0x28d
mov edx, 0x755714
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
jmp 0x482913
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
xor eax, eax
inc eax
cmp word [ebx], ax
jne 0x4829ef
push edi
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
jne 0x482a38
xor ebx, ebx
inc ebx
push ebx
push dword [esi + 0x24]
call fcn.005f5a60
push ebx
push esi
call fcn.005f5a60
add esp, 0x10
jmp 0x482913
movzx eax, word [ebx + 2]
push eax
call ebp
mov word [esi + 0x30], ax
mov word [esi + 0x32], ax
xor eax, eax
push 6
inc eax
push eax
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
je 0x4829d4
push 0x17
pop ecx
cmp word [ebx], cx
jne 0x482a38
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x1b
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x482b64
push 4
lea eax, [esp + 0x20]
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x482a6a
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2a7
mov edx, str...microstackILibAsyncServerSocket.c
jmp 0x482b76
push 0x10
pop eax
push 0x17
pop ecx
cmp word [ebx], cx
push 0x1c
pop ecx
cmove eax, ecx
push eax
push ebx
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x482a96
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4829d4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_getsockname]
xor eax, eax
inc eax
cmp word [ebx], ax
je 0x482abe
push 0x17
pop eax
push dword [esp + 0x36]
call ebp
mov word [esi + 0x30], ax
mov ebx, dword [esp + 0x24]
test ebx, ebx
jle 0x482b0f
mov ebp, dword [esp + 0x28]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, ebp
push 0x4825cb
push 0x482589
push 0x482557
push 0x482503
call fcn.00482d69
mov ecx, dword [esi + 0x24]
add esp, 0x14
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x482b0a
mov dword [eax + 0x1d4], 0x4825ea
inc edi
cmp edi, ebx
jl 0x482aca
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
inc ebx
push 0x8004667e
mov dword [esp + 0x38], ebx
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 4
push dword [esi + 0x2c]
mov dword [esi + 0x34], ebx
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, str.ILibAsyncServerSocket
call fcn.004873e9
mov ecx, dword [esp + 0x14]
mov edx, esi
mov dword [esi + 0x18], eax
call fcn.00488084
mov eax, esi
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x44
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x29c
mov edx, 0x75573c
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push 0xfd
call fcn.005d0820
int3