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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 7
jg 0x457638
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 1
push 0x1770
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, str.Accept:___r_nReferer:_https:__kyfw.12306.cn_otn_confirmPassenger_initDc_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 - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_getPassCodeNew_modulepassengerrandrandp
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
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 - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x457286
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x457296
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4572a6
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4572b6
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4572c6
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4572da
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4572f1
mov eax, 0x7a6cb2
push eax
push 1
mov ebx, 0x5204b0
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xc8
jle 0x45753c
lea eax, [ebp - 8]
push eax
call fcn.00424d0f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x457334
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push str.randrandp_json_attREPEAT_SUBMIT_TOKEN
push dword [ebp - 0xc]
push str.randCode
mov ecx, 4
call fcn.0040113b
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
push 0x1770
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
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x18]
push eax
push 1
push 1
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_checkRandCodeAnsyn
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
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 - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4573d2
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4573e2
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4573f2
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x457402
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x457412
push ebx
call fcn.0051fddb
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x457425
mov eax, 0x7a6cb2
push eax
push 1
mov ebx, 0x522180
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x45744b
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x45745f
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], 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._result_:_1___msg_:_randCodeRight_
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x457494
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4574c0
mov dword [ebp - 0x14], 1
jmp 0x45753c
mov dword [ebp - 0x14], 0
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.randCodeError
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4574f8
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x45753c
mov dword [ebp - 0x18], esp
push 0x1388
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x45753c
push 6
call fcn.0051fde1
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x45760d
push 0xffffffffffffffff
push 8
push 0x1601bf05
push 0x52010001
call fcn.0051fe05
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x6024b4
push dword [ebp - 0x18]
call fcn.0040102b
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x45758d
push ebx
call fcn.0051fddb
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x4575ec
call fcn.0045767d
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4575be
mov eax, 0x6024b4
push eax
push 2
mov ebx, 0x5209e0
call fcn.0051fded
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4575e4
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x457645
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x457608
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 0x457645
mov dword [ebp - 0x18], esp
push 0x1f4
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x457631
push 6
call fcn.0051fde1
add esp, 4
pop ebx
pop ecx
jmp 0x4571f3
add esp, 8
mov eax, 0x6024b4
jmp 0x457645
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x457656
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x457666
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x457676
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc