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

Disassembly:
mov eax, 0x1068
call fcn.005d9990
push esi
mov esi, dword [esp + 0x1078]
push esi
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x598dd7
pop esi
add esp, 0x1068
ret
mov eax, dword [esi + 4]
push ebx
push ebp
push edi
or edi, 0xffffffff
cmp eax, edi
jne 0x598e0a
push esi
push 0
push 0x1774
call fcn.00424130
add esp, 8
push eax
call fcn.00597e60
add esp, 8
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1068
ret
mov eax, dword [esi + 0x14b0]
test eax, eax
je 0x598e21
push esi
call fcn.00508d40
add esp, 4
test eax, eax
jne 0x598dfd
mov eax, dword [esp + 0x107c]
push eax
lea ecx, [esp + 0x14]
push 0x1068
push ecx
call fcn.00425550
lea edx, [esp + 0x1c]
push esi
push edx
lea ebp, [esp + 0x24]
call fcn.00598c30
mov ebx, dword [esp + 0x1094]
add esp, 0x14
cmp ebx, 4
je 0x598e83
push 5
lea eax, [esp + 0x14]
push eax
push esi
push 0
call fcn.00586db0
mov eax, dword [0x693620]
add esp, 0x10
test eax, eax
je 0x598e83
push 0xe
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
call fcn.00586db0
add esp, 0x10
mov eax, dword [esi + 0x2794]
test eax, eax
je 0x598ebc
lea ecx, [ecx]
cmp dword [eax + 0x1c], edi
jne 0x598eb5
mov edx, dword [esi + 0x2794]
mov edi, dword [eax + 0x40]
push eax
push edx
call fcn.004e8a00
mov dword [esi + 0x2794], eax
add esp, 8
mov eax, edi
or edi, 0xffffffff
jmp 0x598eb8
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x598e90
mov eax, dword [esi + 0x2794]
test eax, eax
je 0x598f0c
mov cl, byte [esp + 0x10]
test cl, cl
je 0x598ee7
push ebx
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004e8850
add esp, 0xc
test eax, eax
je 0x598ee7
mov dword [esi + 0x2794], eax
mov eax, dword [esi + 0x2794]
mov edx, dword [eax + 0x1c]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x2794]
mov ebp, dword [eax]
test ebp, ebp
mov dword [esp + 0x1080], edx
je 0x5990f4
mov ebx, edx
cmp byte [ebp], 0
je 0x5990f4
mov eax, dword [0x649058]
test eax, eax
je 0x598f32
push esi
push ebx
push ebp
call fcn.00498cf0
add esp, 0xc
test eax, eax
jne 0x599113
push 1
call fcn.00508fa0
mov eax, ebp
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x598f41
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x818c]
test eax, eax
je 0x598f89
mov ecx, dword [esi + 4]
push ebx
push ebp
push ecx
call fcn.005570c0
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x598f99
cmp edi, 0xfffffffd
jne 0x598f7c
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x598fa2
push 0x2745
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x598fa2
mov edx, dword [esi + 4]
push 0
push ebx
push ebp
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x59906f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x598ffa
mov eax, dword [esi + 0x2794]
test eax, eax
je 0x598fd7
cmp ebp, dword [eax]
jne 0x598fd7
mov ecx, dword [esp + 0x1080]
pop edi
pop ebp
pop ebx
mov dword [eax + 0x1c], ecx
xor eax, eax
pop esi
add esp, 0x1068
ret
push 0
push ebp
push eax
call fcn.004e8850
add esp, 0xc
test eax, eax
je 0x598fed
mov dword [esi + 0x2794], eax
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1068
ret
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.004232e0
add esp, 8
test ebx, ebx
je 0x599059
push ebx
call fcn.00597da0
add esp, 4
push eax
push 0
push 0x1775
call fcn.00424130
add esp, 8
push eax
push edi
call fcn.005d9929
mov edx, dword [0x63caa0]
push edx
mov dword [0x6870cc], 0
mov dword [0x6870dc], 1
mov eax, dword [esi]
push edi
push eax
call fcn.0052eb30
add esp, 0x18
push esi
call fcn.00598080
add esp, 4
push esi
push 0
push 0x5e1
jmp 0x598dec
test edi, edi
jg 0x599075
xor edi, edi
cmp edi, ebx
jge 0x59909f
mov ecx, dword [esi + 0x2794]
push 0
push 0
lea ebx, [edi + ebp]
push ebx
push ecx
call fcn.004e9380
add esp, 0x10
test eax, eax
je 0x59909a
mov dword [esi + 0x2794], eax
mov byte [ebx], 0
mov ebx, edi
mov eax, dword [esi + 0x5dbc]
test eax, eax
jle 0x5990b8
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x5dbc], eax
jmp 0x5990be
mov dword [esi + 0x5dbc], ebx
mov edi, dword [esi + 0x5db8]
add edi, ebx
mov dword [esi + 0x5db8], edi
mov ecx, dword [0x61a094]
mov eax, edi
cmp eax, ecx
jle 0x5990de
mov dword [esi + 0x5db8], ecx
mov al, byte [esi + 0x7434]
test al, al
je 0x5990f4
push esi
push 0
push ebp
call fcn.004268f0
add esp, 0xc
mov eax, dword [esi + 0x2794]
test eax, eax
je 0x599113
mov edx, dword [0x6a0f40]
push esi
push 0
push 0x804c
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x1068
ret