Function at 0x40769e
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
push 0xffffffffffffffff
push 0x12
push 0x16011510
push 0x52010001
call fcn.0041d013
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x407702
call fcn.00407f47
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x5d64b0]
test ebx, ebx
je 0x4076f7
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [0x5d64b0], eax
jmp 0x407702
push 0x4d3e94
push dword [0x5d64b0]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x407e0e
push dword [0x5d64c0]
push dword [0x5d64b0]
push str.RES_CODE_MOBILE
mov ecx, 3
call fcn.0040110c
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 0x407752
mov eax, 0x4d3dfa
push eax
push 1
mov ebx, 0x41e4c0
call fcn.0041d019
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407778
push ebx
call fcn.0041d001
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40778b
mov eax, 0x4d45fd
push eax
push 1
mov eax, 3
mov ebx, 0x477780
call fcn.0041d00d
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4077b6
push ebx
call fcn.0041d001
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4077ca
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x5d64a8]
push dword [0x5d64c4]
push str._strParam
push dword [ebp - 4]
push str._RES_CODE_MOBILE_
push dword [0x5d64b0]
push str.http:__m.guahao.com_json_white_mobile_send_
mov ecx, 7
call fcn.0040110c
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
push 1
mov eax, str.Connection:_keep_alive_r_nAccept:_application_json__text_javascript_____q0.01_r_nX_Requested_With:_XMLHttpRequest_r_nAccept_Encoding:_gzip_deflate_sdch_r_nAccept_Language:_zh_CN_zh_q0.8_r_nAccept_Charset:_GBK_utf_8_q0.7__q0.3
mov dword [ebp - 0x24], eax
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, 0x4d3f51
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004040de
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4078ae
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4078be
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4078ce
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4078de
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4078ee
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4078fe
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40790e
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40791e
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40792e
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40793e
push ebx
call fcn.0041d001
add esp, 4
lea eax, [ebp - 0x3c]
push eax
call fcn.00406581
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40795a
push ebx
call fcn.0041d001
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40796d
mov eax, 0x4d3dfa
push eax
push 1
mov ebx, 0x41ea50
call fcn.0041d019
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x407993
push ebx
call fcn.0041d001
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4079a7
push ebx
call fcn.0041d001
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 0x4079dc
mov eax, 0x4d3dfa
push eax
push 4
mov ebx, 0x41d8d0
call fcn.0041d019
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x407cf1
push 0
mov ebx, 0x41f4b0
call fcn.0041d019
add esp, 4
mov dword [0x5d64c8], eax
mov dword [0x5d64cc], edx
push 0
mov ebx, 0x41f4b0
call fcn.0041d019
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41f3d0
call fcn.0041d019
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41ea50
call fcn.0041d019
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 0x407a91
mov eax, 0x4d3dfa
push eax
push 4
mov ebx, 0x41e090
call fcn.0041d019
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407ab7
push ebx
call fcn.0041d001
add esp, 4
push 0x4d49cd
push dword [0x5d64a8]
push 0x4d49d9
push dword [0x5d64b0]
push 0x4d49e0
push dword [ebp - 0x20]
push 0x4d3e2d
mov ecx, 7
call fcn.0040110c
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407afa
push ebx
call fcn.0041d001
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x407b0d
mov eax, 0x4d3dfa
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x41fe90
call fcn.0041d019
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407b3f
push ebx
call fcn.0041d001
add esp, 4
push 0x1388
call fcn.00406b11
push 0x5d64b0
call fcn.00408ae6
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x5d64a0]
test ebx, ebx
je 0x407b6d
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [0x5d64a0], eax
push 0
mov ebx, 0x41f4b0
call fcn.0041d019
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41f3d0
call fcn.0041d019
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41ea50
call fcn.0041d019
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 0x407beb
mov eax, 0x4d3dfa
push eax
push 4
mov ebx, 0x41e090
call fcn.0041d019
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407c11
push ebx
call fcn.0041d001
add esp, 4
push 0x4d4720
push dword [0x5d64a0]
push 0x4d49ff
push dword [ebp - 0x20]
push 0x4d3e2d
mov ecx, 5
call fcn.0040110c
add esp, 0x14
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407c49
push ebx
call fcn.0041d001
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x407c5c
mov eax, 0x4d3dfa
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x41fe90
call fcn.0041d019
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407c8e
push ebx
call fcn.0041d001
add esp, 4
push 0x4d3e94
push dword [0x5d64a0]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x407cb4
call fcn.0040769e
jmp 0x407cec
mov eax, dword [0x5d64a0]
test eax, eax
je 0x407cd2
push eax
mov ebx, eax
call fcn.004010a1
inc eax
push eax
call fcn.0041d01f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x5d649c]
test ebx, ebx
je 0x407ce6
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [0x5d649c], eax
jmp 0x407e09
push 0
mov ebx, 0x41f4b0
call fcn.0041d019
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41f3d0
call fcn.0041d019
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41ea50
call fcn.0041d019
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 0x407d69
mov eax, 0x4d3dfa
push eax
push 4
mov ebx, 0x41e090
call fcn.0041d019
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407d8f
push ebx
call fcn.0041d001
add esp, 4
push str.__...__r_n
push dword [ebp - 8]
push 0x4d4a2b
push dword [ebp - 0x20]
push 0x4d3e2d
mov ecx, 5
call fcn.0040110c
add esp, 0x14
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407dc4
push ebx
call fcn.0041d001
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x407dd7
mov eax, 0x4d3dfa
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x41fe90
call fcn.0041d019
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407e09
push ebx
call fcn.0041d001
add esp, 4
jmp 0x407f23
push 0
mov ebx, 0x41f4b0
call fcn.0041d019
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41f3d0
call fcn.0041d019
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x41ea50
call fcn.0041d019
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 0x407e86
mov eax, 0x4d3dfa
push eax
push 4
mov ebx, 0x41e090
call fcn.0041d019
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407eac
push ebx
call fcn.0041d001
add esp, 4
push 0x4d4a3e
push dword [ebp - 0x20]
push 0x4d3e2d
mov ecx, 3
call fcn.0040110c
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407ed9
push ebx
call fcn.0041d001
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x407eec
mov eax, 0x4d3dfa
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x41fe90
call fcn.0041d019
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407f1e
push ebx
call fcn.0041d001
add esp, 4
call fcn.0040769e
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407f33
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407f43
push ebx
call fcn.0041d001
add esp, 4
mov esp, ebp
pop ebp
ret