Function at 0x10050700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157589
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x101ac034]
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.10004030
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x230]
call fcn.1007de70
add esp, 0x18
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.10002bf0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x100507c0
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10003e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
mov eax, dword [ebp - 0x258]
jmp 0x100509c8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
lea edx, [ebp + 8]
push edx
call fcn.10004030
mov dword [ebp - 0x27c], eax
call fcn.1007dbc0
add esp, 0x18
mov byte [ebp - 0x24d], al
movzx eax, byte [ebp - 0x24d]
test eax, eax
je 0x10050811
push 0x22
push 0
lea ecx, [ebp + 8]
call fcn.10002bf0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x24c], eax
jmp 0x10050928
push 0x22
push 0
lea ecx, [ebp - 0x230]
call fcn.10002bf0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x10050928
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x248]
call fcn.10004030
mov byte [ebp - 4], 2
lea edx, [ebp - 0x248]
push edx
call fcn.100511e0
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 0x1016fa10
lea ecx, [ebp - 0x248]
call fcn.1000ae10
test eax, eax
jne 0x10050919
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x274], esp
lea eax, [ebp - 0x218]
push eax
call fcn.10003d50
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.10003d50
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.1007d0c0
add esp, 0x30
push 0x22
push 0
lea ecx, [ebp - 0x248]
call fcn.10002bf0
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.10003e00
cmp dword [ebp - 0x24c], 0
jne 0x10050998
lea ecx, [ebp + 8]
call fcn.10002bf0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x230]
call fcn.10002bf0
push eax
push str.LoadLibraryEx:_s_failed_with__d.___s__n
push 1
push 0x5d
push 0x1016fab8
push str.CEventProviderManager::LoadProviderDll
call fcn.10146290
add esp, 0x20
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10003e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
mov eax, dword [ebp - 0x254]
jmp 0x100509c8
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10003e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
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.101506bb
mov esp, ebp
pop ebp
ret 0x18