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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4075b6
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 0x405421
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 0x405409
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 0x408d8c
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 0x4053e5
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 0x4053b5
push edi
push dword [ebp - 0xf8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4053b5
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 0x4053af
nop dword [eax]
mov edx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
jne 0x404eaf
call edx
push dword [ebp - 0xe0]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x404eed
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 0x404e90
test esi, esi
je 0x4053af
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.00401e30
push 0
push str._tag_name_:
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.00405540
lea ecx, [ebp - 0xac]
lea esi, [eax + 0xc]
push esi
push 0x408da0
call fcn.00405540
sub eax, esi
lea ecx, [ebp - 0xac]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.004056d0
push 0
push 0x408da4
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00405540
mov esi, eax
lea ecx, [ebp - 0x94]
push esi
push 0
lea eax, [ebp - 0xdc]
push eax
call fcn.004056d0
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.004056d0
push 0
push 0x408da4
lea ecx, [ebp - 0x7c]
call fcn.00405540
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 0x4050d5
push esi
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004056d0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404c80
lea ecx, [ebp - 0xc4]
call fcn.00401de0
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.004056d0
push eax
lea ecx, [ebp - 0x34]
call fcn.00404c80
lea ecx, [ebp - 0xc4]
call fcn.00401de0
jmp 0x405195
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402f40
mov esi, dword [ebp - 0x20]
cmp esi, 1
jb 0x405104
cmp esi, 0x10
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov word [eax], 0x30
jmp 0x405195
mov ecx, esi
mov eax, 0x7fffffff
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x40511a
mov ecx, 0x7fffffff
jmp 0x405127
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.00401fe0
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 0x405192
mov ecx, dword [ebp - 0x34]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40517d
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531d
push esi
push ecx
call fcn.004064ec
mov eax, dword [ebp - 0xe8]
add esp, 8
mov dword [ebp - 0x34], eax
jmp 0x405195
mov dword [ebp - 0x34], ecx
push 0xa
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.00405660
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 0x405509
mov eax, dword [ebp - 0xe0]
cmp dword [eax], 0x22
je 0x405513
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 0x40551d
mov eax, dword [ebp - 0xe0]
cmp dword [eax], 0x22
je 0x405527
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x64]
call fcn.00402f40
cmp dword [ebp - 0xfc], 0x16
jbe 0x405271
mov dword [ebp - 0xf4], 1
jmp 0x40529c
cmp dword [ebp - 0xf4], 7
jbe 0x405286
mov dword [ebp - 0xf4], 2
jmp 0x40529c
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 0x4052e1
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531d
push edx
push ecx
call fcn.004064ec
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 0x40532d
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405323
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405323
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004064ec
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.00401de0
lea ecx, [ebp - 0xdc]
call fcn.00401de0
lea ecx, [ebp - 0x94]
call fcn.00401de0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00401de0
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 0x405426
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 0x405426
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 0x405426
push dword [ebp - 0x100]
mov edi, 0xf
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, 0x7fffffff
jmp 0x405426
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 0x405464
movups xmm0, xmmword [ecx]
mov eax, 0xf
movups xmmword [esi], xmm0
jmp 0x40549f
or eax, 0xf
mov ecx, esi
cmp eax, 0x7fffffff
cmova eax, edx
mov dword [ebp - 0x108], eax
inc eax
push eax
call fcn.00401fe0
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 0x4054ec
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4054e2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4054e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.004064ec
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.0040674b
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