Function at 0x42f520
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push esi
sub esp, 0x258
mov eax, dword [esp + 0x260]
lea eax, [esp + 0x58]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.00452cd0
mov eax, dword [esp + 0x260]
mov dword [esp], eax
call fcn.00458180
mov ecx, dword [esp + 0x260]
lea edx, [esp + 0x58]
xor esi, esi
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], 0x100
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00457c7f
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
lea eax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_119.0.0.0_Safari_537.36
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
sub esp, 0x14
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x42f631
jmp 0x42f601
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x50
mov dword [esp + 0xc], 0
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
sub esp, 0x10
mov dword [esp + 0x2c], eax
jmp 0x42f631
jmp 0x42f633
cmp dword [esp + 0x2c], 0
setne al
test al, 1
jne 0x42f641
jmp 0x42f68f
jmp 0x42f643
mov eax, dword [esp + 0x2c]
lea ecx, str.POST
lea edx, str._api
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov dword [esp + 0x1c], eax
jmp 0x42f68f
lea eax, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x1c], 0
je 0x42f6e8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
lea edx, str.actlife
xor esi, esi
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
sub esp, 0x1c
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x42f711
jmp 0x42f6f1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
sub esp, 8
mov dword [esp + 0x3c], eax
jmp 0x42f711
mov dword [esp + 0x38], 0
cmp dword [esp + 0x3c], 0
je 0x42f844
mov dword [esp + 0x28], 0
jmp 0x42f72e
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
sub esp, 8
cmp eax, 0
setne cl
xor eax, eax
test cl, 1
jne 0x42f755
jmp 0x42f761
jmp 0x42f757
cmp dword [esp + 0x38], 0
seta al
jmp 0x42f761
jmp 0x42f763
test al, 1
jne 0x42f76c
jmp 0x42f838
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, eax
and ecx, edx
or eax, edx
add ecx, eax
mov eax, ecx
and eax, 1
mov edx, ecx
and edx, 1
xor edx, 0xffffffff
add ecx, 1
add ecx, 1
add ecx, edx
add eax, 0xf332fefd
add eax, ecx
sub eax, 0xf332fefd
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00457f7f
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
setne al
test al, 1
jne 0x42f7c9
jmp 0x42f7bf
mov dword [esp + 0x24], 3
jmp 0x42f827
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
sub esp, 0x10
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
add ecx, 0x2b5c7153
add ecx, eax
sub ecx, 0x2b5c7153
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42f833
jmp 0x42f831
jmp 0x42f838
jmp 0x42f72c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov byte [eax + ecx], 0
cmp dword [esp + 0x20], 0
jne 0x42f860
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 1
jmp 0x42f97b
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x46ae4f
call fcn.00458090
cmp eax, 0
jne 0x42f890
jmp 0x42f87b
mov dword [esp + 0x34], 1
mov dword [esp + 0x24], 1
jmp 0x42f97b
mov eax, dword [esp + 0x20]
lea ecx, str.section
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00452f60
cmp eax, 0
je 0x42f915
mov eax, dword [esp + 0x20]
lea ecx, str.name_atok__value_
lea edx, [0x46ae5a]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0042f3c0
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
jne 0x42f8ea
jmp 0x42f8d8
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 1
jmp 0x42f911
jmp 0x42f8ec
mov dword [0x4787d8], 1
mov eax, dword [esp + 0x40]
mov dword [0x4787d4], eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x24], 1
jmp 0x42f911
jmp 0x42f913
jmp 0x42f97b
cmp dword [esp + 0x1c], 0
je 0x42f930
jmp 0x42f91e
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub esp, 4
jmp 0x42f930
jmp 0x42f932
cmp dword [esp + 0x2c], 0
setne al
test al, 1
jne 0x42f940
jmp 0x42f954
jmp 0x42f942
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub esp, 4
jmp 0x42f954
cmp dword [esp + 0x30], 0
je 0x42f96b
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub esp, 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x34]
add esp, 0x258
pop esi
ret