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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x1c
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebx], 0x8cd268
push ebx
mov eax, esp
push eax
call fcn.00411e82
pop ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x49d88d
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.0051fdd5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49d89e
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x49d8b5
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x520490
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 7
jge 0x49d8f8
push dword [ebp + 8]
call fcn.0041e471
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49d8f4
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x1388
push 0x1bb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x49d92b
mov eax, 0x8f750b
jmp 0x49e111
mov eax, str.https:__kyfw.12306.cn_otn_login_loginAysnSuggest
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x49d941
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 3
jg 0x49de65
mov eax, 0x6024b4
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49d968
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x10
call fcn.00424b0f
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push str.https:__kyfw.12306.cn_otn_passcodeNew_getPassCodeNew_moduleloginrandsjrand0.
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49d9a1
push ebx
call fcn.0051fddb
add esp, 4
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push 1
push 0x1388
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, str.Accept:___r_nReferer:_https:__kyfw.12306.cn_otn_login_init_r_nAccept_Language:_zh_cn_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__rv:34.0__Gecko_20100101_Firefox_34.0_r_nAccept_Encoding:_gzip__deflate_r_nConnection:_Keep_Alive
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x49da20
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x49da30
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x49da40
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x49da50
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x49da60
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x49da74
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x49da8b
mov eax, 0x7a6cb2
push eax
push 1
mov ebx, 0x5204b0
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jle 0x49de21
lea eax, [ebp - 0x18]
push eax
call fcn.0040d9f4
mov dword [ebp - 0x28], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.messages
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x49dae8
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49db0e
push ebx
call fcn.0051fddb
add esp, 4
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x49db5b
mov eax, 0x6024b4
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49db2e
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 0x1f4
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x28], esp
je 0x49db56
push 6
call fcn.0051fde1
add esp, 4
jmp 0x49de1c
lea eax, [ebp - 0x18]
push eax
call fcn.00424d0f
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x49db7b
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x49db92
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x521550
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x49dbbb
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x520e80
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49dbe1
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x49dbf5
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004010c8
push reloc.WS2_32.dll_connect
push 0
push 0x6024b4
push reloc.WS2_32.dll_connect
push 0
push 0x88e63b
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x49dc3a
mov eax, 0x6024b4
push eax
push 6
mov ebx, 0x521590
call fcn.0051fded
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49dc64
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push str.randsjrand
push dword [ebp - 0x1c]
push str.randCode
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x28], eax
push 1
push 1
push 1
push 0x1388
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, str.x_requested_with:_XMLHttpRequest_r_nAccept_Language:_zh_cn_r_nReferer:_https:__kyfw.12306.cn_otn_login_init_r_nAccept:___r_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__rv:34.0__Gecko_20100101_Firefox_34.0_r_nHost:_kyfw.12306.cn_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache
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 1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push 1
push 1
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_checkRandCodeAnsyn
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x49dcfb
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49dd0b
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x49dd1b
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x49dd2b
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x49dd3b
push ebx
call fcn.0051fddb
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x49dd4e
mov eax, 0x7a6cb2
push eax
push 1
mov ebx, 0x522180
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x49dd74
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x49dd88
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49dd9f
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x520490
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jle 0x49de1c
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str._result_:_1___msg_:_randCodeRight_
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49ddf0
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x49de1c
mov dword [ebp - 4], 1
jmp 0x49de65
jmp 0x49de5f
mov dword [ebp - 0x28], esp
push 0x3e8
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x28], esp
je 0x49de45
push 6
call fcn.0051fde1
add esp, 4
mov eax, 0x6024b4
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49de5b
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
pop ecx
jmp 0x49d947
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str._result_:_1___msg_:_randCodeRight_
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49de99
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x49dec0
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x49ded4
mov eax, 0x8f769a
jmp 0x49e111
push 0
mov ebx, 0x523740
call fcn.0051fded
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
push 0x8d0a44
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.userDTO.password
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.loginUserDTO.user_name
mov ecx, 6
call fcn.0040113b
add esp, 0x18
mov dword [ebp - 0x28], eax
push 1
push 1
push 1
push 0x1b58
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__rv:34.0__Gecko_20100101_Firefox_34.0_r_nAccept:___r_nAccept_Language:_zh_cn_zh_q0.8_en_us_q0.5_en_q0.3_r_nAccept_Encoding:_gzip__deflate_r_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_r_nX_Requested_With:_XMLHttpRequest_r_nReferer:_https:__kyfw.12306.cn_otn_login_init_r_nConnection:_keep_alive_r_nPragma:_no_cache_r_nCache_Control:_no_cache
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 1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push 1
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49df83
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x49df93
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x49dfa3
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x49dfb3
push ebx
call fcn.0051fddb
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.0040d9f4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x49dfcf
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x49dfe3
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x523740
call fcn.0051fded
add esp, 4
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00401004
mov dword [ebp - 0x24], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49e02f
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x520490
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 5
jge 0x49e059
mov eax, 0x8f76b4
jmp 0x49e111
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str._status_:true
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49e08a
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x49e0d0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49e0c6
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.0051fdd5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x49e111
lea eax, [ebp - 0x20]
push eax
call fcn.00427145
mov dword [ebp - 0x28], eax
push 0x8d0d2d
push dword [ebp - 0x28]
push 0x8d08b3
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49e109
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x49e111
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49e122
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x49e142
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49e152
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x49e162
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x49e172
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x49e182
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10