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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c8ff
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10096748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
je 0x1003e55e
jmp 0x1003eab5
mov edx, dword [ebp - 0x68]
add edx, 0x80
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x69], 1
mov byte [ebp - 0x6a], 0
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0xc0], 0
jg 0x1003e597
mov ecx, dword [ebp - 0x68]
add ecx, 0xcc
call fcn.100056b0
movzx ecx, al
test ecx, ecx
jne 0x1003e59b
mov byte [ebp - 0x6a], 1
mov dword [ebp - 0x80], 0
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0xc0], 0
jle 0x1003e75a
push 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0xc0]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0xc8]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x7c], 0
jle 0x1003e642
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0xc0]
sub ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x68]
mov dword [edx + 0xc0], ecx
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0xc0], 0
jle 0x1003e63d
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0xc0]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0xc8]
add edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0xc8]
push ecx
call fcn.10049340
add esp, 0xc
jmp 0x1003e755
cmp dword [ebp - 0x7c], 0
je 0x1003e662
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x1003e74f
cmp dword [ebp - 0x88], 0x2733
je 0x1003e74f
lea ecx, [ebp - 0x40]
call fcn.1000b010
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 3
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x38], 1
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb4]
push eax
push str.send_error:
lea ecx, [ebp - 0x158]
push ecx
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x34]
call fcn.10010150
lea ecx, [ebp - 0x158]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.10005610
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
jne 0x1003e738
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x14], 0
je 0x1003e738
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xc8], esp
lea eax, [ebp - 0x40]
push eax
call fcn.1000e0e0
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x14]
call eax
add esp, 0x28
mov byte [ebp - 0x69], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1000e0c0
jmp 0x1003e75a
mov byte [ebp - 0x69], 0
jmp 0x1003e75a
jmp 0x1003e5a2
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
je 0x1003ea69
mov ecx, dword [ebp - 0x68]
add ecx, 0xcc
call fcn.100056b0
movzx edx, al
test edx, edx
jne 0x1003ea69
lea ecx, [ebp - 0x1c]
call fcn.10019ed0
mov dword [ebp - 4], 2
lea eax, [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0xcc
call fcn.10010ee0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0x1c]
call fcn.100199f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.100109e0
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0xcc
call fcn.10019b50
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10019f10
mov byte [ebp - 0x71], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.100109e0
movzx eax, byte [ebp - 0x71]
test eax, eax
je 0x1003ea5a
lea ecx, [ebp - 0x1c]
call fcn.1003f520
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 8], 0
jle 0x1003e9bc
push 0
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x70]
add edx, dword [eax + 4]
push edx
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x78], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x78], 0
jle 0x1003e8aa
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
sub ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
jmp 0x1003e9b7
cmp dword [ebp - 0x78], 0
je 0x1003e8ca
cmp dword [ebp - 0x78], 0xffffffff
jne 0x1003e9b1
cmp dword [ebp - 0x84], 0x2733
je 0x1003e9b1
lea ecx, [ebp - 0x64]
call fcn.1000b010
mov byte [ebp - 4], 5
mov dword [ebp - 0x64], 3
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x5c], 1
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x140]
push eax
call fcn.1000af50
add esp, 8
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xb0]
push edx
push 0x1008b4a0
lea eax, [ebp - 0x110]
push eax
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10010150
lea ecx, [ebp - 0x110]
call fcn.10005610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x140]
call fcn.10005610
mov edx, dword [ebp - 0x68]
movzx eax, byte [edx + 0x61]
test eax, eax
jne 0x1003e99d
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x14], 0
je 0x1003e99d
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xd4], esp
lea edx, [ebp - 0x64]
push edx
call fcn.1000e0e0
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x14]
call edx
add esp, 0x28
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.1000e0c0
jmp 0x1003e9bc
mov byte [ebp - 0x69], 0
jmp 0x1003e9bc
jmp 0x1003e83a
mov eax, dword [ebp - 0x70]
cmp dword [eax + 8], 0
jne 0x1003ea4b
lea ecx, [ebp - 0x1c]
call fcn.1003f540
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
push edx
call fcn.10049a46
add esp, 4
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0xcc], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.10019a10
mov dword [ebp - 0xd0], eax
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0x68]
add ecx, 0xcc
call fcn.1003f470
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100199f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.100109e0
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
jne 0x1003ea55
jmp 0x1003ea5a
jmp 0x1003e7d7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100109e0
mov edx, dword [ebp - 0x68]
add edx, 0x80
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [ebp - 0x6a]
test eax, eax
je 0x1003eab5
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0xc0], 0
jne 0x1003eab5
mov ecx, dword [ebp - 0x68]
add ecx, 0xcc
call fcn.100056b0
movzx edx, al
test edx, edx
je 0x1003eab5
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0xc]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004910b
mov esp, ebp
pop ebp
ret