Function at 0x404ed0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407716
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x40c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x64], 0
mov eax, 0xf
mov byte [ebp - 0x64], 0
xor edi, edi
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0x54], edi
push edi
push edi
push edi
push edi
push str.xOBSE_Update
mov dword [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x100], eax
mov edx, 0x7fffffff
test eax, eax
je 0x4055b1
push edi
push 0x1bb
push str.api.github.com
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x405599
push 0x800100
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.application_json
push ecx
push edi
push edi
push str._repos_llde_xOBSE_releases_latest
push 0x408dc4
push eax
mov dword [ebp - 0x18], str.application_vnd.githubjson
mov dword [ebp - 0x14], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x405575
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x405545
push edi
push dword [ebp - 0xf8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x405545
lea eax, [ebp - 0xec]
mov dword [ebp - 0xf0], edi
push eax
push dword [ebp - 0xf8]
xor esi, esi
mov dword [ebp - 0xec], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xe0], ecx
test ecx, ecx
je 0x40553f
nop dword [eax]
mov edx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
jne 0x40503f
call edx
push dword [ebp - 0xe0]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x40507d
mov edi, esi
mov esi, dword [ebp - 0xf0]
add esi, ecx
call edx
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0xf0]
mov esi, eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0xf0]
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], 0
push eax
push dword [ebp - 0xec]
lea eax, [edi + esi]
push eax
push dword [ebp - 0xf8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add edi, dword [ebp - 0xfc]
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0xf8]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xec], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xe0], ecx
test ecx, ecx
jne 0x405020
test esi, esi
je 0x40553f
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push esi
push eax
mov dword [ebp - 0xe4], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xe4]
add esp, 0xc
push esi
mov byte [edi + eax], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xac]
call fcn.00401e40
push 0
push str._tag_name_:
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.004056d0
lea ecx, [ebp - 0xac]
lea esi, [eax + 0xc]
push esi
push 0x408dd8
call fcn.004056d0
sub eax, esi
lea ecx, [ebp - 0xac]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00405860
push 0
push 0x408ddc
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.004056d0
mov esi, eax
lea ecx, [ebp - 0x94]
push esi
push 0
lea eax, [ebp - 0xdc]
push eax
call fcn.00405860
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00405860
push 0
push 0x408ddc
lea ecx, [ebp - 0x7c]
call fcn.004056d0
mov esi, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 9
cmp esi, 0xffffffff
je 0x405265
push esi
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405860
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404e10
lea ecx, [ebp - 0xc4]
call fcn.00401df0
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00405860
push eax
lea ecx, [ebp - 0x34]
call fcn.00404e10
lea ecx, [ebp - 0xc4]
call fcn.00401df0
jmp 0x405325
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402f50
mov esi, dword [ebp - 0x20]
cmp esi, 1
jb 0x405294
cmp esi, 0x10
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov word [eax], 0x30
jmp 0x405325
mov ecx, esi
mov eax, 0x7fffffff
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x4052aa
mov ecx, 0x7fffffff
jmp 0x4052b7
lea eax, [ecx + esi]
mov ecx, 0xf
cmp eax, ecx
cmova ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0xe0], ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00401ff0
mov dword [ebp - 0x24], 1
mov ecx, eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xe8], ecx
mov word [ecx], 0x30
cmp esi, 0x10
jb 0x405322
mov ecx, dword [ebp - 0x34]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40530d
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054ad
push esi
push ecx
call fcn.0040664c
mov eax, dword [ebp - 0xe8]
add esp, 8
mov dword [ebp - 0x34], eax
jmp 0x405325
mov dword [ebp - 0x34], ecx
push 0xa
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.004057f0
mov dword [ebp - 0xfc], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x38], 0x10
lea esi, [ebp - 0x4c]
mov dword [ebp - 0xe0], eax
cmovae esi, dword [ebp - 0x4c]
mov dword [eax], 0
lea eax, [ebp - 0xe8]
push 0xa
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0x18
mov dword [ebp - 0xf4], eax
cmp esi, dword [ebp - 0xe8]
je 0x405699
mov eax, dword [ebp - 0xe0]
cmp dword [eax], 0x22
je 0x4056a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov dword [ebp - 0xe0], eax
cmovae esi, dword [ebp - 0x34]
mov dword [eax], 0
lea eax, [ebp - 0xe8]
push 0xa
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
mov dword [ebp - 0xf0], eax
cmp esi, dword [ebp - 0xe8]
je 0x4056ad
mov eax, dword [ebp - 0xe0]
cmp dword [eax], 0x22
je 0x4056b7
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x64]
call fcn.00402f50
cmp dword [ebp - 0xfc], 0x16
jbe 0x405401
mov dword [ebp - 0xf4], 1
jmp 0x40542c
cmp dword [ebp - 0xf4], 0xb
jbe 0x405416
mov dword [ebp - 0xf4], 2
jmp 0x40542c
xor esi, esi
mov eax, 3
cmp dword [ebp - 0xf0], esi
cmova esi, eax
mov dword [ebp - 0xf4], esi
push dword [ebp - 0xe4]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x405471
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405467
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054ad
push edx
push ecx
call fcn.0040664c
add esp, 8
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x4054bd
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4054b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040664c
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.00401df0
lea ecx, [ebp - 0xdc]
call fcn.00401df0
lea ecx, [ebp - 0x94]
call fcn.00401df0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00401df0
mov eax, dword [ebp - 0x54]
push dword [ebp - 0xf8]
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x104]
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x108]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x100]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, 0x7fffffff
jmp 0x4055b6
mov esi, dword [ebp - 0x104]
push dword [ebp - 0xf8]
mov edi, 0xf
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x108]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x100]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, 0x7fffffff
jmp 0x4055b6
push dword [ebp - 0x108]
mov edi, 0xf
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x100]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, 0x7fffffff
jmp 0x4055b6
push dword [ebp - 0x100]
mov edi, 0xf
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, 0x7fffffff
jmp 0x4055b6
mov edi, 0xf
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0x64]
cmp edi, 0x10
mov dword [esi], 0
mov edi, dword [ebp - 0x64]
cmovae ecx, edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x100], ecx
cmp eax, 0x10
jae 0x4055f4
movups xmm0, xmmword [ecx]
mov eax, 0xf
movups xmmword [esi], xmm0
jmp 0x40562f
or eax, 0xf
mov ecx, esi
cmp eax, 0x7fffffff
cmova eax, edx
mov dword [ebp - 0x108], eax
inc eax
push eax
call fcn.00401ff0
mov ecx, eax
mov eax, dword [ebp - 0xe4]
inc eax
mov dword [esi], ecx
push eax
push dword [ebp - 0x100]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x108]
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xf4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x40567c
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x405672
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405672
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040664c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004068ab
mov esp, ebp
pop ebp
ret
push str.invalid_stoul_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
push str.stoul_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
push str.invalid_stoul_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
push str.stoul_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
int3