Function at 0x10023ba0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1314
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10115034]
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
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001a60
lea ecx, [ebp - 0x248]
call fcn.1002f660
add esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov esi, eax
test esi, esi
jne 0x10023e2a
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp + 8]
mov dword [ebp - 0x220], 0
push eax
call fcn.10001a60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.1002f390
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 1
setne bl
cmp dword [ebp - 0x21c], 8
jb 0x10023cac
push dword [ebp - 0x230]
call edi
add esp, 4
push 0x22
push 0
test bl, bl
je 0x10023ccd
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
jmp 0x10023de1
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmovae eax, dword [ebp - 0x248]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x10023e2a
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x21c], 7
call fcn.10001a60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.10024430
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
push 0x100eee94
lea ecx, [ebp - 0x230]
call fcn.100055a0
test eax, eax
jne 0x10023dc9
sub esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x24c], esp
push eax
call fcn.10001ef0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str._systemroot__system32
call fcn.10001ef0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.1002e7b0
add esp, 0x30
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push 0x22
push esi
push eax
call ebx
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x21c], 8
jb 0x10023de1
push dword [ebp - 0x230]
call edi
add esp, 4
test esi, esi
jne 0x10023e2a
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
lea esi, [ebp - 0x248]
cmovae eax, dword [ebp + 8]
cmp dword [ebp - 0x234], 8
push eax
cmovae esi, dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.LoadLibraryEx:_s_failed_with__d.___s__n
push 1
push 0x5d
push 0x100eef58
push str.CEventProviderManager::LoadProviderDll
call fcn.100d1600
add esp, 0x20
xor esi, esi
cmp dword [ebp - 0x234], 8
jb 0x10023e3e
push dword [ebp - 0x248]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x10023e69
push dword [ebp + 8]
call edi
add esp, 4
mov eax, esi
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.100dc8fb
mov esp, ebp
pop ebp
ret 0x18