Function at 0x641ae4
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48c
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x641d76
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], edx
lea ebx, [ebp - 0x228]
mov dword [esp], ebx
call fcn.00639fd8
mov dword [ebp - 0x1f0], 0x2719
mov dword [ebp - 0x1ec], 0
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 4]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x120]
mov dword [esp], ebx
call fcn.00639fd8
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0xe4], 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 0x641d3b
mov dword [esp], 0x64
call fcn.0076790c
mov edi, eax
mov dword [ebp - 0x240], ebx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x160]
mov dword [esp], eax
call fcn.00639fd8
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x124], eax
mov ebx, edi
test edi, edi
jne 0x641bc9
jmp 0x641c43
mov dword [esp + 0xc], 0x63cf6c
mov dword [esp + 8], 0x63d0a0
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0063f2cc
mov dword [edi + 0x20], esi
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
lea eax, [edi + 0x24]
mov dword [esp], eax
call fcn.00639fd8
mov eax, dword [ebp - 0x128]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x20]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
jmp 0x641c43
mov dword [ebp - 0x23c], ebx
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call fcn.006461e8
jmp 0x641c6c
mov edi, 0
mov eax, dword [ebp - 0x23c]
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 0x641ced
jmp 0x641ca3
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 - 0x254]
mov dword [esp], eax
call fcn.0064bc34
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.00631f7c
mov esi, eax
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0064be18
jmp 0x641d0d
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.006382e0
jmp 0x641d3b
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.0063835c
test edi, edi
je 0x641d2b
mov dword [esp], edi
call fcn.007678c4
jmp 0x641d2b
lea eax, [ebp - 0xec]
mov dword [esp], eax
call fcn.006461e8
jmp 0x641d4d
lea eax, [ebp - 0xec]
mov dword [esp], eax
call fcn.006461e8
jmp 0x641d63
lea eax, [ebp - 0x1f4]
mov dword [esp], eax
call fcn.006461e8
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
lea eax, [ebp - 0x1f4]
mov dword [esp], eax
call fcn.006461e8
jmp 0x642768
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x9c]
test ebx, ebx
jne 0x641d93
call sub.KERNEL32.dll_GetCurrentThreadId
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x9c], eax
jmp 0x641da9
call sub.KERNEL32.dll_GetCurrentThreadId
cmp ebx, eax
je 0x641da9
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x9c], 0xffffffff
mov dword [esp], 0x84
call fcn.0076790c
mov dword [ebp - 0x474], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x238], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x8c]
mov dword [ebp - 0xa8], eax
mov eax, dword [edx + 0x90]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x641df3
jmp 0x641df7
lock inc dword [eax + 8]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0xe0], eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], edx
mov al, byte [ecx + 0xc]
mov byte [ebp - 0xd4], al
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], edx
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0xc4], eax
mov eax, ecx
add eax, 4
mov edx, dword [ecx + 0x18]
sub edx, eax
mov eax, edx
and eax, 0xfffffff8
lea eax, [ebp + eax - 0xdc]
mov dword [ebp - 0xc8], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0xc0], eax
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0xb0], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x641e89
lock inc dword [eax + 4]
mov ebx, dword [ebp - 0x474]
test ebx, ebx
je 0x641ff3
lea eax, [edi + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x6434d4
mov dword [ebx + 0x1c], 0x643400
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], 1
mov eax, dword [edi + 4]
mov dword [ebx + 0x24], 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 - 0xa8]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x641f10
lock inc dword [eax + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
mov al, byte [esi + 8]
mov byte [ebx + 0x38], al
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], edx
lea eax, [ebx + 0x30]
mov dword [ebx + 0x44], eax
mov edx, dword [esi + 0x18]
mov dword [ebx + 0x48], edx
mov edx, dword [esi + 0x14]
sub edx, esi
and edx, 0xfffffff8
add eax, edx
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
mov al, byte [ebp - 0xd4]
mov byte [ebx + 0x58], al
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edx
lea eax, [ebx + 0x50]
mov dword [ebx + 0x64], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebx + 0x68], edx
lea edx, [ebp - 0xdc]
mov ecx, dword [ebp - 0xc8]
sub ecx, edx
mov edx, ecx
and edx, 0xfffffff8
add eax, edx
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb4]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], edx
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x80], eax
test eax, eax
je 0x641ff3
lock inc dword [eax + 4]
jmp 0x641ff3
mov dword [ebp - 0x234], ebx
lea eax, [ebp - 0xac]
mov dword [esp], eax
call fcn.006461e8
jmp 0x64202e
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x64204f
mov ebx, 0xffffffff
lock xadd dword [eax + 8], ebx
cmp ebx, 1
jne 0x64204f
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [ebp - 0x474], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x468], eax
lea edx, [esi + 8]
mov dword [ebp - 0x470], edx
mov ecx, dword [esi + 0x14]
movzx edi, byte [esi + 8]
test eax, eax
jne 0x642084
mov edi, 1
jmp 0x642084
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x468]
jbe 0x642095
mov eax, dword [ebp - 0x468]
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x46c], esi
mov esi, 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
jmp 0x64210d
lea edx, [esi + eax]
cmp dword [ebp - 0x468], edx
jbe 0x6420e8
lea ebx, [ecx + 8]
mov dword [ebp - 0x464], ebx
mov esi, dword [ecx + 4]
mov ebx, dword [ebp - 0x468]
sub ebx, edx
cmp ebx, esi
jbe 0x6420de
mov ebx, esi
mov ecx, dword [ecx]
mov dword [ebp - 0x46c], ecx
jmp 0x6420f7
mov ebx, eax
mov dword [ebp - 0x464], ecx
mov edx, esi
mov edi, 1
add dword [ebp - 0x460], eax
inc dword [ebp - 0x45c]
mov eax, ebx
mov ecx, dword [ebp - 0x464]
mov esi, edx
mov edx, edi
test dl, dl
jne 0x642756
cmp dword [ebp - 0x45c], 0x40
je 0x642756
mov ebx, dword [ebp - 0x45c]
mov dword [ebp + ebx*8 - 0x454], eax
mov edx, dword [ebp - 0x46c]
mov dword [ebp + ebx*8 - 0x450], edx
cmp dword [ebp - 0x470], ecx
jne 0x6420b9
jmp 0x6420e8
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov eax, dword [edi + 0x10]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00637b18
call fcn.00597864
mov esi, eax
mov ebx, dword [ebp + 0x18]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x1e8]
mov dword [esp], ebx
call fcn.00639fd8
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a8], 0
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 0x6423c7
mov dword [esp], 0x68
call fcn.0076790c
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x240], ebx
mov dword [esp + 4], ebx
lea eax, [ebp - 0xa0]
mov dword [esp], eax
call fcn.00639fd8
mov eax, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x45c]
test ebx, ebx
jne 0x642226
jmp 0x6422c5
lea eax, [esi + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x63d3ec
mov dword [ebx + 0x1c], 0x63d2b0
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 - 0xa0]
mov dword [esp + 4], eax
lea eax, [ebx + 0x24]
mov dword [esp], eax
call fcn.00639fd8
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x20]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
jmp 0x6422c5
mov dword [ebp - 0x23c], ebx
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.006461e8
jmp 0x6422e8
mov dword [ebp - 0x45c], 0
mov eax, dword [ebp - 0x23c]
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 0x64236e
jmp 0x642324
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 - 0x254]
mov dword [esp], eax
call fcn.0064bc34
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.00631f7c
mov esi, eax
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0064be18
jmp 0x64238e
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.006383dc
jmp 0x6423c7
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.00638458
cmp dword [ebp - 0x45c], 0
je 0x6423b7
mov edx, dword [ebp - 0x45c]
mov dword [esp], edx
call fcn.007678c4
jmp 0x6423b7
lea eax, [ebp - 0x1b4]
mov dword [esp], eax
call fcn.006461e8
jmp 0x6423d9
lea eax, [ebp - 0x1b4]
mov dword [esp], eax
call fcn.006461e8
jmp 0x6423e9
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x642701
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x642711
mov dword [ebp - 0x22c], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x230], eax
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x234]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x230]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x22c]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x45c]
mov dword [esp + 8], ecx
lea eax, [ebp - 0x454]
mov dword [esp + 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WS2_32.DLL_WSARecv
sub esp, 0x1c
mov ebx, eax
call sub.WSOCK32.DLL_WSAGetLastError
mov esi, eax
test ebx, ebx
je 0x6426f3
cmp eax, 0x3e5
je 0x6426f3
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [edi + 0x10]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00637b18
call fcn.00597864
mov dword [ebp - 0x45c], eax
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], edx
lea ebx, [ebp - 0x1a4]
mov dword [esp], ebx
call fcn.00639fd8
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], esi
mov esi, dword [ebp - 0x22c]
mov dword [ebp - 0x164], 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 0x6426c7
mov dword [esp], 0x68
call fcn.0076790c
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x240], ebx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00639fd8
mov eax, dword [ebp - 0x16c]
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x45c]
test ebx, ebx
jne 0x64254e
jmp 0x6425c5
mov dword [esp + 0xc], 0x63d5fc
mov dword [esp + 8], 0x63d738
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0063f2cc
mov dword [ebx + 0x20], esi
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x24]
mov dword [esp], eax
call fcn.00639fd8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x20]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
jmp 0x6425c5
mov dword [ebp - 0x23c], ebx
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.006461e8
jmp 0x6425e8
mov dword [ebp - 0x45c], 0
mov eax, dword [ebp - 0x23c]
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 0x64266e
jmp 0x642624
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 - 0x254]
mov dword [esp], eax
call fcn.0064bc34
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.00631f7c
mov esi, eax
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0064be18
jmp 0x64268e
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.006384d8
jmp 0x6426c7
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.00638554
cmp dword [ebp - 0x45c], 0
je 0x6426b7
mov edx, dword [ebp - 0x45c]
mov dword [esp], edx
call fcn.007678c4
jmp 0x6426b7
lea eax, [ebp - 0x170]
mov dword [esp], eax
call fcn.006461e8
jmp 0x6426d9
lea eax, [ebp - 0x170]
mov dword [esp], eax
call fcn.006461e8
jmp 0x6426e6
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x642701
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0063babc
jmp 0x642725
mov dword [ebp - 0x234], 0
jmp 0x642725
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00637bd0
jmp 0x642737
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00637b18
jmp 0x642768
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00637b18
jmp 0x642768
cmp dword [ebp - 0x474], 0
je 0x64274e
mov ecx, dword [ebp - 0x474]
mov dword [esp], ecx
call fcn.007678c4
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
cmp dword [ebp - 0x460], 0
je 0x64214c
jmp 0x6423f9
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret