Function at 0x4311e9
Capabilities:
Check if file exists

Disassembly:
push 0xac
mov eax, 0x48a50a
call fcn.00470d2a
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 0x431213
and dword [eax], 0
test ecx, ecx
jne 0x43122b
push str.invalid_param_2
mov ecx, esi
call fcn.00404c60
xor al, al
call fcn.00470dad
ret
and dword [ebp - 0x34], 0
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x431243
push str.easy_init_failed
jmp 0x43121c
mov eax, dword [0x4ae8c0]
mov ebx, dword [eax]
mov eax, dword [0x4ae8a8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov eax, dword [0x4ae8c0]
mov dword [ebp - 0x50], eax
mov eax, dword [0x4ae8a8]
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x54], eax
call fcn.0041aca0
test al, al
je 0x431335
mov esi, edi
call fcn.004303f4
push 0x494fbc
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0042e21b
add esp, 0xc
mov edi, eax
and dword [ebp - 4], 0
call fcn.004303f4
add eax, 0x1c
push eax
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00432939
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4312bb
mov eax, dword [eax + 4]
jmp 0x4312be
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.00404350
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00404350
cmp dword [ebp - 0x3c], 0
jne 0x4312ef
call fcn.0047000d
cmp byte [ebx + 0x45], 0
je 0x4312ff
call fcn.0047000d
jmp 0x431255
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x45], 0
je 0x43130f
mov eax, dword [ebx + 4]
jmp 0x431328
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x43130d
mov ebx, ecx
jmp 0x431252
cmp ebx, dword [eax + 8]
jne 0x43132e
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x43131e
mov ebx, eax
jmp 0x431252
xor esi, esi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004054f0
mov dword [ebp - 4], 1
mov eax, dword [0x4ae23c]
cmp eax, esi
je 0x431386
push dword [ebp - 0x40]
lea ecx, [ebp - 0xb8]
push ecx
call eax
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404b80
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.00404350
jmp 0x431394
push 0xffffffffffffffff
push esi
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.00404b80
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 0x4313ab
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 0x43151c
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, 0x4910fb
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 [0x4ad8f4], 0
je 0x43143d
push 0
push 0x40
push edi
call esi
add esp, 0xc
push 0
push 0x51
push edi
call esi
add esp, 0xc
cmp dword [0x4ab0f4], 0
je 0x431465
cmp dword [0x4ab0f8], 0x10
mov eax, dword [0x4ab0e4]
jae 0x431459
mov eax, 0x4ab0e4
push eax
push 0x2751
push edi
call esi
add esp, 0xc
cmp byte [0x4ae138], 0
je 0x431499
mov edi, 0x4ae138
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 0x431496
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 0x4314a7
mov eax, dword [eax + 4]
jmp 0x4314aa
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 0x4314d2
push dword [ebp - 0x34]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
test esi, esi
je 0x431500
push esi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00404c60
xor bl, bl
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00404350
mov al, bl
jmp 0x431225
cmp dword [ebp - 0x44], 0
je 0x431518
push dword [ebp - 0x44]
push 0x200002
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_getinfo]
add esp, 0xc
mov bl, 1
jmp 0x4314e9