Function at 0x1001dc70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x1004d7b3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1005ce10]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebp, ebp
cmp dword [esi + 8], 4
lea eax, [esi + 8]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], eax
jg 0x1001de46
cmp dword [esi + 0x1c], ebp
je 0x1001dcce
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
test al, al
je 0x1001de46
push 0x34
call fcn.10032b10
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebp
cmp eax, ebp
je 0x1001dcee
push eax
call fcn.1001d6f0
mov edi, eax
jmp 0x1001dcf0
xor edi, edi
mov dword [esp + 0x18], edi
cmp edi, ebp
je 0x1001dd02
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x34], 1
mov dword [edi + 0x14], esi
mov dword [edi + 0x20], 3
call fcn.1001d6a0
cmp eax, ebp
je 0x1001dd28
mov esi, eax
call fcn.1001d830
mov esi, eax
jmp 0x1001dd2a
xor esi, esi
cmp esi, ebp
je 0x1001dd38
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 0x30]
cmp eax, ebp
je 0x1001dd60
lea ebx, [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001dd60
cmp ebx, ebp
je 0x1001dd60
lea ecx, [ebx - 4]
cmp ecx, ebp
je 0x1001dd60
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x30], esi
lea ebp, [edi + 0x24]
mov dword [ebp], 0x2000
mov eax, dword [edi + 0x30]
add eax, 0x8c
lea ebx, [edi + 0x18]
push ebx
mov dword [edi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
push ecx
mov eax, 0x1001e100
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.1001e2d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ddad
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1001dddd
add eax, 4
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001dddd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001dddd
lea ecx, [eax - 4]
test ecx, ecx
je 0x1001dddd
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push 0
push edi
mov dword [edi + 0x2c], esi
mov eax, dword [edi + 0x30]
lea ecx, [eax + 0x88]
push ecx
mov ecx, dword [esp + 0x48]
add eax, 8
push eax
lea edx, [esp + 0x34]
push edx
mov edx, dword [ecx + 0x10]
lea eax, [esp + 0x3c]
push eax
push 1
push ebp
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
jne 0x1001de4a
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001de46
test ebx, ebx
je 0x1001de46
add ebx, 0xffffffe8
je 0x1001de46
push ebx
call fcn.1001d790
push ebx
call fcn.10032a5e
add esp, 4
mov al, 1
jmp 0x1001dec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001de77
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.1001e260
mov al, 1
jmp 0x1001dec0
mov eax, ebx
call fcn.1001e200
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1001dea6
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001dea6
test esi, esi
je 0x1001dea6
lea ecx, [esi - 4]
test ecx, ecx
je 0x1001dea6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [esp + 0x18]
mov dword [edi + 0x2c], 0
mov dword [esp + 0x34], 0xffffffff
call fcn.1001e260
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4