Function at 0x448ba8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x61
push 0
push 0
dec ecx
jne 0x448bb1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x448bcb
add esp, 0xfffffff0
call fcn.004049a0
mov edi, ecx
mov byte [ebp - 0xd], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x44934e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0040448c
lea eax, [ebp - 0x1bc]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea eax, [ebx + 4]
mov edx, edi
call fcn.00406fac
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x50], esi
inc esi
je 0x4492bc
mov eax, edi
call fcn.00406358
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x448c47
mov eax, edi
call fcn.00406358
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x448c47
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x44928c
cmp word [ebp + 0x18], 0
jne 0x448c85
cmp byte [ebp + 0x14], 0
je 0x448c65
mov word [ebp + 0x18], 0x1d1
jmp 0x448c85
cmp byte [ebp + 0x10], 0
je 0x448c7f
cmp dword [ebp + 0xc], 0
jne 0x448c77
cmp dword [ebp + 8], 0
je 0x448c7f
mov word [ebp + 0x18], 0x24b
jmp 0x448c85
mov word [ebp + 0x18], 0x19
mov word [ebp - 0x2c], 2
movzx eax, word [ebp + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], esi
mov esi, 0x10000
mov dword [ebx + 0x74], esi
push 4
push 0x1000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x78], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_connect
mov dword [ebp - 0x2c0], 1
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x2bc], eax
mov eax, dword [0x7015d4]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c0]
push eax
push 0
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x44927a
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_ioctlsocket
cmp byte [ebp + 0x14], 0
je 0x448d48
mov eax, ebx
call fcn.00449644
test al, al
je 0x449268
cmp dword [0x7015d0], 0
je 0x448d61
lea eax, [ebp - 0xc]
mov edx, dword [0x7015d0]
call fcn.00405c48
jmp 0x448d7f
lea eax, [ebp - 0x2c4]
call fcn.00436e18
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.00406fd4
lea eax, [ebp - 4]
call fcn.00405b98
mov ecx, eax
mov edx, 0x449388
mov eax, ebx
call fcn.0044a050
test al, al
je 0x449204
lea eax, [ebp - 4]
call fcn.00405b98
push eax
lea eax, [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov edx, 0x449398
call fcn.00406058
mov edx, dword [ebp - 0x2c8]
mov ecx, 0x4493ac
mov eax, ebx
call fcn.00449ecc
test al, al
jne 0x448e05
lea eax, [ebp - 4]
call fcn.00405b98
push eax
lea eax, [ebp - 0x2cc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4493bc
call fcn.00406058
mov edx, dword [ebp - 0x2cc]
mov ecx, 0x4493ac
mov eax, ebx
call fcn.00449ecc
test al, al
je 0x449204
mov byte [ebx + 0x88], 1
cmp byte [ebp + 0x14], 0
jne 0x448e52
push 0x7fffffff
mov esi, dword [0x722060]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x4493d0
call esi
test eax, eax
jne 0x448e56
push 0x7fffffff
mov esi, dword [0x722060]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x4493ec
call esi
test eax, eax
jne 0x448e56
xor eax, eax
jmp 0x448e58
mov al, 1
mov byte [ebx + 0x8a], al
cmp byte [ebx + 0x8a], 0
je 0x448eb3
cmp byte [ebp + 0x10], 0
jne 0x448eb7
cmp dword [ebp + 0xc], 0
je 0x448eb3
push 0x7fffffff
mov esi, dword [0x722060]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x449408
call esi
test eax, eax
jne 0x448eb3
push 0x7fffffff
mov esi, dword [0x722060]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x449420
call esi
test eax, eax
je 0x448eb7
xor eax, eax
jmp 0x448eb9
mov al, 1
mov byte [ebx + 0x8b], al
cmp byte [ebx + 0x8b], 0
je 0x448f65
lea eax, [ebp - 4]
call fcn.00405b98
push eax
mov ecx, 0x449388
mov edx, 0x449438
mov eax, ebx
call fcn.00449ecc
test al, al
je 0x44917f
mov eax, ebx
call fcn.00449644
test al, al
je 0x44917f
lea eax, [ebp - 4]
call fcn.00405b98
push eax
lea eax, [ebp - 0x2d0]
mov ecx, dword [ebp - 0xc]
mov edx, 0x449398
call fcn.00406058
mov edx, dword [ebp - 0x2d0]
mov ecx, 0x4493ac
mov eax, ebx
call fcn.00449ecc
test al, al
jne 0x448f65
lea eax, [ebp - 8]
call fcn.00405b98
push eax
lea eax, [ebp - 0x2d4]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4493bc
call fcn.00406058
mov edx, dword [ebp - 0x2d4]
mov ecx, 0x4493ac
mov eax, ebx
call fcn.00449ecc
test al, al
je 0x44917f
mov byte [ebx + 0x8c], 1
mov byte [ebx + 0x8e], 1
push 0
mov esi, dword [0x7223a4]
mov esi, dword [esi]
lea eax, [ebp - 4]
mov ecx, 0x449450
mov edx, 0x449460
call esi
push 0
mov esi, dword [0x7223a4]
mov esi, dword [esi]
lea eax, [ebp - 4]
mov ecx, 0x449450
mov edx, 0x449470
call esi
push 0x7fffffff
mov esi, dword [0x722060]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x449480
call esi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4492bc
mov ecx, dword [ebp - 0x14]
inc ecx
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040643c
push 0x7fffffff
mov esi, dword [0x722328]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x449498
call esi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x449014
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 0x14]
call fcn.0040643c
push 0x7fffffff
lea eax, [ebp - 0x2d8]
mov ecx, 0x449450
mov edx, dword [ebp - 4]
call fcn.00406058
mov edx, dword [ebp - 0x2d8]
mov esi, dword [0x722060]
mov esi, dword [esi]
mov ecx, 1
mov eax, 0x4494a8
call esi
test eax, eax
jle 0x4492bc
mov byte [ebx + 0x8d], 1
cmp dword [ebp + 0xc], 0
jne 0x449065
cmp dword [ebp + 8], 0
je 0x449103
lea eax, [ebp - 4]
call fcn.00405b98
push eax
mov ecx, 0x4494bc
mov edx, 0x4494cc
mov eax, ebx
call fcn.00449ecc
test al, al
je 0x4490ff
lea eax, [ebp - 4]
call fcn.00405b98
push eax
lea edx, [ebp - 0x2e0]
mov eax, dword [ebp + 0xc]
call fcn.0040ffd8
mov eax, dword [ebp - 0x2e0]
lea edx, [ebp - 0x2dc]
call fcn.0041d0a0
mov edx, dword [ebp - 0x2dc]
mov ecx, 0x4494bc
mov eax, ebx
call fcn.00449ecc
test al, al
je 0x4490ff
lea eax, [ebp - 4]
call fcn.00405b98
push eax
lea edx, [ebp - 0x2e8]
mov eax, dword [ebp + 8]
call fcn.0040ffd8
mov eax, dword [ebp - 0x2e8]
lea edx, [ebp - 0x2e4]
call fcn.0041d0a0
mov edx, dword [ebp - 0x2e4]
mov ecx, 0x4494e4
mov eax, ebx
call fcn.00449ecc
test al, al
jne 0x449103
xor eax, eax
jmp 0x449105
mov al, 1
mov byte [ebx + 0x8e], al
cmp byte [ebx + 0x8e], 0
jne 0x4492bc
push 0x4494f4
lea eax, [ebp - 0x2f4]
push eax
mov esi, dword [0x72198c]
mov esi, dword [esi]
mov cl, 0xa
mov edx, 1
mov eax, dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x2f4]
mov esi, dword [0x722224]
mov esi, dword [esi]
lea edx, [ebp - 0x2f0]
call esi
mov edx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2ec]
call fcn.00406fac
push dword [ebp - 0x2ec]
push 0x449530
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.00407348
jmp 0x4492bc
cmp byte [ebx + 0x89], 0
jne 0x44919d
lea eax, [ebx + 0x94]
mov edx, 0x449540
call fcn.00406d80
jmp 0x4492bc
push 0x449564
lea eax, [ebp - 0x300]
push eax
mov esi, dword [0x72198c]
mov esi, dword [esi]
mov cl, 0xa
mov edx, 1
mov eax, dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x300]
mov esi, dword [0x722224]
mov esi, dword [esi]
lea edx, [ebp - 0x2fc]
call esi
mov edx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x2f8]
call fcn.00406fac
push dword [ebp - 0x2f8]
push 0x449530
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.00407348
jmp 0x4492bc
push 0x449594
lea eax, [ebp - 0x30c]
push eax
mov esi, dword [0x72198c]
mov esi, dword [esi]
mov cl, 0xa
mov edx, 1
mov eax, dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x30c]
mov esi, dword [0x722224]
mov esi, dword [esi]
lea edx, [ebp - 0x308]
call esi
mov edx, dword [ebp - 0x308]
lea eax, [ebp - 0x304]
call fcn.00406fac
push dword [ebp - 0x304]
push 0x449530
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.00407348
jmp 0x4492bc
lea eax, [ebx + 0x94]
mov edx, 0x4495bc
call fcn.00406d80
jmp 0x4492bc
lea eax, [ebx + 0x94]
mov edx, 0x4495e0
call fcn.00406d80
jmp 0x4492bc
push 0x44961c
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x310]
call fcn.0040f9ec
push dword [ebp - 0x310]
push 0x449530
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.00407348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449358
lea eax, [ebp - 0x310]
call fcn.00406d70
lea eax, [ebp - 0x30c]
mov edx, 2
call fcn.00405bbc
lea eax, [ebp - 0x304]
call fcn.00406d70
lea eax, [ebp - 0x300]
mov edx, 2
call fcn.00405bbc
lea eax, [ebp - 0x2f8]
call fcn.00406d70
lea eax, [ebp - 0x2f4]
mov edx, 2
call fcn.00405bbc
lea eax, [ebp - 0x2ec]
call fcn.00406d70
lea eax, [ebp - 0x2e8]
mov edx, 9
call fcn.00405bbc
lea eax, [ebp - 0x2c4]
call fcn.00406d70
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405bbc
ret