Function at 0x417678
Capabilities:
Create tcp socket
Create udp socket
Enumerate gui resources
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x417680
push ebx
push esi
push edi
mov eax, 0x4175d0
call fcn.00404b7c
mov ebx, 0x419a6c
xor eax, eax
push ebp
push 0x417a54
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x41a2ac
xor eax, eax
call fcn.004027b0
call fcn.0041435c
cmp dword [0x41a2e0], 0
je 0x417711
lea eax, [ebp - 0x118]
call fcn.00408b2c
mov eax, dword [ebp - 0x118]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x114]
call fcn.004034d8
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x14]
call fcn.00403f78
push dword [ebp - 0x14]
push 0x417a6c
push dword [0x41a2e0]
mov eax, 0x419a8c
mov edx, 3
call fcn.0040405c
jmp 0x417749
lea eax, [ebp - 0x120]
call fcn.00408b2c
mov eax, dword [ebp - 0x120]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x11c]
call fcn.00403f48
mov edx, dword [ebp - 0x11c]
mov eax, 0x419a8c
mov ecx, 0x417a78
call fcn.00403fe8
cmp dword [0x41a2e0], 0
je 0x4177a8
lea eax, [ebp - 0x128]
call fcn.00408b2c
mov eax, dword [ebp - 0x128]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x114]
call fcn.004034d8
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x124]
call fcn.00403f78
push dword [ebp - 0x124]
push 0x417a6c
push dword [0x41a2e4]
mov eax, 0x419a90
mov edx, 3
call fcn.0040405c
jmp 0x4177e0
lea eax, [ebp - 0x130]
call fcn.00408b2c
mov eax, dword [ebp - 0x130]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x12c]
call fcn.00403f48
mov edx, dword [ebp - 0x12c]
mov eax, 0x419a90
mov ecx, 0x417a90
call fcn.00403fe8
call fcn.004123ac
call fcn.004160d8
call fcn.00417090
lea edx, [ebp - 0x138]
xor eax, eax
call fcn.004027b0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004082f8
mov eax, dword [ebp - 0x134]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [0x419a8c]
call fcn.004082f8
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004040e8
jne 0x4179eb
mov dword [0x41a334], 1
push 0
push 0
push 0x4197f4
mov ecx, 0x415854
xor edx, edx
xor eax, eax
call fcn.00403dd4
push 0
push 0
push 0x4197f4
mov ecx, 0x415430
xor edx, edx
xor eax, eax
call fcn.00403dd4
mov dl, 1
mov al, 1
call fcn.00404f48
mov esi, eax
push 0x4197f8
push esi
call sub.wsock32.dll_WSAStartup
mov edi, eax
test edi, edi
je 0x4178b1
push 0
push 0x417aa0
lea edx, [ebp - 0x140]
mov eax, edi
call fcn.00408404
mov eax, dword [ebp - 0x140]
call fcn.0040419c
push eax
push 0
call fcn.00404ec8
mov eax, esi
cmp al, byte [0x4197f8]
je 0x4178dd
mov ax, word [0x4197f8]
call fcn.00404f5c
push eax
mov eax, esi
call fcn.00404f5c
pop edx
cmp dl, al
je 0x4178dd
call fcn.00403cac
call sub.wsock32.dll_WSACleanup
mov edx, dword [0x419a50]
mov eax, 0x63d3
call fcn.0040d4f4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x419988], eax
cmp dword [0x419988], 0xffffffff
je 0x41794c
mov word [0x4199ac], 2
cmp dword [0x41a2ec], 0
je 0x417930
mov eax, dword [0x41a2ec]
call fcn.00408420
push eax
call sub.wsock32.dll_htons
mov word [0x4199ae], ax
jmp 0x417940
push 0x320
call sub.wsock32.dll_htons
mov word [0x4199ae], ax
push 0
call sub.wsock32.dll_htonl
mov dword [0x4199b0], eax
push 0x10
push 0x4199ac
mov eax, dword [0x419988]
push eax
call sub.wsock32.dll_bind
inc eax
push 3
mov eax, dword [0x419988]
push eax
call sub.wsock32.dll_listen
inc ecx
push 0x29
push 0x401
mov eax, dword [0x419a50]
push eax
mov eax, dword [0x419988]
push eax
call sub.wsock32.dll_WSAAsyncSelect
inc eax
xor eax, eax
mov dword [0x419a98], eax
push 0
push 0
push 0x4197f4
mov ecx, 0x41525c
xor edx, edx
xor eax, eax
call fcn.00403dd4
push 0
push 0
push 0x4197f4
mov ecx, 0x415828
xor edx, edx
xor eax, eax
call fcn.00403dd4
push 0
push 0
push 0x4197f4
mov ecx, 0x4125c0
xor edx, edx
xor eax, eax
call fcn.00403dd4
push 0
push 0
push 0x4197f4
mov ecx, 0x4128a4
xor edx, edx
xor eax, eax
call fcn.00403dd4
jmp 0x417a1a
push 0x3e8
call sub.user32.dll_EnumWindows
push 0
push 0
push 0x4197f4
mov ecx, 0x4125c0
xor edx, edx
xor eax, eax
call fcn.00403dd4
jmp 0x417a1a
push ebx
call fcn.00404f28
push ebx
call fcn.00404e28
push 0
push 0
mov eax, dword [0x419a50]
push eax
push ebx
call fcn.00404e88
test eax, eax
jne 0x417a0e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a5b
lea eax, [ebp - 0x140]
mov edx, 0xb
call fcn.00403e3c
lea eax, [ebp - 0x14]
call fcn.00403e18
ret