Function at 0x4edf60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7a34
call fcn.0057a710
mov eax, dword [0x64aa84]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [esp + 0x7a3c], eax
call esi
mov edx, eax
xor eax, eax
mov byte [esp + 0x238], 0
mov ecx, 0x1dff
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
imul eax, eax, 0x3e8
add eax, edx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0xc], eax
call esi
cmp eax, dword [esp + 0xc]
ja 0x4ee139
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
lea edx, [esp + 0x12c]
mov dword [esp + 0x130], eax
push edx
inc eax
push eax
mov dword [esp + 0x134], 1
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x4ee17e
je 0x4ee129
mov ecx, dword [ebp + 8]
push 0
push 0x7800
lea eax, [esp + 0x240]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4ee1ee
push eax
lea edx, [esp + 0x23c]
push edx
mov ecx, esi
call fcn.00412b60
test edi, edi
jne 0x4ee11b
test ebx, ebx
jne 0x4ee11b
cmp dword [esi + 0xc], 0x26
jb 0x4ee129
mov eax, dword [esi + 8]
push str._r_n_r_n
push eax
call fcn.0057bca0
add esp, 8
test eax, eax
je 0x4ee129
mov ecx, dword [esi + 8]
sub eax, ecx
add eax, 4
mov ebx, eax
mov byte [ecx + ebx - 1], 0
mov ecx, dword [esi + 8]
push str.Content_Length:
push ecx
call fcn.0051ee60
mov edx, dword [esi + 8]
add esp, 8
test eax, eax
mov byte [ebx + edx - 1], 0xa
jne 0x4ee0a7
cmp ebx, dword [esi + 0xc]
jmp 0x4ee123
xor ecx, ecx
mov dword [esp + 0x22d], ecx
mov dword [esp + 0x231], ecx
add eax, 0x10
mov byte [esp + 0x235], cl
mov cl, byte [eax]
cmp cl, 0xa
mov byte [esp + 0x22c], 0
je 0x4ee0f7
lea edx, [esp + 0x22c]
sub edx, eax
lea esp, [esp]
cmp cl, 0xd
je 0x4ee0f7
cmp edi, 0xa
jge 0x4ee0f7
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc edi
inc eax
cmp cl, 0xa
jne 0x4ee0e0
lea edx, [esp + 0x22c]
push edx
call fcn.0057bc91
mov edi, eax
add esp, 4
test edi, edi
je 0x4ee1be
mov ecx, dword [esi + 0xc]
lea eax, [ebx + edi]
cmp eax, ecx
jmp 0x4ee123
mov eax, dword [esi + 0xc]
lea ecx, [ebx + edi]
cmp ecx, eax
jbe 0x4ee23e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0xc]
jbe 0x4edfc6
xor eax, eax
jmp 0x4ee140
mov cl, byte [eax + str.Timeout]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x4ee140
push 0x63375c
lea edx, [esp + 0xa0]
mov ecx, 0x21
lea esi, [esp + 0x1c]
lea edi, [esp + 0xa0]
mov dword [esp + 0x9c], 0
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0057a113
xor eax, eax
mov cl, byte [eax + str.Socket]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x4ee180
push 0x63374c
lea eax, [esp + 0xa0]
mov ecx, 0x21
lea esi, [esp + 0x1c]
lea edi, [esp + 0xa0]
mov dword [esp + 0x9c], 0
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0057a113
push str.Socket
lea ecx, [esp + 0x1c]
call fcn.004eddb0
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
push 0x63374c
lea ecx, [esp + 0xa0]
push ecx
call fcn.0057a113
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x4ee200
mov cl, byte [eax + str.Socket]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x4ee200
push 0x63374c
lea edx, [esp + 0xa0]
mov ecx, 0x21
lea esi, [esp + 0x1c]
lea edi, [esp + 0xa0]
mov dword [esp + 0x9c], 0
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0057a113
mov ecx, dword [esp + 0x7a3c]
call fcn.0057981f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret