Function at 0x418d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [ebp + 0xc]
push esi
push eax
lea ecx, [ebp - 8]
call fcn.004055e0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 4]
call fcn.004055e0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp + 0xc]
call fcn.004055e0
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x418d9d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418d56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418d75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418d91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418d37
push edi
push 3
push esi
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
call fcn.00414950
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push eax
lea ecx, [ebp + 0x14]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov edi, dword [sym.imp.MSVCR100.dll_free]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, ecx
je 0x418def
push eax
call edi
add esp, 4
mov eax, dword [ebp - 4]
push 3
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
call fcn.00414950
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push edx
lea ecx, [ebp + 0x10]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, ecx
je 0x418e32
push eax
call edi
add esp, 4
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx - 0xc], 0
jne 0x41918b
push 0x2d
push 0x499e4c
lea ecx, [ebp + 0xc]
call fcn.00407340
mov esi, dword [ebp + 0xc]
push esi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
test ebx, ebx
jne 0x418eab
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418e84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x4191e4
push 3
push esi
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
call fcn.00414950
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, ecx
je 0x418eeb
push eax
call edi
add esp, 4
push 3
push str.elevate_name
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
call fcn.00414950
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, edx
je 0x418f2f
push eax
call edi
add esp, 4
push 3
push str.elevate_path
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
call fcn.00414950
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push edx
lea ecx, [ebp - 0x18]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, ecx
je 0x418f73
push eax
call edi
add esp, 4
push 3
push str.elevate_param
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
call fcn.00414950
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, edx
je 0x418fb7
push eax
call edi
add esp, 4
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
call edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
push edi
push eax
push ecx
lea edx, [ebp - 0x14]
push str.___s_s____s_s____s_s
push edx
call fcn.00407630
xor eax, eax
push 0x208
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov word [ebp - 0x32c], ax
call sub.MSVCR100.dll_memset
add esp, 0x2c
push 0x104
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [ebp - 0x14]
push esi
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call fcn.00419270
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419050
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push edx
push eax
call fcn.00419330
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41906c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419088
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4190a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4190c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4190e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419107
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
jne 0x419249
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4191c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4191e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4191fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41921c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41923b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ecx
push edx
call fcn.00419330
jmp 0x4190e8