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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 8
call fcn.0040a63d
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
push 8
call fcn.0040a63d
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4853a0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push 0
mov eax, 1
call fcn.0040a64f
cmp dword [ebp - 0x20], esp
je 0x4026c0
push 6
call fcn.0040a649
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4855a6
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40d080
call fcn.0040a655
add esp, 0x28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402705
mov eax, 0x4853a0
jmp 0x403235
cmp dword [ebp + 0x10], 0
jne 0x40272e
mov eax, 0x4855c1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402725
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x402771
cmp dword [ebp + 0xc], 0
jne 0x402757
mov eax, 0x4855c1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40274e
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x402771
mov eax, str.POST
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40276d
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push 0xa0000004
push 0
lea eax, [ebp - 8]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.Open
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x40
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40281d
cmp dword [ebp + 0x2c], 1
jne 0x40281d
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 6
push reloc.WS2_32.dll_connect
push 0
push str.Option
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40cfd0
call fcn.0040a655
add esp, 0x34
cmp dword [ebp + 0x3c], 0xffffffff
je 0x4028ae
cmp dword [ebp + 0x3c], 1
jge 0x40283d
mov dword [ebp + 0x3c], 0x3a98
jmp 0x40285a
fild dword [ebp + 0x3c]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x48559e]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.004025f6
mov dword [ebp + 0x3c], eax
push 0xa0000301
push 0
lea eax, [ebp + 0x3c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x3c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x3c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x3c]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.SetTimeouts
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x4c
push 0x80000301
push 0
push 0x3300
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_connect
push 0
push str.Option
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40cfd0
call fcn.0040a655
add esp, 0x34
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4855e2
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x402921
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40297f
push 0xa0000004
push 0
push dword [ebp + 8]
push reloc.WS2_32.dll_connect
push 0
push str.Referer
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Accept:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x4029b2
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x402a12
push reloc.WS2_32.dll_connect
push 0
push 0x48560c
push reloc.WS2_32.dll_connect
push 0
push str.Accept
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Accept_Language:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x402a45
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x402aa5
push reloc.WS2_32.dll_connect
push 0
push str.zh_CN
push reloc.WS2_32.dll_connect
push 0
push str.Accept_Language
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Content_Type:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x402ad8
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x402b38
push reloc.WS2_32.dll_connect
push 0
push str.application_x_www_form_urlencoded
push reloc.WS2_32.dll_connect
push 0
push str.Content_Type
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.User_Agent:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x402b6b
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x402bcb
push reloc.WS2_32.dll_connect
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__qdesk_2.5.1277.202__Windows_NT_6.1__WOW64__Trident_6.0__QQBrowser_7.7.28658.400_
push reloc.WS2_32.dll_connect
push 0
push str.User_Agent
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
push 0x48536c
mov ebx, dword [ebp + 0x44]
push dword [ebx]
call fcn.00401132
add esp, 8
cmp eax, 0
je 0x402f96
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x485587
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x402c0d
mov eax, 0x48536c
push eax
push 3
mov ebx, 0x40b510
call fcn.0040a655
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402c45
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402c41
imul eax, dword [ebx]
jmp 0x402c36
mov ecx, eax
test ecx, ecx
je 0x402c64
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402c5d
push ebx
push eax
call fcn.0040a643
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402c4b
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040261d
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x402f93
mov ebx, dword [ebp - 0xc]
call fcn.00401431
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x402cac
push 4
call fcn.0040a649
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402cbf
push 1
call fcn.0040a649
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x48536c
mov ebx, dword [ebp - 0x20]
push dword [ebx]
call fcn.00401132
add esp, 8
cmp eax, 0
je 0x402f8b
mov ebx, dword [ebp - 0xc]
call fcn.00401431
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x402cff
push 4
call fcn.0040a649
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402d12
push 1
call fcn.0040a649
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 8
call fcn.0040a63d
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x4853a0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 1
mov eax, 0x485706
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call fcn.004032e5
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402d89
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402d99
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402db7
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402db3
imul eax, dword [ebx]
jmp 0x402da8
mov ecx, eax
test ecx, ecx
je 0x402dd6
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402dcf
push ebx
push eax
call fcn.0040a643
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402dbd
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402df2
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401431
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x402e13
push 4
call fcn.0040a649
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402e26
push 1
call fcn.0040a649
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 8
call fcn.0040a63d
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x4853a0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, 0x485706
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call fcn.004032e5
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402e9d
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402ead
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402ecb
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402ec7
imul eax, dword [ebx]
jmp 0x402ebc
mov ecx, eax
test ecx, ecx
je 0x402eea
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402ee3
push ebx
push eax
call fcn.0040a643
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402ed1
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402f06
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x48536c
push dword [ebp - 0x14]
call fcn.00401132
add esp, 8
cmp eax, 0
je 0x402f43
push 0x48536c
push dword [ebp - 0x18]
call fcn.00401132
add esp, 8
cmp eax, 0
je 0x402f43
mov eax, 1
jmp 0x402f45
xor eax, eax
test eax, eax
je 0x402f8b
push 0xa0000004
push 0
lea eax, [ebp - 0x18]
push eax
push 0xa0000004
push 0
lea eax, [ebp - 0x14]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x402c81
add esp, 0xc
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402fed
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push reloc.WS2_32.dll_connect
push 0
push str.Cookie
push reloc.WS2_32.dll_connect
push 0
push str.setRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x34
cmp dword [ebp + 0x18], 0
jne 0x40302a
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x28
jmp 0x40305c
push 0xa0000004
push 0
push dword [ebp + 0x14]
push reloc.WS2_32.dll_connect
push 0
push str.send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40c7b0
call fcn.0040a655
add esp, 0x28
cmp dword [ebp + 0x28], 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4030de
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.GetAllResponseHeaders
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40c750
call fcn.0040a655
add esp, 0x28
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403e3c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4030c2
push ebx
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4030d8
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40314a
push reloc.WS2_32.dll_connect
push 0
push str.Location
push reloc.WS2_32.dll_connect
push 0
push str.GetResponseHeader
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40c750
call fcn.0040a655
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403144
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.ResponseBody
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x40c780
call fcn.0040a655
add esp, 0x28
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 0x20]
push 2
mov ebx, 0x40c860
call fcn.0040a655
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x40c840
call fcn.0040a655
add esp, 0x10
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4031d7
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0x10030
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x40d070
call fcn.0040a655
add esp, 0x10
mov dword [ebp - 0x20], esp
mov eax, 2
call fcn.0040a64f
cmp dword [ebp - 0x20], esp
je 0x403216
push 6
call fcn.0040a649
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x403230
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a63d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403235
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x40d070
call fcn.0040a655
add esp, 0x10
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403269
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403287
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403283
imul eax, dword [ebx]
jmp 0x403278
mov ecx, eax
test ecx, ecx
je 0x4032a6
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40329f
push ebx
push eax
call fcn.0040a643
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40328d
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4032be
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4032ce
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4032de
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x44