Function at 0x41ac60
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x43d5e6
call fcn.004251a1
mov eax, dword [ebp + 0x14]
xor esi, esi
cmp eax, esi
je 0x41ac77
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x41ac91
push str.invalid_param_2
mov ecx, dword [ebp + 0x10]
call fcn.00402573
xor al, al
call fcn.00425279
ret
mov dword [ebp - 0x10], esi
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov ebx, eax
cmp ebx, esi
jne 0x41aca7
push str.easy_init_failed
jmp 0x41ac81
mov eax, dword [0x451be4]
mov eax, dword [eax]
mov ecx, dword [0x451bcc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x451be4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x451bcc]
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.00407e1b
test al, al
jne 0x41ad52
call fcn.0040771d
push 0x44422c
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041955e
add esp, 0xc
mov edi, eax
and dword [ebp - 4], 0
call fcn.0040771d
add eax, 0x1c
push eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.0041c02e
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x41ad17
mov eax, dword [eax + 4]
jmp 0x41ad1a
add eax, 4
push eax
push dword [ebp - 0x10]
call dword [sym.imp.libcurl32.dll_curl_slist_append]
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], eax
call fcn.00402606
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.00402606
lea esi, [ebp - 0x18]
call fcn.00409667
jmp 0x41acba
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_reset]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x41ad6d
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
jmp 0x41ad73
add eax, 4
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.libcurl32.dll_curl_easy_setopt]
push eax
push 0x2712
push ebx
call esi
add esp, 0xc
push 5
push 0x4e
push ebx
call esi
add esp, 0xc
push 0x41aec1
push 0x4e2b
push ebx
call esi
add esp, 0xc
push dword [ebp + 0xc]
push 0x2711
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x10]
push 0x2727
push ebx
call esi
add esp, 0xc
mov edi, 0x442b60
push edi
push 0x272f
push ebx
call esi
add esp, 0xc
push edi
push 0x2776
push ebx
call esi
add esp, 0xc
push 1
push 0x34
push ebx
call esi
add esp, 0xc
cmp byte [0x4509b2], 0
je 0x41adff
push 0
push 0x40
push ebx
call esi
add esp, 0xc
push 0
push 0x51
push ebx
call esi
add esp, 0xc
cmp dword [0x44ecf4], 0
je 0x41ae27
cmp dword [0x44ecf8], 0x10
mov eax, dword [0x44ece4]
jae 0x41ae1b
mov eax, 0x44ece4
push eax
push 0x2751
push ebx
call esi
add esp, 0xc
cmp byte [0x451748], 0
je 0x41ae4c
mov edi, 0x451748
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41ae4c
push edi
push 0x272f
push ebx
call esi
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov eax, dword [ebp - 0x14]
jb 0x41ae5a
mov eax, dword [eax]
xor edi, edi
push ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.libcurl32.dll_curl_easy_perform]
pop ecx
mov esi, eax
cmp dword [ebp - 0x10], edi
je 0x41ae7b
push dword [ebp - 0x10]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
cmp esi, edi
je 0x41aea4
push esi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402573
mov byte [ebp + 0x17], 0
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
mov al, byte [ebp + 0x17]
pop ecx
jmp 0x41ac8b
cmp dword [ebp + 0x14], edi
je 0x41aebb
push dword [ebp + 0x14]
push 0x200002
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_getinfo]
add esp, 0xc
mov byte [ebp + 0x17], 1
jmp 0x41ae94