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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea edi, [esi + 0x44]
push ebx
mov dword [ecx], ebx
mov edx, dword [esi + 0x20]
mov al, byte [edi]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x78], edx
mov byte [ebp - 0x6c], al
call fcn.0048a1d0
mov ecx, dword [0x4e5980]
push ecx
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00489f40
mov cl, byte [esi + 0x14]
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov dword [ebp - 4], ebx
test cl, cl
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
jne 0x4892bb
mov edi, 0x5cfbb4
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esi + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [ebp + 8], ecx
push ecx
mov ecx, ebx
call fcn.0048a240
test al, al
je 0x489295
mov eax, dword [ebp + 8]
mov edi, dword [ebx + 4]
mov ecx, eax
mov esi, 0x5cfbb4
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0048a220
push 1
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.0048a1d0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], ebx
call fcn.0049a1e7
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x4892dd
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x4892e9
test eax, eax
je 0x489305
mov eax, dword [ebp - 0x78]
mov ecx, esi
push eax
call fcn.00489b10
test eax, eax
je 0x489305
cmp eax, 0xffffffff
jne 0x4893b0
mov byte [ebp - 0x11], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ecx], eax
jle 0x48935b
mov esi, eax
push esi
call fcn.0049a1e7
mov edx, dword [ebp + 8]
xor cl, cl
add esp, 4
test cl, cl
mov dword [edx], eax
je 0x48933c
mov ecx, esi
mov esi, dword [ebp - 0x2c]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48935b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov esi, eax
mov eax, ecx
mov edi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x48936b
push eax
call fcn.0049a0fe
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48937b
push eax
call fcn.0049a0fe
add esp, 4
mov ecx, dword [ebp - 0x24]
add ecx, 0x2c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x48986c
mov al, byte [ecx - 1]
test al, al
je 0x489862
cmp al, 0xff
je 0x489862
dec al
mov byte [ecx - 1], al
jmp 0x48986c
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
push 0
push ecx
mov ecx, dword [eax + 0x28]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
je 0x489305
cmp ebx, 0xffffffff
jne 0x4893eb
lea edx, [ebp - 0x70]
push 0x5b85a8
push edx
mov dword [ebp - 0x70], 1
call fcn.0049b040
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
add ecx, ebx
test eax, eax
mov dword [ebp - 0x20], ecx
jne 0x48941f
lea esi, [ebx + 1]
push esi
call fcn.0049a1e7
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp - 0x18], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x48946d
mov eax, dword [ebp - 0x28]
lea edi, [eax + ebx + 1]
push edi
call fcn.0049a1e7
mov ecx, edi
mov edx, eax
mov esi, ecx
xor eax, eax
mov edi, edx
mov dword [ebp - 0x74], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [ebp - 0x18]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x28]
mov edi, edx
mov edx, ecx
mov eax, dword [ebp - 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0049a0fe
mov ecx, dword [ebp - 0x74]
add esp, 8
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ecx, ebx
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add eax, ebx
mov ecx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x7c]
and ecx, 3
cmp eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
je 0x48949f
cmp dword [ebp - 0x20], eax
jge 0x489305
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x4894b5
sub eax, ebx
mov dword [ebp - 0x1c], eax
jns 0x4894b5
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4892da
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.0048a1d0
mov cl, byte [ebp + 0xb]
push 0
mov byte [ebp - 0x3c], cl
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0048a1d0
mov edi, str.Content_Length:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x3c]
push ebx
call fcn.0048a240
test al, al
je 0x489525
mov edi, dword [ebp - 0x38]
mov ecx, ebx
mov edx, ecx
mov esi, str.Content_Length:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x3c]
call fcn.0048a220
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x5c], al
call fcn.0048a1d0
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 4
mov ebx, ecx
lea ecx, [ebp - 0x4c]
push ebx
call fcn.0048a240
test al, al
je 0x48957a
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x48]
mov ecx, ebx
push ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4c]
call fcn.0048a220
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x489586
mov eax, 0x4e597c
mov ecx, dword [ebp - 0x64]
push ecx
push 0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048a140
mov ebx, eax
mov eax, dword [0x4e5980]
cmp eax, ebx
je 0x48971c
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x48971c
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4895ba
mov eax, 0x4e597c
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
push edx
push 0
push eax
call fcn.0048a140
mov esi, eax
mov eax, dword [0x4e5980]
cmp eax, esi
je 0x489693
mov ecx, dword [ebp - 0x34]
mov edi, 0x5cfba0
add esi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x5cfba0
lea ecx, [ebp - 0x4c]
call fcn.0048a140
cmp dword [0x4e5980], eax
jne 0x489606
mov eax, dword [ebp - 0x44]
sub eax, esi
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00489db0
mov ecx, dword [0x4e5980]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00489f40
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.0048a1d0
lea edx, [ebp - 0x5c]
push 0x20
lea eax, [ebp - 0xa4]
push edx
push eax
call fcn.00487e00
add esp, 0xc
lea ecx, [ebp - 0xa4]
push 1
call fcn.0048a1d0
mov eax, dword [ebp - 0x58]
xor esi, esi
cmp eax, esi
jne 0x489670
mov eax, 0x4e597c
push eax
call fcn.00499558
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x28]
sub ecx, edx
add esp, 4
add ecx, ebx
add eax, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x48971e
jmp 0x489695
xor esi, esi
mov ecx, dword [ebp - 0x58]
cmp ecx, esi
je 0x4896b8
mov al, byte [ecx - 1]
test al, al
je 0x4896ae
cmp al, 0xff
je 0x4896ae
dec al
mov byte [ecx - 1], al
jmp 0x4896b8
dec ecx
push ecx
call fcn.004be727
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], esi
cmp ecx, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
je 0x4896e4
mov al, byte [ecx - 1]
test al, al
je 0x4896da
cmp al, 0xff
je 0x4896da
dec al
mov byte [ecx - 1], al
jmp 0x4896e4
dec ecx
push ecx
call fcn.004be727
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], esi
cmp ecx, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
je 0x489305
mov al, byte [ecx - 1]
test al, al
je 0x48970d
cmp al, 0xff
je 0x48970d
dec al
mov byte [ecx - 1], al
jmp 0x489305
dec ecx
push ecx
call fcn.004be727
add esp, 4
jmp 0x489305
xor esi, esi
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x489742
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x489739
cmp al, 0xff
je 0x489739
dec al
mov byte [ecx], al
jmp 0x489742
push ecx
call fcn.004be727
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], esi
cmp eax, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
je 0x48976f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x489766
cmp al, 0xff
je 0x489766
dec al
mov byte [ecx], al
jmp 0x48976f
push ecx
call fcn.004be727
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], esi
cmp ecx, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
je 0x48979f
mov al, byte [ecx - 1]
test al, al
je 0x489795
cmp al, 0xff
je 0x489795
dec al
mov byte [ecx - 1], al
jmp 0x48979f
dec ecx
push ecx
call fcn.004be727
add esp, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
jmp 0x4892da
dec ecx
push ecx
call fcn.004be727
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8