Function at 0x472b9a
Capabilities:
Check if file exists

Disassembly:
push 0xac
mov eax, 0x497bf6
call fcn.0047e89a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x472bc4
and dword [eax], 0
test ecx, ecx
jne 0x472bdc
push str.invalid_param_2
mov ecx, esi
call fcn.004041d0
xor al, al
call fcn.0047e91d
ret
and dword [ebp - 0x34], 0
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x472bf4
push str.easy_init_failed
jmp 0x472bcd
mov eax, dword [0x4c44b0]
mov ebx, dword [eax]
mov eax, dword [0x4c4498]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov eax, dword [0x4c44b0]
mov dword [ebp - 0x50], eax
mov eax, dword [0x4c4498]
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x54], eax
call fcn.004166b0
test al, al
je 0x472ce6
mov esi, edi
call fcn.00463da9
push 0x4ae8dc
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00470dcb
add esp, 0xc
mov edi, eax
and dword [ebp - 4], 0
call fcn.00463da9
add eax, 0x1c
push eax
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004651a7
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x472c6c
mov eax, dword [eax + 4]
jmp 0x472c6f
add eax, 4
push eax
push dword [ebp - 0x34]
call dword [sym.imp.libcurl32.dll_curl_slist_append]
pop ecx
pop ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x34], eax
call fcn.00403df0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403df0
cmp dword [ebp - 0x3c], 0
jne 0x472ca0
call fcn.0047db04
cmp byte [ebx + 0x45], 0
je 0x472cb0
call fcn.0047db04
jmp 0x472c06
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x45], 0
je 0x472cc0
mov eax, dword [ebx + 4]
jmp 0x472cd9
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x472cbe
mov ebx, ecx
jmp 0x472c03
cmp ebx, dword [eax + 8]
jne 0x472cdf
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x472ccf
mov ebx, eax
jmp 0x472c03
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004048e0
mov dword [ebp - 4], 1
mov eax, dword [0x4c3b64]
cmp eax, ebx
je 0x472d37
push dword [ebp - 0x40]
lea ecx, [ebp - 0xb8]
push ecx
call eax
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004040f0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.00403df0
jmp 0x472d45
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.004040f0
mov edi, dword [ebp - 0x30]
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_reset]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x472d5c
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.libcurl32.dll_curl_easy_setopt]
push eax
push 0x2712
push edi
call esi
add esp, 0xc
push ebx
push 0x2714
push edi
call esi
add esp, 0xc
push 5
push 0x4e
push edi
call esi
add esp, 0xc
push 0x472ed9
push 0x4e2b
push edi
call esi
add esp, 0xc
push dword [ebp - 0x48]
push 0x2711
push edi
call esi
add esp, 0xc
push dword [ebp - 0x34]
push 0x2727
push edi
call esi
add esp, 0xc
mov edi, 0x4a16c8
push edi
mov ebx, 0x272f
push ebx
push dword [ebp - 0x30]
call esi
add esp, 0xc
push edi
mov edi, dword [ebp - 0x30]
push 0x2776
push edi
call esi
add esp, 0xc
push 1
push 0x34
push edi
call esi
add esp, 0xc
cmp byte [0x4c3159], 0
je 0x472dfa
push 0
push 0x40
push edi
call esi
add esp, 0xc
push 0
push 0x51
push edi
call esi
add esp, 0xc
cmp dword [0x4c0400], 0
je 0x472e22
cmp dword [0x4c0404], 0x10
mov eax, dword [0x4c03f0]
jae 0x472e16
mov eax, 0x4c03f0
push eax
push 0x2751
push edi
call esi
add esp, 0xc
cmp byte [0x4c3a60], 0
je 0x472e56
mov edi, 0x4c3a60
push edi
push 0x2762
push dword [ebp - 0x30]
call esi
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x472e53
push edi
push ebx
push dword [ebp - 0x30]
call esi
add esp, 0xc
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x18], 0x10
jb 0x472e64
mov eax, dword [eax + 4]
jmp 0x472e67
add eax, 4
and dword [ebp - 0x5c], 0
and dword [ebp - 0x58], 0
push edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], eax
call dword [sym.imp.libcurl32.dll_curl_easy_perform]
cmp dword [ebp - 0x34], 0
pop ecx
mov esi, eax
je 0x472e8f
push dword [ebp - 0x34]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
test esi, esi
je 0x472ebd
push esi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.004041d0
xor bl, bl
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00403df0
mov al, bl
jmp 0x472bd6
cmp dword [ebp - 0x44], 0
je 0x472ed5
push dword [ebp - 0x44]
push 0x200002
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_getinfo]
add esp, 0xc
mov bl, 1
jmp 0x472ea6