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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f1524
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x1012d034]
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.10001a70
lea ecx, [ebp - 0x248]
call fcn.1003b000
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 0x1002e18a
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.10001a70
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.1003ad30
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 0x1002e00c
push dword [ebp - 0x230]
call edi
add esp, 4
push 0x22
push 0
test bl, bl
je 0x1002e02d
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 0x1002e141
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 0x1002e18a
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.10001a70
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.1002e790
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 0x1010319c
lea ecx, [ebp - 0x230]
call fcn.10006a40
test eax, eax
jne 0x1002e129
sub esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x24c], esp
push eax
call fcn.10001f10
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str._systemroot__system32
call fcn.10001f10
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.1003a0e0
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 0x1002e141
push dword [ebp - 0x230]
call edi
add esp, 4
test esi, esi
jne 0x1002e18a
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 0x10103260
push str.CEventProviderManager::LoadProviderDll
call fcn.100e1770
add esp, 0x20
xor esi, esi
cmp dword [ebp - 0x234], 8
jb 0x1002e19e
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 0x1002e1c9
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.100ebd7b
mov esp, ebp
pop ebp
ret 0x18