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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4837f6
mov eax, dword fs:[0]
push eax
sub esp, 0xcd4
mov eax, dword [0x4a9d30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov edx, dword [ebp + 8]
mov dword [ebp - 0xcd8], edx
mov dword [ebp - 0xcd0], edi
test ecx, ecx
jle 0x44a09e
mov eax, ecx
cmp byte [0x4acf20], 0
mov ecx, 0x100000
jne 0x449e7c
sub eax, edi
cmp eax, ecx
push 0
cmovg eax, ecx
push eax
lea eax, [edx + edi]
push eax
push dword [esi + 0x114]
call sub.WSOCK32.dll_recv
mov ebx, eax
jmp 0x44a055
push dword [esi + 0x104]
lea eax, [ebp - 0x45c]
push 0x4acf20
push str._s_d.sok
push eax
call fcn.00453cca
push dword [esi + 0x114]
lea eax, [ebp - 0xc2c]
push 0x4acf20
push str._s_d.sok
push eax
call fcn.00453cca
mov eax, dword [ebp + 0xc]
add esp, 0x20
sub eax, edi
xor ebx, ebx
mov dword [ebp - 0xcd4], eax
mov dword [ebp - 0xcdc], ebx
push 0xffffffffffffffff
push dword [esi + 0x108]
lea edi, [esi + 0x5e]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00420730
mov edx, dword [esi + 7]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0xce0], eax
cmp dword [ebp - 0xcd4], ecx
jg 0x449f4b
mov eax, edx
mov ecx, edi
push 0
cdq
push edx
push eax
call fcn.004209f0
push dword [ebp - 0xcd4]
mov eax, dword [ebp - 0xcd0]
mov ecx, edi
add eax, dword [ebp - 0xcd8]
push eax
call fcn.00420980
mov ebx, eax
mov eax, dword [ebp - 0xcd4]
add dword [esi + 7], eax
mov eax, dword [ebp - 0xce0]
mov dword [ebp - 0xcdc], ebx
cmp dword [esi + 7], eax
jne 0x449f4b
push 0
mov ecx, edi
call fcn.00420a40
mov dword [esi + 7], 0
test ebx, ebx
jne 0x44a043
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0xc7c]
call fcn.00425710
lea eax, [ebp - 0xc7c]
mov dword [ebp - 4], ebx
push eax
call fcn.004206a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
test eax, eax
lea ecx, [ebp - 0xc7c]
sete bl
call fcn.004257d0
test bl, bl
jne 0x44a081
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0xccc]
call fcn.00425710
lea eax, [ebp - 0xccc]
mov dword [ebp - 4], 1
push eax
call fcn.004206a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
test eax, eax
lea ecx, [ebp - 0xccc]
sete bl
call fcn.004257d0
test bl, bl
jne 0x44a081
push dword [esi + 0x114]
lea eax, [ebp - 0x74]
push str._d.rcv
push eax
call fcn.00453cca
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.00426d80
add esp, 0x14
lea eax, [ebp - 0x844]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [esi + 0x108]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xcdc]
jmp 0x449eca
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [ebp - 0xcd0]
test ebx, ebx
je 0x44a08d
cmp dword [esi + 0x136], 1
je 0x44a08d
cmp ebx, 0xffffffff
je 0x44a092
mov eax, dword [ebp + 0xc]
add edi, ebx
mov dword [ebp - 0xcd0], edi
cmp edi, eax
jge 0x44a09c
mov edx, dword [ebp - 0xcd8]
jmp 0x449e4e
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp + 0xc]
jmp 0x44a09e
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 0xc]
jmp 0x44a09e
mov ecx, eax
xor eax, eax
cmp dword [ebp - 0xcd0], ecx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530e4
mov esp, ebp
pop ebp
ret 8