Function at 0x4075a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412906
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x41a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x41a030]
mov edx, dword [eax + 0xc]
mov ecx, 0x41a030
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, str.AutoItX3.dll
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40761a
mov ecx, eax
movzx edi, cx
push edi
call fcn.00407340
add esp, 4
test eax, eax
je 0x407630
push eax
mov eax, edi
lea edi, [ebp - 0x21c]
call fcn.0040a870
jmp 0x407630
push str.AutoItX3.dll
lea edx, [ebp - 0x21c]
push edx
mov ebx, 0xc
call fcn.0040a910
mov dword [ebp - 4], 1
call fcn.0040ccb0
test eax, eax
je 0x407656
push str.AutoItX3_x64.dll
lea eax, [ebp - 0x21c]
push eax
mov ebx, 0x10
call fcn.0040a910
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x220]
push ecx
lea edi, [ebp - 0x21c]
call fcn.004090c0
mov eax, dword [eax]
add esp, 4
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4076fb
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
jmp 0x4077aa
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40772e
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
jmp 0x4077aa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AU3_ControlClick
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.AU3_ControlCommand
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x10]
push str.AU3_WinWait
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
push str.AU3_WinActivate
push eax
call edi
cmp dword [esi], 0
mov dword [esi + 0xc], eax
je 0x407796
cmp dword [esi + 4], 0
je 0x407796
cmp dword [esi + 8], 0
je 0x407796
test eax, eax
je 0x407796
lea eax, [ebp - 0x21c]
mov dword [esi + 0x14], 1
call fcn.00409f50
mov eax, 1
jmp 0x4077ba
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4077b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411688
mov esp, ebp
pop ebp
ret