Function at 0x472180
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56895e
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x40
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x210], 0
je 0x4721c8
mov eax, 1
jmp 0x47251b
cmp dword [0x5f9708], 0
jne 0x4721db
mov eax, 1
jmp 0x47251b
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x4721fb
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [0x5f9708]
jge 0x472434
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x42c
cmp dword [eax + 0x5ec674], 0
jne 0x47223d
mov esi, dword [ebp - 0x18]
imul esi, esi, 0x42c
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x5ec670], eax
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x42c
cmp dword [ecx + 0x5ec674], 1
jne 0x472270
mov esi, dword [ebp - 0x18]
imul esi, esi, 0x42c
push 1
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x5ec670], eax
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x42c
cmp dword [edx + 0x5ec674], 2
jne 0x4722a3
mov esi, dword [ebp - 0x18]
imul esi, esi, 0x42c
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x5ec670], eax
mov eax, 2
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x42c
movzx edx, word [ecx + 0x5eca94]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2a], ax
mov ecx, 0x5ec658
call fcn.00415f60
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00499e90
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.00412150
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
call fcn.00412130
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x42c
mov eax, dword [edx + 0x5ec670]
push eax
call dword [sym.imp.WS2_32.dll_bind]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47242f
push 2
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5ec670]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x42c
mov ecx, dword [eax + 0x5ec670]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x42c
mov dword [edx + 0x5ec670], 0xffffffff
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x42c
cmp dword [eax + 0x5ec674], 2
jne 0x47240f
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 0
jmp 0x472395
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jge 0x4723e5
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x42c
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5eca94]
cmp edx, dword [eax + 0x5eca94]
jne 0x4723e3
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x42c
cmp dword [eax + 0x5ec674], 2
jne 0x4723e3
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x42c
cmp dword [ecx + 0x5ec670], 0xffffffff
je 0x4723e3
jmp 0x4723e5
jmp 0x47238c
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jne 0x47240d
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x42c
mov ecx, dword [eax + 0x5eca94]
mov dword [ebp - 0x40], ecx
push 0x5b15cc
lea edx, [ebp - 0x40]
push edx
call fcn.005286d1
jmp 0x47242f
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x42c
mov ecx, dword [eax + 0x5eca94]
mov dword [ebp - 0x44], ecx
push 0x5b15cc
lea edx, [ebp - 0x44]
push edx
call fcn.005286d1
jmp 0x4721f2
jmp 0x47249b
mov dword [ebp - 4], 0xffffffff
jmp 0x4724a9
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x210], 1
mov dword [ebp - 0x18], 0
jmp 0x4724c8
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x5f9708]
jge 0x4724ed
push 5
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5ec670]
push edx
call dword [sym.imp.WS2_32.dll_listen]
jmp 0x4724bf
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x473c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x20c], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 4