Function at 0x40ffc2
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push ebx
push esi
push edi
push 0x60c
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
call fcn.00425710
add esp, 0xc
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x58], bl
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
stosb byte es:[edi], al
lea eax, [ebp - 0x25b]
push ebx
push eax
mov byte [ebp - 0x25c], bl
call fcn.00425710
add esp, 0xc
push 0xfe
lea eax, [ebp - 0x15a]
push ebx
push eax
mov byte [ebp - 0x15c], 0x2f
mov byte [ebp - 0x15b], bl
call fcn.00425710
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov cl, byte [eax]
add esp, 0xc
mov dword [ebp - 8], ebx
xor esi, esi
jmp 0x410045
cmp cl, 0x3f
je 0x41004c
inc esi
mov cl, byte [esi + eax]
cmp cl, bl
jne 0x41003c
or esi, 0xffffffff
cmp esi, ebx
jl 0x410057
lea ecx, [eax + esi + 1]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x15b]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push str._:_____
mov dword [ebp - 0xc], 0x50
call fcn.0040efc9
add esp, 0x10
push 5
lea edi, [ebp - 0x58]
mov esi, str.http
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x41050e
cmp byte [ebp - 0x25c], bl
je 0x4100ae
cmp byte [ebp + eax - 0x25c], 0x3a
je 0x4100b1
inc eax
cmp byte [ebp + eax - 0x25c], bl
jne 0x41009a
or eax, 0xffffffff
cmp eax, ebx
jl 0x4100cb
mov byte [ebp + eax - 0x25c], bl
lea eax, [ebp + eax - 0x25b]
call fcn.0040bbdd
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4100ee
push dword [ebp - 0xc]
lea ecx, [ebp - 0x25c]
call fcn.004105c3
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x41050e
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x410103
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4100f8
sub eax, edx
jmp 0x410105
xor eax, eax
cmp eax, ebx
mov eax, str.POST
jne 0x410113
mov eax, 0x4305e0
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x15c]
push ecx
push eax
push str._s__s_HTTP_1.0_r_n
push ebx
push edi
call fcn.0041067e
add esp, 0x14
push ebx
push edi
xor eax, eax
mov ecx, str.User_Agent:_Mozilla_5.0__compatible__Viper_4.0__r_n
call fcn.0041063e
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x410146
cmp byte [eax], bl
jne 0x41014c
lea eax, [ebp - 0x25c]
push eax
push str.Host:__s_r_n
push ebx
push edi
call fcn.0041067e
mov eax, dword [esi + 0x24]
add esp, 0x10
cmp eax, ebx
je 0x410177
cmp byte [eax], bl
je 0x410177
push eax
push str.Cache_Control:__s_r_n
push ebx
push edi
call fcn.0041067e
add esp, 0x10
mov ecx, dword [esi + 4]
cmp ecx, ebx
mov edi, dword [esi + 8]
mov dword [ebp + 8], edi
je 0x4101e6
call fcn.0040cf19
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4101e6
cmp edi, ebx
je 0x410198
cmp byte [edi], bl
jne 0x41019f
mov dword [ebp + 8], str.application_x_www_form_urlencoded
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, str.Content_Length:
call fcn.0041063e
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push 0x42f5f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push dword [ebp + 0x10]
xor eax, eax
lea ecx, [ebp - 0x30]
call fcn.0041063e
push ebx
push dword [ebp + 0x10]
mov edi, 0x430688
xor eax, eax
mov ecx, edi
call fcn.0041063e
jmp 0x4101eb
mov edi, 0x430688
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x410221
cmp byte [eax], bl
je 0x410221
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, str.Cookie:
call fcn.0041063e
mov ecx, dword [esi + 0xc]
push ebx
push dword [ebp + 0x10]
xor eax, eax
call fcn.0041063e
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, edi
call fcn.0041063e
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x41023e
cmp byte [eax], bl
je 0x41023e
push eax
push str.Content_Type:__s_r_n
push ebx
push dword [ebp + 0x10]
call fcn.0041067e
add esp, 0x10
cmp dword [esi + 0x1c], ebx
je 0x410253
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, str.Connection:_Keep_Alive_r_n
call fcn.0041063e
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, edi
call fcn.0041063e
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x410272
push ebx
push dword [ebp + 0x10]
xor eax, eax
call fcn.0041063e
cmp eax, ebx
jl 0x410506
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x65c]
call fcn.0041071e
cmp eax, 0xffffffff
je 0x41050e
push dword [ebp + 0xc]
lea eax, [ebp - 0x65c]
push str.HTTP_.__
call fcn.0040efc9
test eax, eax
pop ecx
pop ecx
je 0x41050e
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x65c]
call fcn.0041071e
cmp eax, 0xffffffff
je 0x410506
cmp eax, ebx
je 0x4103f3
cmp byte [ebp - 0x65c], bl
lea edi, [ebp - 0x65c]
je 0x4102e5
cmp byte [edi], 0x3a
je 0x4102ea
inc edi
cmp byte [edi], bl
jne 0x4102db
cmp byte [edi], 0x3a
jne 0x4102ed
mov byte [edi], bl
inc edi
cmp byte [edi], 0x20
jne 0x4102f3
inc edi
mov eax, str.Connection
lea ecx, [ebp - 0x65c]
call fcn.0040ce33
test eax, eax
jne 0x410323
mov eax, str.Keep_Alive
mov ecx, edi
call fcn.0040ce33
test eax, eax
jne 0x4102ae
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 1
jmp 0x4102ae
mov eax, str.Content_Length
lea ecx, [ebp - 0x65c]
call fcn.0040ce33
test eax, eax
jne 0x410349
mov eax, edi
call fcn.0040bbdd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
jmp 0x4102ae
mov eax, str.Set_Cookie
lea ecx, [ebp - 0x65c]
call fcn.0040ce33
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x41036a
push 0x400
add eax, 0xc
jmp 0x4103e6
mov eax, dword [eax]
cmp eax, 0xce
jne 0x4103b6
mov eax, str.Content_Range
lea ecx, [ebp - 0x65c]
call fcn.0040ce33
test eax, eax
jne 0x4102ae
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x414]
push ecx
lea ecx, [eax + 0x410]
push ecx
add eax, 0x40c
push eax
push str.bytes___
mov eax, edi
call fcn.0040efc9
add esp, 0x10
jmp 0x4102ae
cmp eax, 0x12e
jne 0x4102ae
mov eax, str.Location
lea ecx, [ebp - 0x65c]
call fcn.0040ce33
test eax, eax
jne 0x4102ae
mov eax, dword [ebp + 0xc]
push 0x200
add eax, 0x40c
mov ecx, edi
call fcn.0040cee6
pop ecx
jmp 0x4102ae
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0x12e
jne 0x41056b
push dword [ebp + 0x10]
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
cmp dword [esi + 0x18], ebx
mov dword [ebp + 0x10], eax
je 0x410511
cmp byte [edi + 0x410], 0x3a
je 0x410518
cmp byte [edi + 0x411], 0x3a
je 0x410518
lea eax, [edi + 0x40c]
cmp byte [eax], 0x2f
jne 0x410458
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00420cd0
add esp, 0xc
jmp 0x4100ce
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410461
sub eax, edx
mov edi, eax
je 0x41047b
cmp byte [ebp + edi - 0x15c], 0x2f
je 0x410485
dec edi
jne 0x41046e
cmp byte [ebp + edi - 0x15c], 0x2f
jne 0x410486
inc edi
mov eax, pe_nt_image_headers32
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x40c
push eax
lea eax, [ebp + edi - 0x15c]
push eax
call fcn.00420cd0
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4104aa
sub eax, ecx
cmp dword [ebp - 8], ebx
mov dword [ebp + 8], eax
je 0x4100ce
mov ecx, dword [ebp + 0xc]
xor eax, eax
add ecx, 0x40c
mov dl, byte [ecx]
jmp 0x4104d7
cmp dl, 0x3f
je 0x4104de
inc eax
mov dl, byte [eax + ecx]
cmp dl, bl
jne 0x4104ce
or eax, 0xffffffff
cmp eax, ebx
jge 0x4100ce
mov eax, dword [ebp + 8]
mov ecx, pe_nt_image_headers32
sub ecx, eax
sub ecx, edi
push ecx
mov ecx, dword [ebp - 8]
dec ecx
add eax, edi
push ecx
lea eax, [ebp + eax - 0x15c]
jmp 0x41044a
push dword [ebp + 0x10]
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
dec eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
lea eax, [edi + 0x40c]
push eax
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x85c]
push 0xffffffffffffffff
mov dword [ebp - 0x38], eax
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.0040ffc2
jmp 0x410511
mov eax, dword [ebp + 0x10]
jmp 0x410511