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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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
mov dword [ebp - 0x18], 0
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 6
jg 0x420cc4
push 0x10
call fcn.0041a81b
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push str.https:__kyfw.12306.cn_otn_passcodeNew_getPassCodeNew_moduleloginrandsjrand0.
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4207b2
push ebx
call fcn.00515eef
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
push 0x3a98
push 1
lea eax, [ebp - 0xc]
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 - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
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 - 0x20]
test ebx, ebx
je 0x420828
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x420838
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x420848
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x420858
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42086c
push ebx
call fcn.00515eef
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 0x420883
mov eax, 0xb609c8
push eax
push 1
mov ebx, 0x5165c0
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x190
jle 0x420c64
push 0
mov ebx, 0x519ba0
call fcn.00515f01
add esp, 4
mov dword [ebp - 0x10], eax
push 1
push dword [ebp + 8]
push 1
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_getPassCodeNew_moduleloginrandsjrand0.
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041ad32
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4208ea
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4208fe
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
mov ebx, 0x519ba0
call fcn.00515f01
add esp, 4
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401004
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x5dc
jge 0x420978
fld qword [0xc7b1f6]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fsub qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401004
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x51a800
call fcn.00515f01
add esp, 0x10
push 0x65d6b8
push dword [ebp - 0x14]
call fcn.0040102b
add esp, 8
cmp eax, 0
je 0x420bbb
push 0xc7b1fe
push dword [ebp - 0x14]
push str.randCode
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 0x1f40
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
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_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_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 - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp + 8]
push 1
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_checkRandCodeAnsyn
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
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 0x420a27
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x420a37
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x420a47
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x420a57
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x420a67
push ebx
call fcn.00515eef
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.0040b3e1
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x420a83
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x420a97
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str._result_:_1___msg_:_TRUE_
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x420acc
mov eax, 0x65d6b8
push eax
push 4
mov ebx, 0x516de0
call fcn.00515f01
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x420b12
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420b08
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.00515ee9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x420d1c
mov eax, 0xb609c8
test eax, eax
je 0x420b2e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00515ee9
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 0x420b3f
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x65d6b8
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x420b59
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x5dc
push 1
mov ebx, 0x51a800
call fcn.00515f01
add esp, 0x10
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x1c], eax
push 0x1f40
push 0x1bb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x420bb6
push ebx
call fcn.00515eef
add esp, 4
jmp 0x420c5f
mov eax, 0xb609c8
test eax, eax
je 0x420bd7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00515ee9
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 0x420be8
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x65d6b8
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x420c02
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x51a800
call fcn.00515f01
add esp, 0x10
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x1c], eax
push 0x1f40
push 0x1bb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x420c5f
push ebx
call fcn.00515eef
add esp, 4
jmp 0x420cbd
push 0x80000301
push 0
push 0x3e8
push 1
mov ebx, 0x51a800
call fcn.00515f01
add esp, 0x10
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x1c], eax
push 0x1f40
push 0x1bb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x420cbd
push ebx
call fcn.00515eef
add esp, 4
pop ebx
pop ecx
jmp 0x42076f
add esp, 8
mov eax, 0xb609c8
test eax, eax
je 0x420ce3
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00515ee9
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 0x420cf4
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x65d6b8
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x420d0e
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov eax, 0x65d6b8
jmp 0x420d1c
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x420d2d
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x420d3d
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x420d4d
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x420d5d
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8