Function at 0x5ac380
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x627430
mov ebx, ecx
lea edi, [esi + 0x20]
lea ecx, [esi + 4]
mov eax, dword fs:[0]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x3a], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3e], 0
mov byte [esi + 0x3c], 1
push edi
push eax
call fcn.005ac670
add esp, 8
cmp byte [esi + 4], 4
jne 0x5ac413
mov edx, dword [esi + 8]
jmp 0x5ac421
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
cmp al, 4
jne 0x5ac4c2
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], edx
call fcn.005ac890
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], ebx
xor eax, 2
or eax, dword [esi + 0x24]
jne 0x5ac481
movzx eax, byte [esi + 0x28]
mov ecx, dword [esi + 0x2c]
cmp al, 4
je 0x5ac484
cmp al, 3
jne 0x5ac515
mov eax, dword [ecx]
mov dword [esi + 0x14], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], 2
mov dword [esi], eax
push eax
mov dword [esi + 0xc], ecx
call dword [ecx]
add esp, 4
mov eax, dword [esi + 0xc]
cmp dword [eax + 4], 0
je 0x5ac504
cmp dword [eax + 8], 9
jae 0x5ac4f0
mov eax, dword [esi]
jmp 0x5ac4f5
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x5ac4e2
js 0x5ac5b8
movzx eax, byte [0x803894]
mov edx, 1
mov edi, 1
mov ebx, ecx
call fcn.004889b0
test eax, eax
jne 0x5ac525
mov ecx, 1
mov edx, ebx
mov dword [esi + 0x78], 0
call fcn.00651860
jmp 0x5ac5c4
mov ecx, eax
mov byte [ebx + 4], al
shr eax, 0x18
shr ecx, 8
mov byte [ebx + 7], al
mov word [ebx + 5], cx
mov dword [ebx + 8], edx
mov dword [ebx], 0
jmp 0x5ac5a7
mov edi, 1
xor ebx, ebx
mov eax, 1
jmp 0x5ac525
mov eax, dword [esi]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esi + 0x14]
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x78], 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], 0
mov dword [esi + 0x78], 1
lea ecx, [esi + 4]
lea edx, [esi + 0x1c]
push ebx
push edi
lea eax, [esi + 0x20]
push eax
call fcn.005ac990
add esp, 0xc
movzx eax, byte [esi + 4]
mov edx, dword [esi + 0x18]
cmp al, 4
jne 0x5ac569
mov eax, dword [esi + 0x28]
movsd xmm0, qword [esi + 0x20]
mov dword [edx + 8], eax
movsd qword [edx], xmm0
jmp 0x5ac59e
movzx ecx, byte [esi + 7]
movzx ebx, word [esi + 5]
cmp dword [esi + 0x24], 0
mov edi, dword [esi + 8]
mov byte [edx + 7], cl
mov word [edx + 5], bx
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 0
je 0x5ac59e
push dword [esi + 0x20]
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x78], 0
call fcn.00498870
ud2