Function at 0x10050c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101533e9
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x288], ecx
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x278], esp
lea eax, [ebp + 8]
push eax
call fcn.10003060
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x230]
call fcn.1007c6b0
add esp, 0x18
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x10050d30
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov eax, dword [ebp - 0x258]
jmp 0x10050f38
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
lea edx, [ebp + 8]
push edx
call fcn.10003060
mov dword [ebp - 0x27c], eax
call fcn.1007c400
add esp, 0x18
mov byte [ebp - 0x24d], al
movzx eax, byte [ebp - 0x24d]
test eax, eax
je 0x10050d81
push 0x22
push 0
lea ecx, [ebp + 8]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x24c], eax
jmp 0x10050e98
push 0x22
push 0
lea ecx, [ebp - 0x230]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x10050e98
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x248]
call fcn.10003060
mov byte [ebp - 4], 2
lea edx, [ebp - 0x248]
push edx
call fcn.10051750
add esp, 4
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0x1016a704
lea ecx, [ebp - 0x248]
call fcn.1000a030
test eax, eax
jne 0x10050e89
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x274], esp
lea eax, [ebp - 0x218]
push eax
call fcn.10002c60
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x284], ecx
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x268], esp
push str._systemroot__system32
call fcn.10002c60
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.1007b900
add esp, 0x30
push 0x22
push 0
lea ecx, [ebp - 0x248]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.10002d10
cmp dword [ebp - 0x24c], 0
jne 0x10050f08
lea ecx, [ebp + 8]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x230]
call fcn.10001960
push eax
push str.LoadLibraryEx:_s_failed_with__d.___s__n
push 1
push 0x5d
push 0x1016a7c8
push str.CEventProviderManager::LoadProviderDll
call fcn.10142a80
add esp, 0x20
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov eax, dword [ebp - 0x254]
jmp 0x10050f38
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret 0x18