Function at 0x1001a4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9b02
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x224], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10076570
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100dd650]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.Pluginextension
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001a59e
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebx + 0x24], 0
jne 0x1001a5b5
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x24], eax
push ecx
mov esi, esp
mov dword [ebp - 0x21c], esi
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1001a8cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
shr eax, 0x10
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x1001a604
lea eax, [ebp - 0x218]
mov ecx, esi
movzx eax, ax
push eax
call fcn.10003390
jmp 0x1001a62e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a610
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002680
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x1c]
test eax, eax
je 0x1001a8a7
mov edi, dword [ebx + 0x44]
cmp edi, dword [ebx + 0x48]
je 0x1001a8a7
push 0x3e8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001a8a7
call fcn.100029d0
test eax, eax
je 0x1001a8cd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x22c], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
jne 0x1001a6aa
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.10003390
jmp 0x1001a6d2
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a6b0
sub eax, edx
lea ecx, [ebp - 0x220]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002680
mov esi, dword [ebp - 0x220]
mov ecx, 1
mov edx, dword [edi + 4]
mov dword [ebp - 4], 2
mov dword [ebp - 0x21c], edx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1001a718
push 0x104
lea ecx, [ebp - 0x220]
call fcn.10002590
mov esi, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
jl 0x1001a8c3
push edx
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.1007da0b
add esp, 8
test eax, eax
js 0x1001a8c3
cmp eax, dword [esi - 8]
jg 0x1001a8c3
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
push dword [ebx + 0x24]
push 0x7530
push ecx
mov ebx, esp
mov dword [ebp - 0x230], esp
mov dword [ebp - 0x21c], ebx
push eax
mov dword [ebp - 0x21c], eax
call fcn.10002400
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [edi + 8]
mov esi, esp
sub eax, 0x10
mov dword [ebp - 0x234], esp
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x228], esi
call fcn.10002400
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi]
mov esi, esp
sub eax, 0x10
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x228], esi
call fcn.10002400
mov ebx, dword [ebp - 0x224]
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.10019d30
test eax, eax
jne 0x1001a879
call fcn.1005d530
test eax, eax
je 0x1001a879
call fcn.1005d530
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001a879
call fcn.1005d530
lea ecx, [ebp - 0x2cc]
mov ebx, eax
call fcn.100064c0
mov esi, eax
push str.error_DownloadLua:
push esi
mov byte [ebp - 4], 5
call fcn.1000d070
mov ecx, dword [edi + 4]
mov edx, 0x100afe38
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.1000d070
push str.Url:
push esi
call fcn.1000d070
mov eax, dword [edi]
mov ecx, 0x100afe38
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.1000d070
mov eax, dword [ebx]
add esp, 0x20
mov ecx, ebx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x2cc]
call fcn.100071d0
mov ebx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a89b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xc
cmp edi, dword [ebx + 0x48]
jne 0x1001a650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10001670
push 0x80004005
call fcn.10001670
int3