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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d6e4
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10165034]
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.10001d60
lea ecx, [ebp - 0x248]
call fcn.1004f070
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 0x1003379a
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.10001d60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.1004eda0
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 0x1003361c
push dword [ebp - 0x230]
call edi
add esp, 4
push 0x22
push 0
test bl, bl
je 0x1003363d
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 0x10033751
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 0x1003379a
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.10001d60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.10033da0
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 0x101339c0
lea ecx, [ebp - 0x230]
call fcn.10006da0
test eax, eax
jne 0x10033739
sub esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x24c], esp
push eax
call fcn.10002200
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str._systemroot__system32
call fcn.10002200
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.1004e0c0
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 0x10033751
push dword [ebp - 0x230]
call edi
add esp, 4
test esi, esi
jne 0x1003379a
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 0x10133a68
push str.CEventProviderManager::LoadProviderDll
call fcn.1010dc80
add esp, 0x20
xor esi, esi
cmp dword [ebp - 0x234], 8
jb 0x100337ae
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 0x100337d9
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.101176fb
mov esp, ebp
pop ebp
ret 0x18