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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4983f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x432]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x432], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x439], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x378], 1
xor dl, 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x333], dl
mov edx, 0x7530
mov eax, dword [ebp - 4]
call fcn.0048d358
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fd], 1
xor edx, edx
push ebp
push 0x4983cb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x310], 0
setne al
or bl, al
je 0x498073
mov eax, dword [ebp - 4]
cmp byte [eax + 0x419], 0
jne 0x498073
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0
jne 0x498073
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f0], 0
jne 0x498073
mov edx, 0x49840c
mov eax, dword [ebp - 4]
call fcn.0048c1e0
mov ax, word [0x498410]
mov word [ebp - 6], ax
push 1
push 2
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
push eax
call sub.wsock32.dll_send
push 1
push 2
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
push eax
call sub.wsock32.dll_send
mov eax, dword [ebp - 4]
mov byte [eax + 0x439], 1
xor esi, esi
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
cmp ax, 0x96
je 0x498090
inc esi
movsx ebx, ax
push 0
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004971fc
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x2e0]
cmp ebx, eax
je 0x4980b4
inc esi
mov ebx, eax
xor ecx, ecx
mov edx, 0x49841c
mov eax, dword [ebp - 4]
call fcn.00494234
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
movsx edx, ax
cmp ebx, edx
je 0x4980d7
inc esi
cmp ax, 0x1f3
jle 0x49810d
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fd], 0
mov edx, 0x3a98
mov eax, dword [ebp - 4]
call fcn.0048d358
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fd], 1
mov edx, 0x49841c
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.00494234
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
test eax, eax
je 0x498246
call fcn.0048c05c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x379], 0
je 0x498149
push 0
push 0
push 0x46a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
push eax
call sub.user32.dll_PostMessageA
jmp 0x498157
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.0048fd2c
cmp esi, 2
je 0x498246
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fd], 0
mov edx, 0x2710
mov eax, dword [ebp - 4]
call fcn.0048d358
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fd], 1
mov eax, dword [ebp - 4]
movsx ebx, word [eax + 0x2e0]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x33c]
call fcn.00403c40
jmp 0x49821c
lea eax, [ebp - 0x14]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404028
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov ecx, 3
mov edx, 1
call fcn.00404028
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00403f34
je 0x49820a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov ecx, 1
mov edx, 4
call fcn.00404028
mov eax, dword [ebp - 0x14]
mov edx, 0x49842c
call fcn.00403f34
je 0x498246
push 0
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004971fc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
je 0x498246
mov eax, dword [ebp - 4]
cmp byte [eax + 0x332], 0
jne 0x498246
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x2e0]
cmp ebx, eax
je 0x49819e
xor edx, edx
push ebp
push 0x498390
push dword fs:[edx]
mov dword fs:[edx], esp
mov dx, 1
mov eax, dword [ebp - 4]
call fcn.0048ece8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x310], 0
jne 0x49834c
mov edx, dword [ebp - 4]
cmp word [edx + 0x2e0], 0
je 0x498324
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
cmp ax, 0xe2
je 0x49834c
cmp ax, 0xe1
je 0x49834c
cmp ax, 0x1f3
jge 0x49834c
jmp 0x498324
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0048c36c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0048e7b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
je 0x4982f3
mov eax, dword [ebp - 0xc]
mov edx, dword [0x5536c4]
mov edx, dword [edx]
call fcn.00403f34
je 0x4982f3
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00497080
lea eax, [ebp - 0x14]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404028
mov eax, dword [ebp - 0x14]
mov edx, 0x498438
call fcn.00403f34
je 0x49834c
mov dx, 5
mov eax, dword [ebp - 4]
call fcn.0048ece8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
je 0x49834c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x49834c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x332], 0
je 0x4982ab
mov eax, dword [ebp - 4]
cmp dword [eax + 0x300], 0
jle 0x498362
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fe], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498397
mov eax, dword [ebp - 4]
mov byte [eax + 0x333], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x439], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0xd]
mov byte [eax + 0x432], dl
ret