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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fdb4
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10152034]
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.100417d0
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 0x1003212a
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.10041500
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 0x10031fac
push dword [ebp - 0x230]
call edi
add esp, 4
push 0x22
push 0
test bl, bl
je 0x10031fcd
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 0x100320e1
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 0x1003212a
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.10032730
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 0x10123ca0
lea ecx, [ebp - 0x230]
call fcn.10006da0
test eax, eax
jne 0x100320c9
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.10040820
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 0x100320e1
push dword [ebp - 0x230]
call edi
add esp, 4
test esi, esi
jne 0x1003212a
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 0x10123d48
push str.CEventProviderManager::LoadProviderDll
call fcn.100ffcc0
add esp, 0x20
xor esi, esi
cmp dword [ebp - 0x234], 8
jb 0x1003213e
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 0x10032169
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.1010a06b
mov esp, ebp
pop ebp
ret 0x18