Function at 0x101afe00
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x6d
push str..._.._base_native_library_win.cc
push str.LoadNativeLibraryHelper
push ebx
call fcn.1014e3e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.10160300
mov eax, dword [0x102ba390]
mov ecx, dword [0x102b3718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x101b0018
mov edi, dword [ebp + 8]
mov eax, dword [0x102ba38c]
mov dword [esp], eax
test eax, eax
je 0x101afef4
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x101afe92
mov eax, dword [edi]
push 0x1100
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
test eax, eax
je 0x101afee3
mov esi, eax
mov ecx, dword [0x102ba394]
test ecx, ecx
jne 0x101afed7
sub esp, 0x14
movdqa xmm0, xmmword [0x1029e290]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], str.LibraryLoader.LoadNativeLibraryWindows
call fcn.10153aa0
add esp, 0x14
mov ecx, eax
mov dword [0x102ba394], eax
mov eax, dword [ecx]
push 0
call dword [eax + 0x14]
jmp 0x101afffa
cmp dword [ebp + 0x10], 0
je 0x101afef4
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push ebx
call fcn.10169040
add esp, 4
test al, al
je 0x101aff6d
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
lea esi, [esp + 4]
mov ecx, edi
push esi
call fcn.1014c6e0
movzx ebx, byte [esp + 0xf]
test bl, bl
jns 0x101aff4a
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x101aff57
push esi
call fcn.10169150
add esp, 4
test ebx, ebx
setne bl
lea ecx, [esp + 4]
call fcn.1014bf30
cmp byte [edi + 0xb], 0
js 0x101aff75
jmp 0x101aff77
xor ebx, ebx
cmp byte [edi + 0xb], 0
jns 0x101aff77
mov edi, dword [edi]
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov esi, eax
test eax, eax
jne 0x101aff95
cmp dword [ebp + 0x10], 0
je 0x101aff95
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test bl, bl
je 0x101affa6
lea eax, [esp + 0x10]
push eax
call fcn.10169150
add esp, 4
xor ebx, ebx
test esi, esi
sete bl
lea eax, [ebx + 1]
add ebx, 3
cmp dword [esp], 0
cmovne ebx, eax
mov ecx, dword [0x102ba394]
test ecx, ecx
jne 0x101affeb
sub esp, 0x14
movdqa xmm0, xmmword [0x1029e290]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], str.LibraryLoader.LoadNativeLibraryWindows
call fcn.10153aa0
add esp, 0x14
mov ecx, eax
mov dword [0x102ba394], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
lea ecx, [esp + 0x10]
call fcn.1014bf30
lea ecx, [esp + 0x20]
call fcn.10160360
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10205d16
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x102ba390
call fcn.10216dd3
add esp, 4
cmp dword [0x102ba390], 0xffffffff
jne 0x101afe79
push 0x1025a99e
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.AddDllDirectory
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x102ba38c], eax
push 0x102ba390
call fcn.10216dd3
add esp, 4
jmp 0x101afe79