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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_bind
push 0
push 1
mov ebx, 6
call fcn.004010cb
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40b3eb
mov eax, 0x534783
push eax
push reloc.WS2_32.dll_connect
push 0
push str._code_
push reloc.WS2_32.dll_connect
push 0
push str._authCode_:__code__
push 6
mov ebx, 0x499180
call fcn.00497d61
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b42d
push ebx
call fcn.00497d55
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 8
call fcn.00497d5b
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
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, str.Pragma:_no_cache_r_nAccept:_application_json_r_nx_requested_with:_XMLHttpRequest_r_nSec_Fetch_Site:_same_origin_r_ndevice_type:_CCE_r_nAccept_Language:_zh_CN_zh_Hans_q0.9_r_nCache_Control:_no_cache_r_nSec_Fetch_Mode:_cors_r_nUser_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_16_6_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_20G81_NebulaSDK_1.8.100112_Nebula_cgbCreditBank_8.2.0.0_UnionPay_1.0_fantasy_WK_PSDType_0__mPaaSClient_2311081758_r_nContent_Type:_application_json__charsetUTF_8_r_nbusiness_version:_20230908_r_nSec_Fetch_Dest:_empty_r_nbusiness_version:_20230519
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 1
mov eax, str.https:__mall.cgbchina.com.cn_api_cgb_user_web_login_login_by_authCode
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404f9e
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40b536
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40b546
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40b556
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40b566
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b576
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b586
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b596
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x49ca80
call fcn.00497d61
add esp, 0x10
call fcn.00497d55
add esp, 4
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409746
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40b5fb
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40b60b
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40b61b
push ebx
call fcn.00497d55
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x40b62e
mov eax, 0x534ca7
push eax
push 1
mov ebx, 0x499d70
call fcn.00497d61
add esp, 0x10
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40b654
push ebx
call fcn.00497d55
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b668
push ebx
call fcn.00497d55
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.token
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40b69d
mov eax, 0x534783
push eax
push 4
mov ebx, 0x498810
call fcn.00497d61
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40b6de
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40b6d9
push eax
mov ebx, eax
call fcn.00401004
inc eax
push eax
call fcn.00497d5b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b6e8
mov eax, 0x534783
jmp 0x40b6e8
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b6f9
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b709
push ebx
call fcn.00497d55
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b719
push ebx
call fcn.00497d55
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc