Function at 0x100272d0
Capabilities:
Check if file exists

Disassembly:
push 0xac
mov eax, 0x1004440e
call fcn.1002f38a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100272fa
and dword [eax], 0
test ecx, ecx
jne 0x10027312
push str.invalid_param_2
mov ecx, esi
call fcn.10005b52
xor al, al
call fcn.1002f40d
ret
and dword [ebp - 0x34], 0
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov ebx, eax
test ebx, ebx
jne 0x10027329
push str.easy_init_failed
jmp 0x10027303
mov eax, dword [0x1005c8c0]
mov eax, dword [eax]
mov ecx, dword [0x1005c8a8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [0x1005c8c0]
mov dword [ebp - 0x50], eax
mov eax, dword [0x1005c8a8]
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x54], eax
call fcn.1001652a
test al, al
jne 0x100273da
call fcn.1000cb79
push 0x1004e3a4
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10014473
add esp, 0xc
mov edi, eax
and dword [ebp - 4], 0
call fcn.1000cb79
add eax, 0x1c
push eax
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.100144b9
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x1002739c
mov eax, dword [eax + 4]
jmp 0x1002739f
add eax, 4
push eax
push dword [ebp - 0x34]
call dword [sym.imp.libcurl32.dll_curl_slist_append]
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x34], eax
call fcn.10005c5b
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10005c5b
lea esi, [ebp - 0x40]
call fcn.10012f09
jmp 0x1002733c
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.10006a21
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [0x1005c3a4]
cmp eax, edi
je 0x1002742c
push dword [ebp - 0x38]
lea ecx, [ebp - 0xb8]
push ecx
call eax
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10005ac0
push edi
push esi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.10005c5b
jmp 0x1002743a
push 0xffffffffffffffff
push edi
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.10005ac0
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_reset]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x1002744e
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.libcurl32.dll_curl_easy_setopt]
push eax
push 0x2712
push ebx
call esi
add esp, 0xc
push edi
push 0x2714
push ebx
call esi
add esp, 0xc
push 5
push 0x4e
push ebx
call esi
add esp, 0xc
push 0x100275c8
push 0x4e2b
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x4c]
push 0x2711
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x34]
push 0x2727
push ebx
call esi
add esp, 0xc
mov edi, 0x1004b92b
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 [0x1005c29c], 0
je 0x100274e6
push 0
push 0x40
push ebx
call esi
add esp, 0xc
push 0
push 0x51
push ebx
call esi
add esp, 0xc
cmp dword [0x1005a060], 0
je 0x1002750e
cmp dword [0x1005a064], 0x10
mov eax, dword [0x1005a050]
jae 0x10027502
mov eax, 0x1005a050
push eax
push 0x2751
push ebx
call esi
add esp, 0xc
cmp byte [0x1005c2a0], 0
je 0x1002753f
mov edi, 0x1005c2a0
push edi
push 0x2762
push ebx
call esi
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002753f
push edi
push 0x272f
push ebx
call esi
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x1002754d
mov eax, dword [eax + 4]
jmp 0x10027550
add eax, 4
xor edi, edi
push ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
call dword [sym.imp.libcurl32.dll_curl_easy_perform]
pop ecx
mov esi, eax
cmp dword [ebp - 0x34], edi
je 0x10027577
push dword [ebp - 0x34]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
cmp esi, edi
je 0x100275ab
push esi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
call fcn.10005b52
mov byte [ebp - 0x2d], 0
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10005c5b
mov al, byte [ebp - 0x2d]
jmp 0x1002730c
cmp dword [ebp - 0x44], edi
je 0x100275c2
push dword [ebp - 0x44]
push 0x200002
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_getinfo]
add esp, 0xc
mov byte [ebp - 0x2d], 1
jmp 0x10027590