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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4cc
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x64059e
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], edx
lea ebx, [ebp - 0x268]
mov dword [esp], ebx
call fcn.0063a61c
mov dword [ebp - 0x228], 0x2719
mov dword [ebp - 0x224], 0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x140]
mov dword [esp], ebx
call fcn.0063a61c
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0xfc], eax
mov esi, dword [esi + 0x10]
mov dword [esp + 4], 0
lea eax, [esi + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedExchangeAdd
sub esp, 8
test eax, eax
jne 0x640563
mov dword [esp], 0x6c
call fcn.0076790c
mov edi, eax
mov dword [ebp - 0x27c], ebx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x188]
mov dword [esp], eax
call fcn.0063a61c
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x144], eax
mov ebx, edi
test edi, edi
jne 0x6403f1
jmp 0x64046b
mov dword [esp + 0xc], 0x63d948
mov dword [esp + 8], 0x63da28
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0063f2cc
mov dword [edi + 0x20], esi
lea eax, [ebp - 0x188]
mov dword [esp + 4], eax
lea eax, [edi + 0x24]
mov dword [esp], eax
call fcn.0063a61c
mov eax, dword [ebp - 0x148]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x144]
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x20]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
jmp 0x64046b
mov dword [ebp - 0x278], ebx
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.00635398
jmp 0x640494
mov edi, 0
mov eax, dword [ebp - 0x278]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_PostQueuedCompletionStatus
sub esp, 0x10
test eax, eax
jne 0x640515
jmp 0x6404cb
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call fcn.00637860
mov dword [esp + 0xc], 0x7c4c48
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.0064bc34
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.00631f7c
mov esi, eax
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.0064be18
jmp 0x640535
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.006385d4
jmp 0x640563
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.00638650
test edi, edi
je 0x640553
mov dword [esp], edi
call fcn.007678c4
jmp 0x640553
lea eax, [ebp - 0x110]
mov dword [esp], eax
call fcn.00635398
jmp 0x640575
lea eax, [ebp - 0x110]
mov dword [esp], eax
call fcn.00635398
jmp 0x64058b
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00635398
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00635398
jmp 0x640e80
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x9c]
test ebx, ebx
jne 0x6405bb
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x9c], eax
jmp 0x6405d1
call sub.KERNEL32.dll_GetCurrentThreadId
cmp ebx, eax
je 0x6405d1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x9c], 0xffffffff
mov dword [esp], 0x88
call fcn.0076790c
mov dword [ebp - 0x4b4], eax
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x274], ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x8c]
mov dword [ebp - 0xb8], eax
mov eax, dword [edx + 0x90]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x64061b
jmp 0x64061f
lock inc dword [eax + 8]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 4], ebx
lea eax, [ebp - 0xf8]
mov dword [esp], eax
call fcn.0063a61c
mov ebx, dword [ebp - 0x4b4]
test ebx, ebx
je 0x640717
lea eax, [edi + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x6427ec
mov dword [ebx + 0x1c], 0x642770
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
mov eax, dword [edi + 4]
mov dword [ebx + 0x20], eax
mov eax, dword [eax + 0x10]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
mov eax, dword [ebp - 0xb8]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x28], eax
test eax, eax
je 0x6406b4
lock inc dword [eax + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov al, byte [esi + 8]
mov byte [ebx + 0x34], al
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
lea eax, [ebx + 0x2c]
mov dword [ebx + 0x40], eax
mov edx, dword [esi + 0x18]
mov dword [ebx + 0x44], edx
mov edx, dword [esi + 0x14]
sub edx, esi
and edx, 0xfffffff8
add eax, edx
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0xf8]
mov dword [esp + 4], eax
lea eax, [ebx + 0x48]
mov dword [esp], eax
call fcn.0063a61c
jmp 0x640717
mov dword [ebp - 0x270], ebx
lea eax, [ebp - 0xc8]
mov dword [esp], eax
call fcn.00635398
jmp 0x640752
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x640773
mov ebx, 0xffffffff
lock xadd dword [eax + 8], ebx
cmp ebx, 1
jne 0x640773
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [ebp - 0x4b4], 0
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x4a8], edx
lea ebx, [esi + 8]
mov dword [ebp - 0x4b0], ebx
mov ecx, dword [esi + 0x14]
movzx edi, byte [esi + 8]
test edx, edx
jne 0x6407a8
mov edi, 1
jmp 0x6407a8
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x4a8]
jbe 0x6407b9
mov eax, dword [ebp - 0x4a8]
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x4ac], esi
mov esi, 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
jmp 0x640831
lea edx, [esi + eax]
cmp dword [ebp - 0x4a8], edx
jbe 0x64080c
lea ebx, [ecx + 8]
mov dword [ebp - 0x4a4], ebx
mov esi, dword [ecx + 4]
mov ebx, dword [ebp - 0x4a8]
sub ebx, edx
cmp ebx, esi
jbe 0x640802
mov ebx, esi
mov ecx, dword [ecx]
mov dword [ebp - 0x4ac], ecx
jmp 0x64081b
mov ebx, eax
mov dword [ebp - 0x4a4], ecx
mov edx, esi
mov edi, 1
add dword [ebp - 0x4a0], eax
inc dword [ebp - 0x49c]
mov eax, ebx
mov ecx, dword [ebp - 0x4a4]
mov esi, edx
mov edx, edi
test dl, dl
jne 0x640e6e
cmp dword [ebp - 0x49c], 0x40
je 0x640e6e
mov ebx, dword [ebp - 0x49c]
mov dword [ebp + ebx*8 - 0x490], eax
mov edx, dword [ebp - 0x4ac]
mov dword [ebp + ebx*8 - 0x48c], edx
cmp ecx, dword [ebp - 0x4b0]
jne 0x6407dd
jmp 0x64080c
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 4]
mov eax, dword [edi + 0x10]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
lea eax, [ebp - 0x274]
mov dword [esp], eax
call fcn.00637bf0
call fcn.00597864
mov esi, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x220]
mov dword [esp], ebx
call fcn.0063a61c
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1d8], 0
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x14]
mov dword [esp + 4], 0
lea eax, [esi + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedExchangeAdd
sub esp, 8
test eax, eax
jne 0x640aeb
mov dword [esp], 0x70
call fcn.0076790c
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x27c], ebx
mov dword [esp + 4], ebx
lea eax, [ebp - 0xb0]
mov dword [esp], eax
call fcn.0063a61c
mov eax, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x49c]
test ebx, ebx
jne 0x64094a
jmp 0x6409e9
lea eax, [esi + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x63dc58
mov dword [ebx + 0x1c], 0x63db70
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
mov dword [ebx + 0x20], esi
lea eax, [ebp - 0xb0]
mov dword [esp + 4], eax
lea eax, [ebx + 0x24]
mov dword [esp], eax
call fcn.0063a61c
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x20]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
jmp 0x6409e9
mov dword [ebp - 0x278], ebx
lea eax, [ebp - 0x80]
mov dword [esp], eax
call fcn.00635398
jmp 0x640a0c
mov dword [ebp - 0x49c], 0
mov eax, dword [ebp - 0x278]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_PostQueuedCompletionStatus
sub esp, 0x10
test eax, eax
jne 0x640a92
jmp 0x640a48
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call fcn.00597864
mov dword [esp + 0xc], 0x7c4c48
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.0064bc34
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.00631f7c
mov esi, eax
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.0064be18
jmp 0x640ab2
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.006386d0
jmp 0x640aeb
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.0063874c
cmp dword [ebp - 0x49c], 0
je 0x640adb
mov ebx, dword [ebp - 0x49c]
mov dword [esp], ebx
call fcn.007678c4
jmp 0x640adb
lea eax, [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00635398
jmp 0x640afd
lea eax, [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00635398
jmp 0x640b0d
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x640e19
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x640e29
mov dword [ebp - 0x26c], 0
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x270]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x26c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x49c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x490]
mov dword [esp + 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esp], eax
call sub.WS2_32.DLL_WSASend
sub esp, 0x1c
mov ebx, eax
call sub.WSOCK32.DLL_WSAGetLastError
mov esi, eax
test ebx, ebx
je 0x640e0b
cmp eax, 0x3e5
je 0x640e0b
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 4]
mov eax, dword [edi + 0x10]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
lea eax, [ebp - 0x274]
mov dword [esp], eax
call fcn.00637bf0
call fcn.00597864
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x1d4]
mov dword [esp], ebx
call fcn.0063a61c
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x194], esi
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x18c], esi
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x14]
mov dword [esp + 4], 0
lea eax, [esi + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedExchangeAdd
sub esp, 8
test eax, eax
jne 0x640ddf
mov dword [esp], 0x70
call fcn.0076790c
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x27c], ebx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x64]
mov dword [esp], eax
call fcn.0063a61c
mov eax, dword [ebp - 0x194]
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x49c]
test ebx, ebx
jne 0x640c66
jmp 0x640cdd
mov dword [esp + 0xc], 0x63dd9c
mov dword [esp + 8], 0x63de84
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0063f2cc
mov dword [ebx + 0x20], esi
lea eax, [ebp - 0x64]
mov dword [esp + 4], eax
lea eax, [ebx + 0x24]
mov dword [esp], eax
call fcn.0063a61c
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x20]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
jmp 0x640cdd
mov dword [ebp - 0x278], ebx
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00635398
jmp 0x640d00
mov dword [ebp - 0x49c], 0
mov eax, dword [ebp - 0x278]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_PostQueuedCompletionStatus
sub esp, 0x10
test eax, eax
jne 0x640d86
jmp 0x640d3c
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call fcn.00637860
mov dword [esp + 0xc], 0x7c4c48
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.0064bc34
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.00631f7c
mov esi, eax
lea eax, [ebp - 0x290]
mov dword [esp], eax
call fcn.0064be18
jmp 0x640da6
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.006387cc
jmp 0x640ddf
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.00638848
cmp dword [ebp - 0x49c], 0
je 0x640dcf
mov edx, dword [ebp - 0x49c]
mov dword [esp], edx
call fcn.007678c4
jmp 0x640dcf
lea eax, [ebp - 0x1a4]
mov dword [esp], eax
call fcn.00635398
jmp 0x640df1
lea eax, [ebp - 0x1a4]
mov dword [esp], eax
call fcn.00635398
jmp 0x640dfe
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x640e19
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x640e3d
mov dword [ebp - 0x270], 0
jmp 0x640e3d
lea eax, [ebp - 0x274]
mov dword [esp], eax
call fcn.00637ca8
jmp 0x640e4f
lea eax, [ebp - 0x274]
mov dword [esp], eax
call fcn.00637bf0
jmp 0x640e80
lea eax, [ebp - 0x274]
mov dword [esp], eax
call fcn.00637bf0
jmp 0x640e80
cmp dword [ebp - 0x4b4], 0
je 0x640e66
mov ebx, dword [ebp - 0x4b4]
mov dword [esp], ebx
call fcn.007678c4
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
cmp dword [ebp - 0x4a0], 0
je 0x640870
jmp 0x640b1d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret