Function at 0x409739
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 0x40979d
call fcn.00409ed2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x5d64d0]
test ebx, ebx
je 0x409792
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [0x5d64d0], eax
jmp 0x40979d
push 0x4d3e94
push dword [0x5d64d0]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x409ea9
push dword [0x5d64c0]
push dword [0x5d64d0]
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 0x4097ed
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 0x409813
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 0x409826
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 0x409851
push ebx
call fcn.0041d001
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409865
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 [0x5d64d0]
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 0x409949
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x409959
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409969
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409979
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409989
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x409999
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4099a9
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4099b9
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4099c9
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4099d9
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 0x4099f5
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 0x409a08
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 0x409a2e
push ebx
call fcn.0041d001
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409a42
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 0x409a77
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 0x409d8c
push 0
mov ebx, 0x41f4b0
call fcn.0041d019
add esp, 4
mov dword [0x5d64d4], eax
mov dword [0x5d64d8], 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 0x409b2c
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 0x409b52
push ebx
call fcn.0041d001
add esp, 4
push 0x4d49cd
push dword [0x5d64a8]
push 0x4d49d9
push dword [0x5d64b0]
push 0x4d4c5c
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 0x409b95
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 0x409ba8
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 0x409bda
push ebx
call fcn.0041d001
add esp, 4
push 0x1388
call fcn.00406b11
push 0x5d64d0
call fcn.00408ae6
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x5d64dc]
test ebx, ebx
je 0x409c08
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [0x5d64dc], 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 0x409c86
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 0x409cac
push ebx
call fcn.0041d001
add esp, 4
push 0x4d4720
push dword [0x5d64dc]
push 0x4d4c82
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 0x409ce4
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 0x409cf7
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 0x409d29
push ebx
call fcn.0041d001
add esp, 4
push 0x4d3e94
push dword [0x5d64dc]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x409d4f
call fcn.00409739
jmp 0x409d87
mov eax, dword [0x5d64dc]
test eax, eax
je 0x409d6d
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 [0x5d64e0]
test ebx, ebx
je 0x409d81
push ebx
call fcn.0041d001
add esp, 4
pop eax
mov dword [0x5d64e0], eax
jmp 0x409ea4
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 0x409e04
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 0x409e2a
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 0x409e5f
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 0x409e72
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 0x409ea4
push ebx
call fcn.0041d001
add esp, 4
jmp 0x409eae
call fcn.00409739
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409ebe
push ebx
call fcn.0041d001
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409ece
push ebx
call fcn.0041d001
add esp, 4
mov esp, ebp
pop ebp
ret