Function at 0x422dbc
Capabilities:
Act as tcp client
Check if file exists
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get file attributes
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x422dc5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a10
mov eax, dword [ebp - 8]
call fcn.00404a10
mov eax, dword [ebp - 0xc]
call fcn.00404a10
mov eax, dword [ebp + 0x10]
call fcn.00404a10
mov eax, dword [ebp + 0xc]
call fcn.00404a10
mov eax, dword [ebp + 8]
call fcn.00404a10
xor eax, eax
push ebp
push 0x4232a2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x423265
cmp dword [ebp + 8], 0
jne 0x422e43
lea edx, [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.00422128
cmp dword [ebp + 8], 0
je 0x42325f
mov eax, dword [ebp + 8]
call fcn.00404a20
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e7b
mov eax, dword [ebp + 8]
call fcn.00404a20
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x422e7b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x42325f
mov word [ebp - 0x2c], 2
mov eax, dword [ebp + 0x14]
mov ax, word [eax + 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], edi
mov byte [ebp - 0xd], 0
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x42325f
xor ecx, ecx
mov edx, 0x4232bc
mov eax, esi
call fcn.00422524
test al, al
je 0x42325f
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x34]
call fcn.0041d988
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x4232c8
call fcn.0040486c
mov edx, dword [ebp - 0x30]
mov ecx, 0x4232d8
mov eax, esi
call fcn.004227b8
test al, al
jne 0x422f2b
push 0
lea eax, [ebp - 0x3c]
call fcn.0041d988
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x4232e4
call fcn.0040486c
mov edx, dword [ebp - 0x38]
mov ecx, 0x4232d8
mov eax, esi
call fcn.004227b8
test al, al
je 0x42325f
cmp dword [ebp - 4], 0
jne 0x422f3c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004045f8
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
jne 0x422f4e
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0xc], 0
je 0x422fc1
cmp byte [ebp - 0xd], 0
je 0x42324a
push 0
mov ecx, 0x4232f4
mov edx, 0x423300
mov eax, esi
call fcn.004227b8
test al, al
je 0x42324a
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x10]
call fcn.0041465c
mov edx, dword [ebp - 0x40]
mov ecx, 0x4232f4
mov eax, esi
call fcn.004227b8
test al, al
je 0x42324a
push 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
call fcn.0041465c
mov edx, dword [ebp - 0x44]
mov ecx, 0x423314
mov eax, esi
call fcn.004227b8
test al, al
je 0x42324a
push 0
lea ecx, [ebp - 0x4c]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041fb00
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x423320
call fcn.0040486c
mov edx, dword [ebp - 0x48]
mov ecx, 0x4232d8
mov eax, esi
call fcn.004227b8
test al, al
je 0x42324a
mov byte [ebp - 0x19], 0
lea eax, [ebp - 8]
call fcn.0041fabc
mov edi, eax
test edi, edi
jle 0x42305b
mov dword [ebp - 0x14], 1
push 0
lea eax, [ebp - 0x58]
push eax
mov cl, 0x2c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408be0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
xor edx, edx
call fcn.0041fb00
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x423334
call fcn.0040486c
mov edx, dword [ebp - 0x50]
mov ecx, 0x4232d8
mov eax, esi
call fcn.004227b8
or al, byte [ebp - 0x19]
mov byte [ebp - 0x19], al
inc dword [ebp - 0x14]
dec edi
jne 0x423010
cmp byte [ebp - 0x19], 0
je 0x42324a
cmp dword [ebp - 0xc], 0
jne 0x423075
cmp dword [ebp + 0x10], 0
je 0x423235
push 0
lea eax, [ebp + 0x10]
mov ecx, 0x423348
mov edx, 0x423358
call fcn.00407b78
push 0x423368
lea eax, [ebp - 0x5c]
push eax
mov cl, 0x3d
mov edx, 0x486acc
mov eax, dword [ebp - 0xc]
call fcn.0042136c
push dword [ebp - 0x5c]
push 0x423380
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048e0
push 0
mov ecx, 0x42338c
mov edx, 0x423398
mov eax, esi
call fcn.004227b8
test al, al
je 0x42324a
push 0x4233a8
lea ecx, [ebp - 0x64]
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041fb00
push dword [ebp - 0x64]
push 0x4233b8
push 0x4233c4
lea ecx, [ebp - 0x68]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0041fb00
push dword [ebp - 0x68]
push 0x4233b8
push 0x4233d4
push dword [ebp - 0xc]
push 0x4233b8
push 0x4233e8
lea eax, [ebp - 0x6c]
call fcn.00422c04
push dword [ebp - 0x6c]
push 0x4233b8
push 0x4233f8
lea eax, [ebp - 0x70]
call fcn.00422d24
push dword [ebp - 0x70]
push 0x4233b8
lea eax, [ebp - 0x60]
mov edx, 0xf
call fcn.004048e0
mov edx, dword [ebp - 0x60]
mov eax, esi
call fcn.0042248c
mov ebx, eax
test bl, bl
je 0x42321e
lea eax, [ebp + 0xc]
mov dl, 0x7c
call fcn.004089ac
cmp dword [ebp + 0xc], 0
je 0x423202
push 0x423410
push dword [ebp + 0x10]
push 0x4233b8
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.004048e0
mov edx, dword [ebp - 0x74]
mov eax, esi
call fcn.0042248c
mov ebx, eax
test bl, bl
je 0x4231ee
mov dl, 0x7c
mov eax, dword [ebp + 0xc]
call fcn.00408b6c
mov edi, eax
test edi, edi
jle 0x4231ee
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x18]
push eax
mov cl, 0x7c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
call fcn.00408be0
mov eax, dword [ebp - 0x18]
call fcn.00404a20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4231e8
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00422860
test al, al
jne 0x4231e8
xor ebx, ebx
jmp 0x4231ee
inc dword [ebp - 0x14]
dec edi
jne 0x4231b2
test bl, bl
je 0x42321e
mov edx, 0x42351c
mov eax, esi
call fcn.0042248c
mov ebx, eax
jmp 0x42321e
lea eax, [ebp - 0x78]
mov ecx, dword [ebp + 0x10]
mov edx, 0x4233b8
call fcn.0040486c
mov edx, dword [ebp - 0x78]
mov eax, esi
call fcn.0042248c
mov ebx, eax
push 0
mov ecx, 0x4232d8
mov edx, 0x423548
mov eax, esi
call fcn.004227b8
and bl, al
jmp 0x42324a
push 0
mov ecx, 0x4232d8
mov edx, 0x423554
mov eax, esi
call fcn.004227b8
mov ebx, eax
push 0
mov ecx, 0x423564
mov edx, 0x423570
mov eax, esi
call fcn.004227b8
and bl, al
push esi
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4232a9
lea eax, [ebp - 0x78]
mov edx, 0x13
call fcn.00404584
lea eax, [ebp - 0x18]
call fcn.00404560
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404584
lea eax, [ebp + 8]
mov edx, 3
call fcn.00404584
ret