Function at 0x10004250
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c5d5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10050198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x10
xor eax, eax
mov dword [ebp - 0x18], 0
push str._validation_log_
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10001f20
mov byte [ebp - 4], 1
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x18]
sub eax, edx
mov esi, dword [ebp + 0x18]
cmp eax, esi
jb 0x10004487
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.10002460
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.10004970
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1000432a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004320
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000448c
push edx
push ecx
call fcn.10019313
add esp, 8
xor edi, edi
xor ebx, ebx
push edi
push edi
push edi
push edi
push str.xgame
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100043d3
push edi
push 0x50
push str.https:__sellix.io_product_5ec97e746fc70
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
je 0x100043d3
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push edi
cmovae ecx, dword [ebp + 8]
push edi
push edi
push edi
push ecx
push 0x1004b0f8
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x100043d3
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push 0
mov esi, eax
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 4
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x20000013
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test esi, esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jne 0x100043eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.100031c0
add esp, 8
test edi, edi
je 0x100043ee
push edi
call esi
test ebx, ebx
je 0x100043f5
push ebx
call esi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100043ff
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10004435
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000442b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000448c
push edx
push ecx
call fcn.10019313
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x1000446b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004461
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000448c
push edx
push ecx
call fcn.10019313
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018f23
mov esp, ebp
pop ebp
ret
call fcn.10001860
call fcn.1001d773
int3