Function at 0x1000aae0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001785c
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x100220e0]
xor eax, esp
mov dword [esp + 0x538], eax
push ebp
push esi
mov eax, dword [0x100220e0]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
push str.Enter_
mov esi, ecx
push 0x1a7
push 4
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
xor ebp, ebp
call fcn.10001780
add esp, 0xc
test esi, esi
jne 0x1000ab62
push str.NULL__lpszFilePath
push 0x1ad
push 2
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
call fcn.10001780
add esp, 0xc
jmp 0x1000ad9f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
test eax, eax
jne 0x1000ab7d
push str._s_is_not_exist
push 0x1b3
jmp 0x1000ad8b
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x1000ad80
push str..dll
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1000ad80
mov ecx, esi
call fcn.1000adf0
mov ebp, eax
push esi
test ebp, ebp
jne 0x1000abbf
push str._s_VerifyDigitalSignature_fail
push 0x1c3
jmp 0x1000ad8b
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x1000ac32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x13e]
push ecx
mov word [esp + 0x140], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push str.errorid_u
lea edx, [esp + 0x13c]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll_swprintf_s]
lea eax, [esp + 0x144]
push eax
push 0x1cc
push 3
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
call fcn.10001780
add esp, 0x1c
jmp 0x1000ad9f
mov ebp, 1
test edi, edi
je 0x1000ad60
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000ac44
sub eax, edx
sar eax, 1
je 0x1000ad60
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x103
lea ecx, [esp + 0x31]
push 0
mov dword [esp + 0x558], 0
push ecx
mov byte [esp + 0x38], 0
call sub.MSVCR90.dll_memset
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000ac90
sub eax, edx
lea edx, [esp + 0x10]
push edx
sar eax, 1
push eax
push edi
call fcn.1000d708
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], 0x10
jae 0x1000acbd
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000acfc
call eax
cmp eax, 1
jne 0x1000ace2
xor ebp, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x550], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1000ad9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
push 0x206
mov esi, eax
push edx
lea eax, [esp + 0x346]
push eax
mov word [esp + 0x348], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push str.errorid_u
lea ecx, [esp + 0x344]
push 0x104
push ecx
call dword [sym.imp.MSVCR90.dll_swprintf_s]
lea edx, [esp + 0x34c]
push edx
push 0x1e9
push 3
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
call fcn.10001780
add esp, 0x1c
jmp 0x1000ace0
push str.NULL__lpszFuncName
push 0x1d5
push 2
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
call fcn.10001780
add esp, 0xc
jmp 0x1000ad9f
push esi
push str._s_is_not_.dll
push 0x1bb
push 2
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
call fcn.10001780
add esp, 0x10
push str.Leave_
push 0x1f3
push 4
mov edx, str.CLoadModule::LoadDll
mov ecx, str..LoadModule.cpp
call fcn.10001780
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.10015494
add esp, 0x548
ret