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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push 1
push 0xfa
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x404]
push 0x400
push eax
push dword [ebp + 8]
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x418], ebx
mov dword [ecx], 0
call fcn.004051e0
add esp, 0x14
test eax, eax
jg 0x404ea8
jns 0x404e96
mov eax, dword [section..data]
cmp dword [eax], 1
jl 0x404e96
push 0
push 0x3fb
push str.http_parse_simple
call fcn.004048f0
push eax
push str._s__s:_d_cannot_read_method_n
call fcn.004048b0
add esp, 0x14
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x404ebe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esi], eax
push edi
push 1
push 0xfa
push 0x400
lea eax, [ebp - 0x404]
mov dword [ebx], 0
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x414], edi
call fcn.004051e0
add esp, 0x14
test eax, eax
jle 0x4050ec
mov esi, dword [ebp - 0x408]
lea ecx, [esi + 4]
mov dword [ebp - 0x40c], ecx
mov eax, dword [section..data]
cmp dword [eax], 4
jl 0x404f3c
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
push 0x406
push str.http_parse_simple
call fcn.004048f0
push eax
push str._s__s:_d_sock:__u__received__s_n
call fcn.004048b0
lea ecx, [esi + 4]
add esp, 0x18
mov dword [ebp - 0x40c], ecx
test edi, edi
je 0x405027
cmp dword [esi + edi*8], 0
mov ebx, ecx
je 0x40502d
mov al, byte [ebp - 0x404]
cmp al, 0x20
je 0x404f62
cmp al, 9
jne 0x40502d
lea eax, [ebp - 0x404]
xor edx, edx
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f70
sub eax, esi
je 0x404f96
nop dword [eax + eax]
mov cl, byte [ebp + edx - 0x404]
cmp cl, 0x20
je 0x404f91
cmp cl, 9
jne 0x404f96
inc edx
cmp edx, eax
jb 0x404f80
mov eax, dword [ebp - 0x408]
add eax, 4
mov dword [ebp - 0x40c], eax
lea eax, [eax + edi*8]
mov edi, dword [eax]
mov ecx, edi
mov dword [ebp - 0x41c], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404fb5
sub ecx, esi
lea ebx, [ebp - 0x404]
add ebx, edx
mov edx, ebx
lea esi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x404fd0
sub edx, esi
lea eax, [edx + 1]
add eax, ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x41c]
mov esi, ebx
mov dword [eax], edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x404ff5
sub ebx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405000
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x414]
mov esi, dword [ebp - 0x408]
jmp 0x4050bd
mov ebx, dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push 0x4dc85c
push eax
call sub.VCRUNTIME140.dll_strstr
mov esi, eax
add esp, 8
test esi, esi
je 0x40518b
lea eax, [ebp - 0x404]
mov byte [esi], 0
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x408]
mov dword [ecx + edi*8], eax
lea eax, [esi + 1]
push eax
call fcn.00406cf0
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov esi, dword [ebp - 0x408]
push str.Content_Length
mov dword [ebx + edi*8], eax
push dword [esi + edi*8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 0x14
test eax, eax
jne 0x4050a6
push dword [ebx + edi*8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
mov ecx, dword [ebp - 0x418]
add esp, 4
mov dword [ecx], eax
inc edi
lea eax, [esi + 4]
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], eax
mov dword [esi + edi*8], 0
push 1
push 0xfa
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call fcn.004051e0
add esp, 0x14
lea ecx, [esi + 4]
test eax, eax
jg 0x404f02
mov ebx, dword [ebp - 0x418]
mov eax, dword [ebx]
test eax, eax
je 0x405178
inc eax
xor esi, esi
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [ebp - 0x410]
mov ecx, eax
add esp, 4
mov dword [edx], ecx
test ecx, ecx
je 0x40513d
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebx]
cmp esi, eax
jge 0x40513d
push 0
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push dword [ebp + 8]
call edi
mov edx, dword [ebp - 0x410]
test eax, eax
jle 0x40513d
mov ecx, dword [edx]
add esi, eax
test ecx, ecx
jne 0x405117
mov ecx, dword [ebx]
mov eax, dword [edx]
mov byte [ecx + eax], 0
cmp dword [edx], 0
je 0x40514e
cmp esi, dword [ebx]
je 0x405178
mov eax, dword [section..data]
cmp dword [eax], 1
jl 0x405178
push esi
push dword [ebx]
push 0x430
push str.http_parse_simple
call fcn.004048f0
push eax
push str._s__s:_d_content_length_receive_error__d__d_n
call fcn.004048b0
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov eax, dword [section..data]
cmp dword [eax], 1
jl 0x4051b4
push 0
push 0x414
push str.http_parse_simple
call fcn.004048f0
push eax
push str._s__s:_d_Request_failed__bad_header_n
call fcn.004048b0
add esp, 0x14
mov ecx, dword [ebp - 0x408]
push ecx
call fcn.00406af0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret