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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 0xc
mov dword [ebp - 8], ebx
call fcn.004063a9
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405dc2
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
call fcn.00406597
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405de4
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 8
mov dword [ebp - 8], ebx
push 1
push 0xb
push 1
push 7
call fcn.0040654c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x459420
call fcn.0045733c
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x51ea7f
mov ecx, 2
call fcn.00401093
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405e4e
push ebx
call fcn.0045732a
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405e64
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x51ea88
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00406837
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405eb5
push ebx
call fcn.0045732a
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405ecb
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x51ea88
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00406a76
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405f1f
push ebx
call fcn.0045732a
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405f35
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
push 0
push 0
push 0
push 1
mov ebx, 0x4579f0
call fcn.0045733c
add esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 0x10
mov dword [ebp - 8], ebx
push 1
push 2
push 1
push 1
call fcn.0040654c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
mov eax, 0
sete al
test eax, eax
je 0x405f95
mov eax, str.WIFI
jmp 0x405f9a
mov eax, 0x51ea8f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405fb3
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 6
call fcn.00406cf8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 3
call fcn.00406cf8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 4
call fcn.00406cf8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push 6
call fcn.00406cf8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 0x10
mov dword [ebp - 0x3c], ebx
push str._Language_zh_CN_ABI_arm64_MiniProgramEnv_android
mov ebx, dword [ebp - 0x3c]
push dword [ebx]
push str.__Process_appbrand0_WeChat_arm64_Weixin_NetType_
push dword [ebp - 0x38]
push 0x51eaf4
push dword [ebp - 0x30]
push 0x51eaf8
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push str.__wv__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_78.0.3904.62_XWEB_2777_MMWEBSDK_201201_Mobile_Safari_537.36_MMWEBID_4140_MicroMessenger_
push dword [ebp - 0x24]
push 0x51eaf8
push dword [ebp - 0x1c]
push str._Build_RKQ1.
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 0x51eba0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 0x51eba2
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push str.Mozilla_5.0__Linux_
mov ecx, 0x13
call fcn.00401093
add esp, 0x4c
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4060e5
push ebx
call fcn.0045732a
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4060f5
push ebx
call fcn.0045732a
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x406105
push ebx
call fcn.0045732a
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x406115
push ebx
call fcn.0045732a
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40612b
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x48
mov dword [ebp - 8], ebx
push 1
push 7
push 0x20
call fcn.00406fb0
mov dword [ebp - 0xc], eax
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x406163
mov eax, 0x51e670
push eax
push 1
mov ebx, 0x458a70
call fcn.0045733c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406189
push ebx
call fcn.0045732a
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40619c
mov eax, 0x51e79e
push eax
push 1
mov eax, 5
mov ebx, 0x4db900
call fcn.00457348
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4061c7
push ebx
call fcn.0045732a
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4061dd
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 8
mov dword [ebp - 8], ebx
push 1
push 0xb
push 1
push 7
call fcn.0040654c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x459420
call fcn.0045733c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406237
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x4c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x1c]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 0x51ebba
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 0x51eba0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 0x51ebbc
mov ecx, 6
call fcn.00401093
add esp, 0x18
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4062b3
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x44
mov dword [ebp - 8], ebx
push 1
push 7
push 0x20
call fcn.00406fb0
mov dword [ebp - 0xc], eax
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4062eb
mov eax, 0x51e670
push eax
push 1
mov ebx, 0x458a70
call fcn.0045733c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406311
push ebx
call fcn.0045732a
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x406324
mov eax, 0x51e79e
push eax
push 1
mov eax, 5
mov ebx, 0x4db900
call fcn.00457348
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40634f
push ebx
call fcn.0045732a
add esp, 4
push dword [ebp - 0x14]
push str.ceaf_
mov ecx, 2
call fcn.00401093
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406377
push ebx
call fcn.0045732a
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40638d
push ebx
call fcn.0045732a
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4063a3
push ebx
call fcn.0045732a
add esp, 4
mov esp, ebp
pop ebp
ret 4