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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.0040c04e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x5cd750]
test ebx, ebx
je 0x40b721
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [0x5cd750], eax
push 0x4cbbd9
push dword [0x5cd750]
call fcn.00401113
add esp, 8
cmp eax, 0
je 0x40bf15
push dword [0x5cd760]
push dword [0x5cd750]
push str.RES_CODE_MOBILE
mov ecx, 3
call fcn.0040107e
add esp, 0xc
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b777
mov eax, 0x4cbb50
push eax
push 1
mov ebx, 0x413ec0
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b79d
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40b7b0
mov eax, 0x4cc248
push eax
push 1
mov eax, 3
mov ebx, 0x46b0d0
call fcn.00412c48
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b7db
push ebx
call fcn.00412c3c
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b7ef
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414d90
call fcn.00412c54
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40b86b
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413a90
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b891
push ebx
call fcn.00412c3c
add esp, 4
push str.__..._r_n
push dword [0x5cd750]
push 0x4ccbdf
push dword [ebp - 0x20]
push 0x4cc17c
mov ecx, 5
call fcn.0040107e
add esp, 0x14
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b8c9
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40b8dc
mov eax, 0x4cbb50
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x415880
call fcn.00412c54
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b90e
push ebx
call fcn.00412c3c
add esp, 4
push dword [0x5cd74c]
push dword [0x5cd764]
push str._strParam
push dword [ebp - 4]
push str._RES_CODE_MOBILE_
push dword [0x5cd750]
push str.http:__m.guahao.com_json_white_mobile_send_
mov ecx, 7
call fcn.0040107e
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_5_0_1_like_Mac_OS_X__AppleWebKit_534.46__KHTML__like_Gecko__Mobile_9A405
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, 0x4cbb7a
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040562c
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b9ed
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40b9fd
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40ba0d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ba1d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ba2d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ba3d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ba4d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ba5d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ba6d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40ba7d
push ebx
call fcn.00412c3c
add esp, 4
lea eax, [ebp - 0x3c]
push eax
call fcn.004079e6
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40ba99
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40baac
mov eax, 0x4cbb50
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40bad2
push ebx
call fcn.00412c3c
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bae6
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [ebp - 8], eax
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._hasError_:false__code_:_1___message_:null
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40bb1b
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413530
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40bdf8
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
mov dword [0x5cd754], eax
mov dword [0x5cd758], edx
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414d90
call fcn.00412c54
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40bbd0
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413a90
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bbf6
push ebx
call fcn.00412c3c
add esp, 4
push 0x4ccc71
push dword [0x5cd74c]
push 0x4ccc83
push dword [0x5cd750]
push 0x4ccc8c
push dword [ebp - 0x20]
push 0x4cc17c
mov ecx, 7
call fcn.0040107e
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bc39
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40bc4c
mov eax, 0x4cbb50
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x415880
call fcn.00412c54
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40bc7e
push ebx
call fcn.00412c3c
add esp, 4
push 0xbb8
call fcn.004081de
push 0x5cd750
call fcn.0040c6ec
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x5cd744]
test ebx, ebx
je 0x40bcac
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [0x5cd744], eax
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414d90
call fcn.00412c54
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40bd2a
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413a90
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bd50
push ebx
call fcn.00412c3c
add esp, 4
push 0x4cbd75
push dword [0x5cd744]
push 0x4cccaf
push dword [ebp - 0x20]
push 0x4cc17c
mov ecx, 5
call fcn.0040107e
add esp, 0x14
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bd88
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40bd9b
mov eax, 0x4cbb50
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x415880
call fcn.00412c54
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40bdcd
push ebx
call fcn.00412c3c
add esp, 4
push 0x4cbbd9
push dword [0x5cd744]
call fcn.00401113
add esp, 8
cmp eax, 0
jne 0x40bdf3
call fcn.0040b6eb
jmp 0x40bdf3
jmp 0x40bf10
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414d90
call fcn.00412c54
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40be70
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413a90
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40be96
push ebx
call fcn.00412c3c
add esp, 4
push str.__...__r_n
push dword [ebp - 8]
push 0x4cccdb
push dword [ebp - 0x20]
push 0x4cc17c
mov ecx, 5
call fcn.0040107e
add esp, 0x14
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40becb
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40bede
mov eax, 0x4cbb50
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x415880
call fcn.00412c54
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40bf10
push ebx
call fcn.00412c3c
add esp, 4
jmp 0x40c02a
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414d90
call fcn.00412c54
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40bf8d
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413a90
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bfb3
push ebx
call fcn.00412c3c
add esp, 4
push 0x4cccee
push dword [ebp - 0x20]
push 0x4cc17c
mov ecx, 3
call fcn.0040107e
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bfe0
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40bff3
mov eax, 0x4cbb50
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x415880
call fcn.00412c54
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40c025
push ebx
call fcn.00412c3c
add esp, 4
call fcn.0040b6eb
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c03a
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c04a
push ebx
call fcn.00412c3c
add esp, 4
mov esp, ebp
pop ebp
ret