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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 8
call fcn.0041599e
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0041599e
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x4b2cab
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
push 0
mov eax, 0
call fcn.004159ce
cmp dword [ebp - 0x18], esp
je 0x401e00
push 6
call fcn.004159b0
add esp, 4
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.WinHttp.WinHttpRequest.5.1
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x4197b0
call fcn.004159aa
add esp, 0x28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401e75
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.WinHttp.WinHttpRequest.5.1___
push 3
mov ebx, 0x417d50
call fcn.004159aa
add esp, 0x28
mov eax, 0x4b2cab
jmp 0x4028b3
push 0x4b2c7a
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
jne 0x401eae
mov eax, 0x4b2d7a
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401ea8
push ebx
call fcn.004159a4
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x4b2c7a
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
je 0x401f5e
push 0xa0000004
push 0
push dword [ebp + 0x2c]
push 0x80000301
push 0
push 2
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setProxy
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push 0x4b2c7a
mov ebx, dword [ebp + 0x3c]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
je 0x401f5e
push 0xa0000004
push 0
push dword [ebp + 0x44]
push 0xa0000004
push 0
push dword [ebp + 0x3c]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setProxyCredentials
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push 0x4b2c7a
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
jne 0x401fb0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x401f97
push eax
mov ebx, eax
call fcn.00401021
inc eax
push eax
call fcn.0041599e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x4c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401faa
push ebx
call fcn.004159a4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x4c]
mov dword [ebx], eax
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push 0xa0000004
push 0
push dword [ebp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b2d9b
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x4c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b2da0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Accept
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.application_x_www_form_urlencoded
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Content_Type
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push 0x4b2c7a
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
je 0x4020d7
push 0xa0000004
push 0
push dword [ebp + 0x4c]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Referrer
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.zh_cn
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Accept_Language
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.User_Agent
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push dword [ebp + 8]
call fcn.0040294b
mov dword [ebp - 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x402175
mov eax, 0x4b2c7a
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Host
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4021ba
push ebx
call fcn.004159a4
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x4021cf
mov eax, 0x4b2c7a
push eax
push 1
mov ebx, 0x415ef0
call fcn.004159aa
add esp, 0x10
push 0x80000301
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Content_Length
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Keep_Alive
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Connection
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.no_cache
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Cache_Control
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 6
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
push 0x4b2c7a
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
je 0x402337
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Cookie
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x34
cmp dword [ebp + 0x34], 0
jne 0x40234d
mov dword [ebp + 0x34], 0x3a98
jmp 0x40236a
fild dword [ebp + 0x34]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x4b2e9d]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401d5d
mov dword [ebp + 0x34], eax
push 0xa0000301
push 0
lea eax, [ebp + 0x34]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x34]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x34]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x34]
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b2ea5
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x4c
push 0xa0000004
push 0
push dword [ebp + 0x14]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x418790
call fcn.004159aa
add esp, 0x28
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.responseBody
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x418760
call fcn.004159aa
add esp, 0x28
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0x418890
call fcn.004159aa
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x418850
call fcn.004159aa
add esp, 0x10
call fcn.004159a4
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40247d
push ebx
call fcn.004159a4
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x28], 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402875
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.GetallResponseHeaders
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x418730
call fcn.004159aa
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4024df
push ebx
call fcn.004159a4
add esp, 4
pop eax
mov dword [ebp - 0xc], 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.Set_Cookie
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402514
mov eax, 0x4b2c7a
push eax
push 4
mov ebx, 0x416410
call fcn.004159aa
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x402875
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b2ee4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402559
mov eax, 0x4b2c7a
push eax
push 3
mov ebx, 0x416cb0
call fcn.004159aa
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402591
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40258d
imul eax, dword [ebx]
jmp 0x402582
mov ecx, eax
test ecx, ecx
je 0x4025b0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4025a9
push ebx
push eax
call fcn.004159a4
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402597
call fcn.004159a4
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
call fcn.00401c1b
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x402872
mov ebx, dword [ebp - 0x10]
call fcn.00401c34
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x4025f8
push 4
call fcn.004159b0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40260b
push 1
call fcn.004159b0
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Set_Cookie
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x402646
mov eax, 0x4b2c7a
push eax
push 4
mov ebx, 0x416410
call fcn.004159aa
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jle 0x40286a
mov ebx, dword [ebp - 0x10]
call fcn.00401c34
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x402683
push 4
call fcn.004159b0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402696
push 1
call fcn.004159b0
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 1
mov eax, 0x4b2ee7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, 0x4b2ee9
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call fcn.00402c33
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4026d5
push ebx
call fcn.004159a4
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4026e5
push ebx
call fcn.004159a4
add esp, 4
push 0x4b2c7a
push dword [ebp - 0x24]
call fcn.004010e8
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402713
push ebx
call fcn.004159a4
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x40286a
push 0x4b2c7a
mov ebx, dword [ebp + 0x24]
push dword [ebx]
call fcn.004010e8
add esp, 8
cmp eax, 0
je 0x40276e
push 0x4b2eeb
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402768
push ebx
call fcn.004159a4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
call fcn.00401c34
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x40278b
push 4
call fcn.004159b0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40279e
push 1
call fcn.004159b0
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 1
mov eax, 0x4b2ee7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, str.Set_Cookie:
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call fcn.00402c33
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4027dd
push ebx
call fcn.004159a4
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4027ed
push ebx
call fcn.004159a4
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402800
mov eax, 0x4b2c7a
push eax
push 1
mov ebx, 0x416aa0
call fcn.004159aa
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402826
push ebx
call fcn.004159a4
add esp, 4
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40284e
push ebx
call fcn.004159a4
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402864
push ebx
call fcn.004159a4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x4025cd
add esp, 0xc
mov dword [ebp - 0x18], esp
mov eax, 1
call fcn.004159ce
cmp dword [ebp - 0x18], esp
je 0x402894
push 6
call fcn.004159b0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4028ae
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0041599e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4028b3
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4197a0
call fcn.004159aa
add esp, 0x10
call fcn.004159a4
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4028e7
push ebx
call fcn.004159a4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4028f7
push ebx
call fcn.004159a4
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402915
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402911
imul eax, dword [ebx]
jmp 0x402906
mov ecx, eax
test ecx, ecx
je 0x402934
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40292d
push ebx
push eax
call fcn.004159a4
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40291b
call fcn.004159a4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x4c