Function at 0x401780
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40437e
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], 0
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push edx
push eax
lea ecx, [ebp - 0x80]
call fcn.004011b0
push eax
mov edx, str.https:__s4rebirth.com_patcher_launcher.txt_v
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004026e0
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x401813
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401809
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401809
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040342e
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
push 3
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x68], 2
call dword [sym.imp.libcurl.dll_curl_global_init]
add esp, 4
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
je 0x401ae1
cmp dword [ebp - 0x38], 0xf
lea ecx, [ebp - 0x4c]
mov esi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
cmova ecx, dword [ebp - 0x4c]
push ecx
push 0x2712
push edi
call esi
push 0x401280
push 0x4e2b
push edi
call esi
lea eax, [ebp - 0x64]
push eax
push 0x2711
push edi
call esi
push 1
push 0x34
push edi
call esi
push 0
push 0x2c
push edi
call esi
push edi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 0x40
test eax, eax
jne 0x401ae8
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
call dword [sym.imp.libcurl.dll_curl_global_cleanup]
cmp dword [ebp - 0x50], 0xf
lea eax, [ebp - 0x64]
cmova eax, dword [ebp - 0x64]
push eax
push str.GetInfoFromServer__s_n
call fcn.00401010
mov byte [ebp - 4], 2
add esp, 0xc
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x401917
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40190d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40190d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040342e
add esp, 8
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push edx
push eax
lea ecx, [ebp - 0x64]
call fcn.004011b0
push eax
mov edx, str.https:__s4rebirth.com_patcher_patcher.txt_v
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004026e0
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x401976
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40196c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40196c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040342e
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x50], 0xf
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x64], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.004012e0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x4019cf
nop dword [eax]
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4019ba
mov eax, dword [esi]
push eax
push str.Update__s_n
call fcn.00401010
add esi, 0x18
add esp, 8
cmp esi, edi
jne 0x4019b0
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x1c]
add esp, 4
test ecx, ecx
je 0x401a4c
mov edx, dword [ebp - 0x18]
push ecx
call fcn.00402940
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x401a2d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab4
push ecx
push esi
call fcn.0040342e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x401a7c
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab4
push ecx
push edx
call fcn.0040342e
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0xf
jbe 0x401ac4
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401aba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401aba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040342e
add esp, 8
xor eax, eax
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.004033f0
mov esp, ebp
pop ebp
ret
push str.Failed_to_initialize_CURL.
jmp 0x401aed
push str.Failed_to_connect_to_server
lea ecx, [ebp - 0x74]
call fcn.004011e0
push 0x405ef4
lea eax, [ebp - 0x74]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3