Function at 0x4ae8e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4aeb38
mov eax, dword [eax + 0x1a4]
cmp dword [eax - 0xc], 0
je 0x4aeb38
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x4aeb38
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x10]
test edx, edx
jle 0x4aeb38
push ebx
push edi
lea eax, [esp + 0x14]
push str.Data_
push eax
call fcn.0042c830
add esp, 8
lea edi, [esi + 0x28]
push eax
mov ecx, edi
call fcn.0040b0f0
lea ecx, [esp + 0x14]
call fcn.00409f10
mov ecx, dword [esi + 4]
add ecx, 0x1a4
push ecx
lea ecx, [esp + 0x10]
call fcn.00409df0
mov ebx, dword [esp + 0xc]
cmp dword [ebx - 0xc], 0
jl 0x4ae99f
push str._devices_
push ebx
call fcn.0046f02d
add esp, 8
test eax, eax
je 0x4ae99f
sub eax, ebx
sar eax, 1
js 0x4ae99f
add eax, 9
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.0040a200
push eax
mov ecx, edi
call fcn.00409f70
lea ecx, [esp + 0x14]
call fcn.00409f10
jmp 0x4aea0b
push 0x4da280
push str.http:__
lea ecx, [esp + 0x14]
call fcn.00409fb0
mov ebx, dword [esp + 0xc]
cmp dword [ebx - 0xc], 0
jge 0x4ae9c1
or eax, 0xffffffff
jmp 0x4ae9dc
push 0x4cedc0
push ebx
call fcn.0046f02d
add esp, 8
test eax, eax
jne 0x4ae9d8
or eax, 0xffffffff
jmp 0x4ae9dc
sub eax, ebx
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.0040a200
push eax
lea ecx, [esp + 0x10]
call fcn.0040b0f0
lea ecx, [esp + 0x14]
call fcn.00409f10
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.00409f70
push 0x5c
push 0x2f
mov ecx, edi
call fcn.004ae840
push str..png
push 4
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0040a320
mov ecx, eax
call fcn.00448b80
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call fcn.00409f10
test bl, bl
je 0x4aea54
lea ecx, [esp + 0xc]
call fcn.00409f10
pop edi
pop ebx
xor al, al
pop esi
add esp, 0xc
ret
push edi
lea ecx, [esp + 0x14]
call fcn.00409df0
lea ecx, [esp + 0x10]
call fcn.0044c090
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x10]
push eax
call fcn.004b6f50
mov eax, dword [edi]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aeaa2
cmp dword [esi + 8], 0
je 0x4aeb1d
mov esi, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [edx]
push edi
push 0
mov ecx, esi
call eax
jmp 0x4aeb1d
mov ecx, dword [esi + 0x20]
cmp dword [ecx - 0xc], 0
lea ebx, [esi + 0x20]
je 0x4aeac4
mov eax, dword [esi + 4]
add eax, 0x1a4
push eax
push ebx
call fcn.0049e5c0
add esp, 8
test al, al
je 0x4aeb1d
mov ecx, dword [esi + 0x1c]
call fcn.004b2840
mov ecx, dword [esi + 0x1c]
push esi
call fcn.004b2710
mov edx, dword [esi + 4]
add edx, 0x1a4
push edx
mov ecx, ebx
call fcn.00409f30
mov eax, dword [esi + 4]
add eax, 0x1a4
push eax
lea ecx, [esp + 0x18]
call fcn.00409df0
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
call fcn.004b27d0
mov ecx, dword [esi + 0x1c]
push 0
push 0
call fcn.004b27a0
lea ecx, [esp + 0x14]
call fcn.00409f10
lea ecx, [esp + 0x10]
call fcn.00409f10
lea ecx, [esp + 0xc]
call fcn.00409f10
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0xc
ret
xor al, al
pop esi
add esp, 0xc
ret