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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 8
call fcn.00408dc4
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.00408dc4
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x47ea90
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, 1
call fcn.00408ddc
cmp dword [ebp - 0x18], esp
je 0x403a08
push 6
call fcn.00408dd6
add esp, 4
push 0
push 0
push 0
push VariantClear
push 0
push str.WinHttp.WinHttpRequest.5.1
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40b9a0
call fcn.00408dd0
add esp, 0x28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x403af3
push 0
push 0
push 0
push VariantClear
push 0
push str.MSXML2.ServerXMLHTTP.6.0
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40b9a0
call fcn.00408dd0
add esp, 0x28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x403af3
push 0
push 0
push 0
push VariantClear
push 0
push str.MSXML2.ServerXMLHTTP.5.0
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40b9a0
call fcn.00408dd0
add esp, 0x28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x403af3
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push VariantClear
push 0
push 0x497bed
push 3
mov ebx, 0x40aa50
call fcn.00408dd0
add esp, 0x28
mov eax, 0x47ea90
jmp 0x404353
push 0x47ea8c
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.004038d6
add esp, 8
cmp eax, 0
jne 0x403b2c
mov eax, 0x497bfe
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403b26
push ebx
call fcn.00408dca
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x47ea8c
mov ebx, dword [ebp + 0x3c]
push dword [ebx]
call fcn.004038d6
add esp, 8
cmp eax, 0
je 0x403bdc
push 0xa0000004
push 0
push dword [ebp + 0x3c]
push 0x80000301
push 0
push 2
push VariantClear
push 0
push str.setProxy
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
push 0x47ea8c
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
call fcn.004038d6
add esp, 8
cmp eax, 0
je 0x403bdc
push 0xa0000004
push 0
push dword [ebp + 0x54]
push 0xa0000004
push 0
push dword [ebp + 0x4c]
push VariantClear
push 0
push str.setProxyCredentials
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
push 0x47ea8c
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.004038d6
add esp, 8
cmp eax, 0
jne 0x403c32
push str._r_nAccept:___r_nAccept_Language:_zh_cn_r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0__r_nContent_Type:_application_x_www_form_urlencoded
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ecx, 3
call fcn.0040108c
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403c2c
push ebx
call fcn.00408dca
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
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 VariantClear
push 0
push 0x497ccd
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x4c
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push VariantClear
push 0
push str.Referrer
push VariantClear
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
push VariantClear
push 0
push str.image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword___
push VariantClear
push 0
push str.Accept
push VariantClear
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
push VariantClear
push 0
push str.zh_cn
push VariantClear
push 0
push str.Accept_Language
push VariantClear
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
push VariantClear
push 0
push str.application_x_www_form_urlencoded
push VariantClear
push 0
push str.Content_Type
push VariantClear
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
push 0x47ea8c
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.004038d6
add esp, 8
cmp eax, 0
je 0x403dd7
push 0xa0000004
push 0
push dword [ebp + 0x2c]
push VariantClear
push 0
push str.Cookie
push VariantClear
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x34
cmp dword [ebp + 0x44], 0
jne 0x403ded
mov dword [ebp + 0x44], 0x7530
jmp 0x403e0a
fild dword [ebp + 0x44]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x497de4]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004021f1
mov dword [ebp + 0x44], eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push VariantClear
push 0
push 0x497dec
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x4c
push 0xa0000004
push 0
push dword [ebp + 0x14]
push VariantClear
push 0
push str.send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40b060
call fcn.00408dd0
add esp, 0x28
push 0
push 0
push 0
push VariantClear
push 0
push str.responseBody
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40b030
call fcn.00408dd0
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, 0x40b130
call fcn.00408dd0
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, 0x40b0f0
call fcn.00408dd0
add esp, 0x10
call fcn.00408dca
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403f1d
push ebx
call fcn.00408dca
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x404315
push 0
push 0
push 0
push VariantClear
push 0
push str.GetallResponseHeaders
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40afa0
call fcn.00408dd0
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403f7f
push ebx
call fcn.00408dca
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 VariantClear
push 0
push str.Set_Cookie
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403fb4
mov eax, 0x47ea8c
push eax
push 4
mov ebx, 0x409390
call fcn.00408dd0
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x404315
push 0
push 0
push 0
push VariantClear
push 0
push 0x47ea8d
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403ff9
mov eax, 0x47ea8c
push eax
push 3
mov ebx, 0x409c80
call fcn.00408dd0
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 0x404031
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40402d
imul eax, dword [ebx]
jmp 0x404022
mov ecx, eax
test ecx, ecx
je 0x404050
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x404049
push ebx
push eax
call fcn.00408dca
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x404037
call fcn.00408dca
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
call fcn.00403973
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 0x404312
mov ebx, dword [ebp - 0x10]
call fcn.00402218
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x404098
push 4
call fcn.00408dd6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4040ab
push 1
call fcn.00408dd6
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 VariantClear
push 0
push str.Set_Cookie
push VariantClear
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x4040e6
mov eax, 0x47ea8c
push eax
push 4
mov ebx, 0x409390
call fcn.00408dd0
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jle 0x40430a
mov ebx, dword [ebp - 0x10]
call fcn.00402218
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x404123
push 4
call fcn.00408dd6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404136
push 1
call fcn.00408dd6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 1
mov eax, 0x497e2b
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, 0x497e2d
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call fcn.004043e3
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404175
push ebx
call fcn.00408dca
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404185
push ebx
call fcn.00408dca
add esp, 4
push 0x47ea8c
push dword [ebp - 0x24]
call fcn.004038d6
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 0x4041b3
push ebx
call fcn.00408dca
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x40430a
push 0x47ea8c
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.004038d6
add esp, 8
cmp eax, 0
je 0x40420e
push 0x497e2f
mov ebx, dword [ebp + 0x34]
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 + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404208
push ebx
call fcn.00408dca
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
call fcn.00402218
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x40422b
push 4
call fcn.00408dd6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40423e
push 1
call fcn.00408dd6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 1
mov eax, 0x497e2b
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.004043e3
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40427d
push ebx
call fcn.00408dca
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40428d
push ebx
call fcn.00408dca
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4042a0
mov eax, 0x47ea8c
push eax
push 1
mov ebx, 0x4099c0
call fcn.00408dd0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4042c6
push ebx
call fcn.00408dca
add esp, 4
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x34]
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 0x4042ee
push ebx
call fcn.00408dca
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404304
push ebx
call fcn.00408dca
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x40406d
add esp, 0xc
mov dword [ebp - 0x18], esp
mov eax, 2
call fcn.00408ddc
cmp dword [ebp - 0x18], esp
je 0x404334
push 6
call fcn.00408dd6
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40434e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00408dc4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404353
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x40b970
call fcn.00408dd0
add esp, 0x10
call fcn.00408dca
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404387
push ebx
call fcn.00408dca
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404397
push ebx
call fcn.00408dca
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4043b5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4043b1
imul eax, dword [ebx]
jmp 0x4043a6
mov ecx, eax
test ecx, ecx
je 0x4043d4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4043cd
push ebx
push eax
call fcn.00408dca
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4043bb
call fcn.00408dca
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54