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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 8
call fcn.00434b4e
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x4c39ad
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 8
call fcn.00434b4e
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0x4c41c4
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4bdab1
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40f1b8
mov eax, 0x4bdab0
push eax
push 3
mov ebx, 0x436110
call fcn.00434b48
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40f1f0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40f1ec
imul eax, dword [ebx]
jmp 0x40f1e1
mov ecx, eax
test ecx, ecx
je 0x40f20f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40f208
push ebx
push eax
call fcn.00434b54
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40f1f6
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
call fcn.00402445
mov eax, 2
cmp eax, ecx
jl 0x40f239
push 1
call fcn.00434b5a
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x40f25f
push eax
mov ebx, eax
call fcn.004012c3
inc eax
push eax
call fcn.00434b4e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f270
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x4bdab0
push dword [ebp - 8]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x40f297
mov eax, 0x4c39ad
jmp 0x40fac2
mov ebx, dword [ebp - 4]
call fcn.0040242c
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40f335
cmp dword [ebp - 0xc], 4
jl 0x40f32d
mov ebx, dword [ebp - 4]
call fcn.00402445
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40f2dd
push 4
call fcn.00434b5a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40f2f0
push 1
call fcn.00434b5a
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x4bdab1
push dword [ebp - 0x10]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f329
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
pop eax
pop ebx
pop ecx
jmp 0x40f2a8
add esp, 0xc
push 0x4bdab0
push dword [ebp - 0x10]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x40f36b
mov eax, 0x4bdab1
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f367
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40f380
mov eax, 0x4bdab0
push eax
push 1
mov ebx, 0x435830
call fcn.00434b48
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f3ac
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x14], 0x50
mov eax, 0x4c39ad
test eax, eax
je 0x40f3d5
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00434b4e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f3e6
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x4bdab0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x40f423
mov eax, 0x4c3a14
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f41d
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.www.
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40f454
mov eax, 0x4bdab0
push eax
push 4
mov ebx, 0x435680
call fcn.00434b48
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40f4cc
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.www.
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040fb6f
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40f4b4
push ebx
call fcn.00434b54
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f4c8
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x4c3b1b
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f4e2
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, 0x4bdab0
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f4fc
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str._HTTP_1.1
push dword [ebp - 0x10]
push 0x4c3e4d
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 6
call fcn.00402809
add esp, 0x18
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f53c
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.Accept:_image_gif__image_jpeg__image_pjpeg__image_pjpeg__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword__application_xamlxml__application_x_ms_xbap__application_x_ms_application__application_vnd.ms_xpsdocument___
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f56f
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.Accept_Encoding:_gzip__deflate
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f5a2
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.Accept_Language:_zh_cn
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f5d5
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.Connection:_Keep_Alive
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f608
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.User_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f63b
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
push str.Host:
push dword [ebp - 0x20]
mov ecx, 4
call fcn.00402809
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f671
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.Content_Type:_application_x_www_form_urlencoded
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f6a4
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0x4bdab0
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x40f6fb
push dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push str.Cookie:
push dword [ebp - 0x20]
mov ecx, 4
call fcn.00402809
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f6f7
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
push str.Connection:_Close
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00402809
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f72a
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push str.POST
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x40f80c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x40f75e
mov eax, 0x4bdab0
push eax
push 1
mov ebx, 0x435160
call fcn.00434b48
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x436850
call fcn.00434b48
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push str.Content_Length:
push dword [ebp - 0x20]
mov ecx, 5
call fcn.00402809
add esp, 0x14
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40f7bf
push ebx
call fcn.00434b54
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f7d3
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00402809
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f803
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x40f83a
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00402809
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f836
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0x4bdab0
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x40f9ac
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4c39e2
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40f87c
mov eax, 0x4bdab0
push eax
push 3
mov ebx, 0x436110
call fcn.00434b48
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40f8b4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40f8b0
imul eax, dword [ebx]
jmp 0x40f8a5
mov ecx, eax
test ecx, ecx
je 0x40f8d3
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40f8cc
push ebx
push eax
call fcn.00434b54
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40f8ba
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
call fcn.0040242c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jl 0x40f9ac
mov ebx, dword [ebp - 4]
call fcn.00402445
mov eax, 0
cmp eax, ecx
jl 0x40f912
push 1
call fcn.00434b5a
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x40f938
push eax
mov ebx, eax
call fcn.004012c3
inc eax
push eax
call fcn.00434b4e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f949
push ebx
call fcn.00434b54
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
call fcn.00402445
mov eax, 1
cmp eax, ecx
jl 0x40f96b
push 1
call fcn.00434b5a
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40f988
mov eax, 0x4bdab0
push eax
push 1
mov ebx, 0x4358d0
call fcn.00434b48
add esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.0040129c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x24], 0
jne 0x40f9bd
mov dword [ebp + 0x24], 0xf
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x40fa8b
mov dword [0x507b80], 1
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40fa28
mov eax, 0x4bdab0
push eax
push 1
mov ebx, 0x4362a0
call fcn.00434b48
add esp, 0x10
mov dword [ebp - 0x28], eax
push 1
push dword [ebp + 0x24]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40fa65
push ebx
call fcn.00434b54
add esp, 4
cmp dword [ebp + 0x34], 0
je 0x40fa86
push 1
push dword [ebp + 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
jmp 0x40fa95
mov dword [0x507b80], 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40fabd
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00434b4e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40fac2
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40fae1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40fadd
imul eax, dword [ebx]
jmp 0x40fad2
mov ecx, eax
test ecx, ecx
je 0x40fb00
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40faf9
push ebx
push eax
call fcn.00434b54
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40fae7
call fcn.00434b54
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40fb18
push ebx
call fcn.00434b54
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40fb28
push ebx
call fcn.00434b54
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40fb38
push ebx
call fcn.00434b54
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40fb48
push ebx
call fcn.00434b54
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40fb58
push ebx
call fcn.00434b54
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00434b54
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x34