Function at 0x410ccc
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.00426af0
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.00426af0
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.00426af0
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 0x410d4f
cmp cl, 0x3f
je 0x410d56
inc esi
mov cl, byte [esi + eax]
cmp cl, bl
jne 0x410d46
or esi, 0xffffffff
cmp esi, ebx
jl 0x410d61
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.0040fcd3
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 0x411218
cmp byte [ebp - 0x25c], bl
je 0x410db8
cmp byte [ebp + eax - 0x25c], 0x3a
je 0x410dbb
inc eax
cmp byte [ebp + eax - 0x25c], bl
jne 0x410da4
or eax, 0xffffffff
cmp eax, ebx
jl 0x410dd5
mov byte [ebp + eax - 0x25c], bl
lea eax, [ebp + eax - 0x25b]
call fcn.0040c8f4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0xffffffff
jne 0x410df8
push dword [ebp - 0xc]
lea ecx, [ebp - 0x25c]
call fcn.004112cd
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x411218
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x410e0d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410e02
sub eax, edx
jmp 0x410e0f
xor eax, eax
cmp eax, ebx
mov eax, str.POST
jne 0x410e1d
mov eax, 0x43183c
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.00411388
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.00411348
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x410e50
cmp byte [eax], bl
jne 0x410e56
lea eax, [ebp - 0x25c]
push eax
push str.Host:__s_r_n
push ebx
push edi
call fcn.00411388
mov eax, dword [esi + 0x24]
add esp, 0x10
cmp eax, ebx
je 0x410e81
cmp byte [eax], bl
je 0x410e81
push eax
push str.Cache_Control:__s_r_n
push ebx
push edi
call fcn.00411388
add esp, 0x10
mov ecx, dword [esi + 4]
cmp ecx, ebx
mov edi, dword [esi + 8]
mov dword [ebp + 8], edi
je 0x410ef0
call fcn.0040dc20
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x410ef0
cmp edi, ebx
je 0x410ea2
cmp byte [edi], bl
jne 0x410ea9
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.00411348
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push 0x4306bc
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.00411348
push ebx
push dword [ebp + 0x10]
mov edi, 0x4318e4
xor eax, eax
mov ecx, edi
call fcn.00411348
jmp 0x410ef5
mov edi, 0x4318e4
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x410f2b
cmp byte [eax], bl
je 0x410f2b
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, str.Cookie:
call fcn.00411348
mov ecx, dword [esi + 0xc]
push ebx
push dword [ebp + 0x10]
xor eax, eax
call fcn.00411348
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, edi
call fcn.00411348
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x410f48
cmp byte [eax], bl
je 0x410f48
push eax
push str.Content_Type:__s_r_n
push ebx
push dword [ebp + 0x10]
call fcn.00411388
add esp, 0x10
cmp dword [esi + 0x1c], ebx
je 0x410f5d
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, str.Connection:_Keep_Alive_r_n
call fcn.00411348
push ebx
push dword [ebp + 0x10]
xor eax, eax
mov ecx, edi
call fcn.00411348
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x410f7c
push ebx
push dword [ebp + 0x10]
xor eax, eax
call fcn.00411348
cmp eax, ebx
jl 0x411210
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x65c]
call fcn.00411428
cmp eax, 0xffffffff
je 0x411218
push dword [ebp + 0xc]
lea eax, [ebp - 0x65c]
push str.HTTP_.__
call fcn.0040fcd3
test eax, eax
pop ecx
pop ecx
je 0x411218
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x65c]
call fcn.00411428
cmp eax, 0xffffffff
je 0x411210
cmp eax, ebx
je 0x4110fd
cmp byte [ebp - 0x65c], bl
lea edi, [ebp - 0x65c]
je 0x410fef
cmp byte [edi], 0x3a
je 0x410ff4
inc edi
cmp byte [edi], bl
jne 0x410fe5
cmp byte [edi], 0x3a
jne 0x410ff7
mov byte [edi], bl
inc edi
cmp byte [edi], 0x20
jne 0x410ffd
inc edi
mov eax, str.Connection
lea ecx, [ebp - 0x65c]
call fcn.0040db3a
test eax, eax
jne 0x41102d
mov eax, str.Keep_Alive
mov ecx, edi
call fcn.0040db3a
test eax, eax
jne 0x410fb8
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 1
jmp 0x410fb8
mov eax, str.Content_Length
lea ecx, [ebp - 0x65c]
call fcn.0040db3a
test eax, eax
jne 0x411053
mov eax, edi
call fcn.0040c8f4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
jmp 0x410fb8
mov eax, str.Set_Cookie
lea ecx, [ebp - 0x65c]
call fcn.0040db3a
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x411074
push 0x400
add eax, 0xc
jmp 0x4110f0
mov eax, dword [eax]
cmp eax, 0xce
jne 0x4110c0
mov eax, str.Content_Range
lea ecx, [ebp - 0x65c]
call fcn.0040db3a
test eax, eax
jne 0x410fb8
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.0040fcd3
add esp, 0x10
jmp 0x410fb8
cmp eax, 0x12e
jne 0x410fb8
mov eax, str.Location
lea ecx, [ebp - 0x65c]
call fcn.0040db3a
test eax, eax
jne 0x410fb8
mov eax, dword [ebp + 0xc]
push 0x200
add eax, 0x40c
mov ecx, edi
call fcn.0040dbed
pop ecx
jmp 0x410fb8
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0x12e
jne 0x411275
push dword [ebp + 0x10]
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
cmp dword [esi + 0x18], ebx
mov dword [ebp + 0x10], eax
je 0x41121b
cmp byte [edi + 0x410], 0x3a
je 0x411222
cmp byte [edi + 0x411], 0x3a
je 0x411222
lea eax, [edi + 0x40c]
cmp byte [eax], 0x2f
jne 0x411162
push 0x100
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00421c80
add esp, 0xc
jmp 0x410dd8
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41116b
sub eax, edx
mov edi, eax
je 0x411185
cmp byte [ebp + edi - 0x15c], 0x2f
je 0x41118f
dec edi
jne 0x411178
cmp byte [ebp + edi - 0x15c], 0x2f
jne 0x411190
inc edi
mov eax, 0x100
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x40c
push eax
lea eax, [ebp + edi - 0x15c]
push eax
call fcn.00421c80
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4111b4
sub eax, ecx
cmp dword [ebp - 8], ebx
mov dword [ebp + 8], eax
je 0x410dd8
mov ecx, dword [ebp + 0xc]
xor eax, eax
add ecx, 0x40c
mov dl, byte [ecx]
jmp 0x4111e1
cmp dl, 0x3f
je 0x4111e8
inc eax
mov dl, byte [eax + ecx]
cmp dl, bl
jne 0x4111d8
or eax, 0xffffffff
cmp eax, ebx
jge 0x410dd8
mov eax, dword [ebp + 8]
mov ecx, 0x100
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 0x411154
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.00410ccc
jmp 0x41121b
mov eax, dword [ebp + 0x10]
jmp 0x41121b