Function at 0x431fa0
Capabilities:
Get socket status
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x449dde]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
jg 0x431fd2
mov eax, 0xfffffffc
jmp 0x4323f0
call fcn.00432400
mov dword [ebp - 0x10], 0
jmp 0x431fe9
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x449d96]
jge 0x432015
mov ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x449d9a]
cmp ecx, eax
jne 0x432013
xor eax, eax
jmp 0x4323f0
jmp 0x431fe0
mov ecx, dword [0x449d82]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x432035
mov eax, 0xfffffffe
jmp 0x4323f0
mov dl, byte [ebp + 0xc]
mov byte [ebp - 0x124], dl
cmp byte [ebp - 0x124], 0
jb 0x43215b
cmp byte [ebp - 0x124], 6
jbe 0x432066
cmp byte [ebp - 0x124], 0x17
je 0x432135
jmp 0x43215b
mov eax, dword [ebp + 8]
and eax, 0xff
cmp eax, 0xf0
jge 0x432089
mov ecx, dword [ebp + 8]
and ecx, 0xff
push ecx
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 7
jne 0x432094
mov edx, dword [ebp - 0xc]
mov al, byte [ebp + 0xc]
mov byte [edx + 4], al
jmp 0x4320a9
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov al, byte [ecx + 0x449374]
mov byte [edx + 4], al
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
test ecx, ecx
jl 0x4320c7
mov edx, dword [ebp + 0x14]
and edx, 0xffff
cmp edx, 0x7cff
jle 0x4320dd
mov eax, dword [0x449d82]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 0xfffffffc
jmp 0x4323f0
mov ecx, dword [ebp + 0x18]
and ecx, 0xffff
cmp ecx, 1
jl 0x4320fc
mov edx, dword [ebp + 0x18]
and edx, 0xffff
cmp edx, 0x7d00
jle 0x432112
mov eax, dword [0x449d82]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 0xfffffffb
jmp 0x4323f0
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp + 0x10]
mov word [ecx + 2], dx
mov eax, dword [ebp - 0xc]
mov cx, word [ebp + 0x14]
mov word [eax + 5], cx
mov edx, dword [ebp - 0xc]
mov ax, word [ebp + 0x18]
mov word [edx + 7], ax
jmp 0x432185
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 4], 0x17
mov edx, dword [ebp - 0xc]
mov word [edx + 2], 0
mov eax, dword [ebp - 0xc]
mov word [eax + 5], 0
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp + 0x18]
mov word [ecx + 7], dx
jmp 0x432185
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp + 0xc]
mov byte [eax + 4], cl
mov edx, dword [ebp - 0xc]
mov ax, word [ebp + 0x10]
mov word [edx + 2], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp + 0x14]
mov word [ecx + 5], dx
mov eax, dword [ebp - 0xc]
mov cx, word [ebp + 0x18]
mov word [eax + 7], cx
mov edx, dword [ebp - 0xc]
mov word [edx + 9], 0
mov eax, dword [ebp - 0xc]
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xb], 0
cmp dword [ebp + 0x1c], 0
je 0x4321e6
mov edx, dword [ebp + 8]
and edx, 0xff
push edx
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 7
jne 0x4321c1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xb], 0x4e
jmp 0x4321c8
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xb], 0xa
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0xb]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0xe
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4321f9
push 0x4e
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xe
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x20], 0
je 0x432220
mov ecx, dword [ebp + 0x18]
and ecx, 0xffff
shl ecx, 1
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x5c
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x432227
mov dword [ebp - 8], 1
push 0x44a1a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x18]
and ecx, 0xffff
lea edx, [ecx + ecx + 0x5c]
mov dword [ebp - 0x14], edx
push 0xfa5c
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x449d8e]
add ecx, 0x20
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [0x449d82]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 8], 0
je 0x432285
push 0x44a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffa
jmp 0x4323f0
push 0x20
push 0
mov eax, dword [0x449d8e]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [0x449d8e]
mov edx, dword [0x449d7c]
mov dword [ecx], edx
mov eax, dword [0x449d8e]
mov dword [eax + 4], 0x7d15
mov ecx, dword [0x449d8e]
mov word [ecx + 8], 1
movzx dx, byte [ebp + 8]
mov eax, dword [0x449d8e]
mov word [eax + 0xa], dx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
mov edx, dword [0x449d8e]
mov word [edx + 0xc], cx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0x7a120
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x40
jae 0x432324
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp + eax*4 - 0x114], edx
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
xor ecx, ecx
test ecx, ecx
jne 0x4322f9
lea edx, [ebp - 0x120]
push edx
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call sub.WSOCK32.dll_select
push 0
mov ecx, dword [0x449d8e]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [0x449d8e]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4323a3
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push str.WMC____4.4X___wmc_WriteBstX:_Send_FAILED_with__d___n
push 0x44a1e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44a1e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x44a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4323f0
cmp dword [0x44a1bc], 0
je 0x4323e0
call fcn.00432630
cmp dword [0x449dec], 0
je 0x4323e0
push 0
push 0
mov dx, word [ebp + 0x18]
push edx
mov ax, word [ebp + 0x14]
push eax
mov cx, word [ebp + 0x10]
push ecx
mov dl, byte [ebp + 0xc]
push edx
movzx ax, byte [ebp + 8]
push eax
call dword [0x449dec]
add esp, 0x1c
push 0x44a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret