Function at 0x45777b
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
mov dword [ebp - 0xc], 0
push 8
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x7a6cb2
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
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 - 0x28], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 0x28], 0
je 0x457828
mov eax, str.0X00
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x457805
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x8a6167
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45781f
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x45785c
mov eax, str.ADULT
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x45783e
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x8a616b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x457858
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
call fcn.00406b12
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45787d
mov eax, 0xfffffffe
jmp 0x457f76
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0xc]
cmp eax, 0
jge 0x457899
push 0xa
call fcn.0051fde1
add esp, 4
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
call fcn.004088c1
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.0051fdd5
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x30]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x10]
call fcn.004088c1
pop edx
test ecx, ecx
je 0x4578f5
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4578eb
push ebx
call fcn.0051fddb
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x4578da
pop edx
pop edi
test edx, edx
je 0x457903
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x10]
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [0xba7878]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 0x20]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
test eax, eax
je 0x45794c
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 - 0x14]
test ebx, ebx
je 0x45795d
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x457a32
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x34], ebx
push 1
push dword [ebp - 0x34]
call fcn.0043cfc8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x3c]
push dword [ebx]
push str._2C1_2C
push dword [ebp - 0x38]
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x457a0e
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x457a24
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x45796d
add esp, 0xc
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x457b13
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push str._2C_2CN
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push 0x8d24f0
mov ebx, dword [ebp - 0x30]
push dword [ebx]
push str._2C0_2C
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov ecx, 7
call fcn.0040113b
add esp, 0x1c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x457acb
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jge 0x457b0b
push 0x8cd521
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x457b07
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
pop eax
pop ebx
pop ecx
jmp 0x457a41
add esp, 0xc
push dword [ebp - 0x1c]
push str.passengerTicketStr
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x457b42
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
call fcn.00406b12
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x457c26
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x30], ebx
push 0x8d1edb
mov ebx, dword [ebp - 0x30]
push dword [ebx]
call fcn.0040102b
add esp, 8
cmp eax, 0
je 0x457c1e
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x18]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x34], ebx
push 0x8cd521
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push 0x8d24f0
mov ebx, dword [ebp - 0x30]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 5
call fcn.0040113b
add esp, 0x14
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x457c1a
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
pop eax
pop ebx
pop ecx
jmp 0x457b5d
add esp, 0xc
push dword [ebp - 0x20]
push str.oldPassengerStr
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x457c55
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x8f2faa
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push 0x8d1eff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.tour_flagdcrandCode
push dword [ebp - 0x20]
push 0x8d1eff
push dword [ebp - 0x1c]
push str.cancel_flag2bed_level_order_num000000000000000000000000000000
mov ecx, 0xa
call fcn.0040113b
add esp, 0x28
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x457cab
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push 1
push 0x2710
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
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:_application_json__text_javascript_____q0.01_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_confirmPassenger_initDc_r_nConnection:_keep_alive_r_nPragma:_no_cache_r_nCache_Control:_no_cache
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
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x24]
push eax
push 1
push 1
mov eax, str.https:__kyfw.12306.cn_otn_confirmPassenger_checkOrderInfo
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x457d28
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x457d38
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x457d48
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x457d58
push ebx
call fcn.0051fddb
add esp, 4
lea eax, [ebp - 0x44]
push eax
call fcn.0040d9f4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x457d74
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x457d88
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
push 0x6024b4
push dword [ebp - 0x28]
call fcn.0040102b
add esp, 8
cmp eax, 0
jne 0x457daf
mov eax, 0xffffffff
jmp 0x457f76
mov eax, str.errMsg
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00413d81
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x457dd7
push ebx
call fcn.0051fddb
add esp, 4
push str.randCodeExpired
push dword [ebp - 0x34]
call fcn.0040102b
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x457e05
push ebx
call fcn.0051fddb
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x457e19
mov eax, 0xa
jmp 0x457f76
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._submitStatus_:true
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x457e4a
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x457f6c
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x457e7d
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x520490
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x457eac
mov eax, 0xffffffff
jmp 0x457f76
lea eax, [ebp - 0x28]
push eax
call fcn.00427145
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x457ecc
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
push 0x6024b4
push dword [ebp - 0x2c]
call fcn.0040102b
add esp, 8
cmp eax, 0
je 0x457f58
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x8f324f
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x457f1a
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x457f49
mov eax, 0xffffffff
jmp 0x457f76
mov eax, 0
jmp 0x457f76
mov eax, 0xffffffff
jmp 0x457f76
mov eax, 1
jmp 0x457f76
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x457f87
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x457f97
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x457fb5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x457fb1
imul eax, dword [ebx]
jmp 0x457fa6
mov ecx, eax
test ecx, ecx
je 0x457fd4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x457fcd
push ebx
push eax
call fcn.0051fddb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x457fbb
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x457fec
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x457ffc
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x45800c
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x45801c
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x45802c
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x45803c
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x28