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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0xc], 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 - 0x10], 0
mov dword [ebp - 0x14], 0
push 8
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0x18], 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
push 8
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
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 0x1388
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
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push 1
lea eax, [ebp - 8]
push eax
push 1
mov eax, str.Accept:___r_nReferer:_https:__kyfw.12306.cn_otn__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_nConnection:_Keep_Alive
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov eax, str.https:__kyfw.12306.cn_otn_resources_js_framework_station_name.js_station_version1.8255
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040bd9d
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40b7d0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40b7e0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40b7f0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40b800
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40b810
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40b820
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b830
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b840
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b850
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b860
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x525880
call fcn.0051fded
add esp, 0x10
call fcn.0051fddb
add esp, 4
lea eax, [ebp - 0x54]
push eax
call fcn.0040d9f4
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40b89f
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b8b3
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, 0x88e8c1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.var_station_names__
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00405564
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b903
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b913
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b927
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b93e
mov eax, 0x6024b4
push eax
push 1
mov ebx, 0x521910
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40b967
mov eax, 0x7a6cb2
push eax
push 1
mov ebx, 0x5204b0
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b98d
push ebx
call fcn.0051fddb
add esp, 4
cmp dword [ebp - 0x20], 0x9c40
jge 0x40b9d3
push reloc.WS2_32.dll_getpeername
push 0
push 0x88e8da
push 1
mov ebx, 0x522180
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b9cf
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
mov eax, 0x8a05cf
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00408d89
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b9fc
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0xc]
call fcn.00406b12
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40bc40
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40ba3f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40ba3b
imul eax, dword [ebx]
jmp 0x40ba30
mov ecx, eax
test ecx, ecx
je 0x40ba5e
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40ba57
push ebx
push eax
call fcn.0051fddb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40ba45
call fcn.0051fddb
add esp, 4
mov eax, 0x7a6cb2
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x14]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x18]
push eax
mov eax, 0x8a05d1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call fcn.00408d89
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40baaf
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x18]
call fcn.00406b12
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 6
jne 0x40bc38
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x8a05d3
mov ebx, dword [ebp - 0x20]
push dword [ebx]
push 0x8a05d5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0x8a05cf
push dword [0xba7810]
mov ecx, 6
call fcn.0040113b
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0xba7810]
test ebx, ebx
je 0x40bb3a
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [0xba7810], eax
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x8a05d3
mov ebx, dword [ebp - 0x20]
push dword [ebx]
push 0x8a05d5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0x8a05cf
push dword [0xba7814]
mov ecx, 6
call fcn.0040113b
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0xba7814]
test ebx, ebx
je 0x40bbb6
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [0xba7814], eax
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x8a05d3
mov ebx, dword [ebp - 0x20]
push dword [ebx]
push 0x8a05d5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0x8a05cf
push dword [0xba7850]
mov ecx, 6
call fcn.0040113b
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0xba7850]
test ebx, ebx
je 0x40bc32
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [0xba7850], eax
pop eax
pop ebx
pop ecx
jmp 0x40ba13
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bc53
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bc63
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40bc81
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40bc7d
imul eax, dword [ebx]
jmp 0x40bc72
mov ecx, eax
test ecx, ecx
je 0x40bca0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bc99
push ebx
push eax
call fcn.0051fddb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bc87
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40bcc6
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40bcc2
imul eax, dword [ebx]
jmp 0x40bcb7
mov ecx, eax
test ecx, ecx
je 0x40bce5
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bcde
push ebx
push eax
call fcn.0051fddb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bccc
call fcn.0051fddb
add esp, 4
mov esp, ebp
pop ebp
ret