Function at 0x41bb11
Capabilities:
Check if file exists

Disassembly:
push 0xa4
mov eax, 0x43e526
call fcn.0042619a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x41bb3c
mov dword [eax], ebx
cmp ecx, ebx
jne 0x41bb54
push str.invalid_param_2
mov ecx, esi
call fcn.0040259b
xor al, al
call fcn.0042621d
ret
mov dword [ebp - 0x30], ebx
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x41bb6b
push str.easy_init_failed
jmp 0x41bb45
mov eax, dword [0x452f94]
mov eax, dword [eax]
mov ecx, dword [0x452f7c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [0x452f94]
mov dword [ebp - 0x50], eax
mov eax, dword [0x452f7c]
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x54], eax
call fcn.00409824
test al, al
jne 0x41bc19
call fcn.00402e4d
push 0x4452cc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00419765
add esp, 0xc
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.00402e4d
add eax, 0x1c
push eax
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.0041d041
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x41bbdd
mov eax, dword [eax + 4]
jmp 0x41bbe0
add eax, 4
push eax
push dword [ebp - 0x30]
call dword [sym.imp.libcurl32.dll_curl_slist_append]
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x30], eax
call fcn.00402609
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.00402609
lea esi, [ebp - 0x40]
call fcn.004080d3
jmp 0x41bb7e
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00402b98
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [0x4520c4]
cmp eax, ebx
je 0x41bc69
push dword [ebp - 0x38]
lea ecx, [ebp - 0xb0]
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.00402509
push ebx
push esi
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.00402609
jmp 0x41bc77
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.00402509
mov edi, dword [ebp - 0x34]
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_reset]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x41bc8e
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 5
push 0x4e
push edi
call esi
add esp, 0xc
push 0x41bdec
push 0x4e2b
push edi
call esi
add esp, 0xc
push dword [ebp - 0x4c]
push 0x2711
push edi
call esi
add esp, 0xc
push dword [ebp - 0x30]
push 0x2727
push edi
call esi
add esp, 0xc
mov edi, 0x443b60
push edi
mov ebx, 0x272f
push ebx
push dword [ebp - 0x34]
call esi
add esp, 0xc
push edi
mov edi, dword [ebp - 0x34]
push 0x2776
push edi
call esi
add esp, 0xc
push 1
push 0x34
push edi
call esi
add esp, 0xc
cmp byte [0x451b52], 0
je 0x41bd20
push 0
push 0x40
push edi
call esi
add esp, 0xc
push 0
push 0x51
push edi
call esi
add esp, 0xc
cmp dword [0x44fcf8], 0
je 0x41bd48
cmp dword [0x44fcfc], 0x10
mov eax, dword [0x44fce8]
jae 0x41bd3c
mov eax, 0x44fce8
push eax
push 0x2751
push edi
call esi
add esp, 0xc
cmp byte [0x4526e0], 0
je 0x41bd6c
push 0x4526e0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41bd6c
push 0x4526e0
push ebx
push edi
call esi
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x41bd7a
mov eax, dword [eax + 4]
jmp 0x41bd7d
add eax, 4
and dword [ebp - 0x58], 0
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.libcurl32.dll_curl_easy_perform]
cmp dword [ebp - 0x30], 0
pop ecx
mov esi, eax
je 0x41bd9e
push dword [ebp - 0x30]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
test esi, esi
je 0x41bdd0
push esi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
call fcn.0040259b
xor bl, bl
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402609
mov al, bl
jmp 0x41bb4e
cmp dword [ebp - 0x44], 0
je 0x41bde8
push dword [ebp - 0x44]
push 0x200002
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_getinfo]
add esp, 0xc
mov bl, 1
jmp 0x41bdb5