Function at 0x40af30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [0x4d4df0], 0
cmp dword [ebp + 8], 3
jge 0x40af60
call fcn.0040e382
mov dword [0x4d4df0], 0xffffffff
or eax, 0xffffffff
jmp 0x40b286
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0xa4], eax
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.00446380
add esp, 4
mov edx, dword [0x4d4ddc]
mov eax, dword [edx + 0xd8]
mov dword [ebp - 4], eax
jmp 0x40afa1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x370]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x40afd7
mov eax, dword [ebp - 4]
add eax, 0x220
test eax, eax
je 0x40afd5
cmp dword [ebp - 0xc], 0
je 0x40afd5
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x220
push edx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40afd5
jmp 0x40afd7
jmp 0x40af95
cmp dword [ebp - 4], 0
jne 0x40aff3
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.0044623e
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b049
mov edx, dword [0x4d4ddc]
mov dword [edx + 0x80], 0xfffffffb
mov eax, dword [0x4d4ddc]
push eax
call fcn.0041a960
add esp, 4
push eax
mov ecx, dword [0x4dc6f4]
push ecx
push str._s:_cannot_lookup_specified_feature:__s_n
mov edx, dword [0x4dc70c]
push edx
call fcn.004aefac
add esp, 0x10
mov eax, dword [0x4d4ddc]
mov ecx, dword [eax + 0x80]
mov dword [0x4d4df0], ecx
jmp 0x40b281
mov edx, dword [0x4d4ddc]
mov eax, dword [edx + 0xcc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x220
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x260]
push ecx
mov edx, dword [0x4d4ddc]
push edx
call fcn.0042a470
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40b248
cmp dword [ebp + 0x10], 6
jne 0x40b098
mov byte [ebp - 0xa0], 0x77
jmp 0x40b0b4
cmp dword [ebp + 0x10], 7
jne 0x40b0a7
mov byte [ebp - 0xa0], 0x5e
jmp 0x40b0b4
cmp dword [ebp + 0x10], 0xc
jne 0x40b0b4
mov byte [ebp - 0xa0], 0x7b
push 0x91
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x9e]
push ecx
call fcn.00427f67
add esp, 0xc
push 1
push 4
lea edx, [ebp - 0xa0]
push edx
call fcn.004460f0
add esp, 0xc
push 0
push 0x93
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.WSOCK32.dll_send
mov edx, dword [0x4d4ddc]
mov eax, dword [edx + 0xcc]
xor ecx, ecx
mov cx, word [eax + 0x44]
cmp ecx, 8
jl 0x40b235
mov edx, dword [0x4d4ddc]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xac], 0
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [0x4d4ddc]
push edx
call fcn.00433b50
add esp, 8
mov word [ebp - 0xac], ax
mov eax, dword [ebp - 0xac]
and eax, 0xffff
test eax, eax
jne 0x40b19f
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.0041a960
add esp, 4
push eax
push str.Error:___s_n
mov edx, dword [0x4dc70c]
push edx
call fcn.004aefac
add esp, 0xc
mov eax, dword [0x4d4ddc]
mov ecx, dword [eax + 0x80]
mov dword [0x4d4df0], ecx
jmp 0x40b235
mov edx, dword [ebp - 0xac]
and edx, 0xffff
cmp edx, 0x4f
jne 0x40b1c3
mov eax, dword [0x4d4ddc]
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [eax + 0x80]
je 0x40b235
mov edx, dword [ebp - 0xb4]
add edx, 0xe
mov dword [ebp - 0xb0], edx
push str.Server_cannot_switch_log_files__see_debug_log_for_further_information_n
mov eax, dword [0x4dc70c]
push eax
call fcn.004aefac
add esp, 8
mov dword [0x4d4df0], 0xffffffff
cmp dword [ebp - 0xb0], 0
je 0x40b220
mov ecx, dword [ebp - 0xb0]
movsx edx, byte [ecx]
test edx, edx
je 0x40b220
mov eax, dword [ebp - 0xb0]
push eax
push str.Server_error:___s_
mov ecx, dword [0x4dc70c]
push ecx
call fcn.004aefac
add esp, 0xc
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [0x4d4ddc]
push eax
call fcn.004338fe
add esp, 8
push 1
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.004260e0
add esp, 8
jmp 0x40b281
mov edx, dword [0x4d4ddc]
push edx
call fcn.0041a960
add esp, 4
push eax
mov eax, dword [ebp - 0xc]
push eax
push str.Cant_connect_to_daemon_for__s:__s_n
mov ecx, dword [0x4dc70c]
push ecx
call fcn.004aefac
add esp, 0x10
mov edx, dword [0x4d4ddc]
mov eax, dword [edx + 0x80]
mov dword [0x4d4df0], eax
mov eax, dword [0x4d4df0]
mov esp, ebp
pop ebp
ret