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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0xc
call fcn.0041c92c
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4e25db
push ebx
add ebx, 8
push ebx
push 8
call fcn.0041c92c
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.00408347
pop ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00407d32
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push str._member_lastResult_lotterySSCJSC_
push dword [0xed8908]
mov ecx, 3
call fcn.0040110c
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408e9f
push ebx
call fcn.0041c932
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push 8
call fcn.0041c92c
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
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
push 1
push 6
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
push 1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_110.0.0.0_Safari_537.36_Edg_110.0.1587.41_r_nX_Requested_With:_XMLHttpRequest_r_nAccept:___r_nAccept_Language:_zh_CN_zh_q0.8_zh_TW_q0.7_zh_HK_q0.5_en_US_q0.3_en_q0.2_r_nX_Requested_With:_XMLHttpRequest
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
push 0xed890c
mov dword [ebp - 0x60], 0
push 0
lea eax, [ebp - 0x60]
push eax
push 1
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00402b37
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x408fa0
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x408fb0
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x408fc0
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x408fd0
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x408fe0
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x408ff0
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x409000
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x409010
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x409020
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x38]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41cc90
call fcn.0041c926
add esp, 0x10
call fcn.0041c932
add esp, 4
mov eax, dword [ebp - 0x64]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409057
push ebx
call fcn.0041c932
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0xc8
jne 0x4092ff
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40907b
mov eax, 0x4e210c
push eax
push 1
mov ebx, 0x41f800
call fcn.0041c926
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4090a5
push ebx
call fcn.0041c932
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407fe3
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4090c9
push ebx
call fcn.0041c932
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4092fa
push 1
mov eax, str.drawNumber
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409116
push ebx
call fcn.0041c932
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x4092f5
push 0xffffffffffffffff
push 8
push 0x16012c6f
push 0x52010001
call fcn.0041c94a
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40914d
push ebx
call fcn.0041c932
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
mov eax, str.drawNumber
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40918c
push ebx
call fcn.0041c932
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4091a0
push ebx
call fcn.0041c932
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
push 0xffffffffffffffff
push 8
push 0x16012c6f
push 0x52010001
call fcn.0041c956
add esp, 0x18
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
mov eax, str.result
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4091fa
push ebx
call fcn.0041c932
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40920e
push ebx
call fcn.0041c932
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0x1c]
push 0xffffffffffffffff
push 8
push 0x16019013
push 0x52010001
call fcn.0041c956
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409363
push getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40924d
mov eax, 0x4e1e7c
push eax
push 1
mov ebx, 0x41eca0
call fcn.0041c926
add esp, 0x10
mov dword [ebp - 0x24], eax
push getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409276
mov eax, 0x4e1e7c
push eax
push 1
mov ebx, 0x41eca0
call fcn.0041c926
add esp, 0x10
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00401eb1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jle 0x4092f5
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
call fcn.0040aecc
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4092e5
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4092f5
push ebx
call fcn.0041c932
add esp, 4
jmp 0x4092fa
jmp 0x4092ff
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40930f
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40931f
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40933f
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40934f
push ebx
call fcn.0041c932
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40935f
push ebx
call fcn.0041c932
add esp, 4
mov esp, ebp
pop ebp
ret