Function at 0x484540
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 [0x5ff014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x5a
push str..._.._base_native_library_win.cc
push str.LoadNativeLibraryHelper
push esi
call fcn.004dea80
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004e60a0
mov eax, dword [0x6093a8]
mov ecx, dword [0x6033f4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x4845f1
push 0x6093a8
call fcn.00503e17
add esp, 4
cmp dword [0x6093a8], 0xffffffff
jne 0x4845f1
push 0x5e1be4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.AddDllDirectory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6093a4], eax
push 0x6093a8
call fcn.00503e8d
add esp, 4
mov ebx, dword [ebp + 8]
mov esi, dword [0x6093a4]
test esi, esi
je 0x484695
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x48460c
mov eax, dword [ebx]
push 0x1100
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x484684
mov edi, eax
mov esi, dword [0x6093ac]
test esi, esi
je 0x48465b
mov eax, dword [esi]
mov ebx, dword [eax + 0x14]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 0
call ebx
lea ecx, [esp + 0x20]
call fcn.004e6100
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504596
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x14
movdqa xmm0, xmmword [0x5ebec0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], str.LibraryLoader.LoadNativeLibraryWindows
call fcn.004e0f70
add esp, 0x14
mov esi, eax
mov dword [0x6093ac], eax
jmp 0x48462a
cmp dword [ebp + 0x10], 0
je 0x484695
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
dec eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edi, [esp + 0x10]
mov ecx, edi
call fcn.004dd0a0
push edi
call fcn.0045bfd0
add esp, 4
test al, al
je 0x48479f
lea edi, [esp + 4]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, ebx
push edi
call fcn.004dd940
mov eax, edi
movzx ecx, byte [edi + 0xb]
test cl, cl
jns 0x4846e5
mov ecx, dword [esp + 8]
mov edi, ecx
test ecx, ecx
je 0x4846f4
push eax
call fcn.0045c0d0
add esp, 4
test edi, edi
setne al
mov dword [esp], eax
lea ecx, [esp + 4]
call fcn.004dd1f0
cmp byte [ebx + 0xb], 0
jns 0x48470d
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
jne 0x484724
cmp dword [ebp + 0x10], 0
jne 0x4847ab
cmp byte [esp], 0
je 0x484737
lea eax, [esp + 0x10]
push eax
call fcn.0045c0d0
add esp, 4
xor eax, eax
test edi, edi
sete al
xor ecx, ecx
test esi, esi
sete cl
lea eax, [eax + ecx*2]
inc eax
mov dword [esp], eax
mov esi, dword [0x6093ac]
test esi, esi
jne 0x48477d
sub esp, 0x14
movdqa xmm0, xmmword [0x5ebec0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], str.LibraryLoader.LoadNativeLibraryWindows
call fcn.004e0f70
add esp, 0x14
mov esi, eax
mov dword [0x6093ac], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x14]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [esp]
call ebx
lea ecx, [esp + 0x10]
call fcn.004dd1f0
jmp 0x48463d
mov dword [esp], 0
jmp 0x484705
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x484724