Function at 0x10052240
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x1008d860
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x94]
xorps xmm0, xmm0
xor eax, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x8c], 1
mov ebp, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 4
call ebp
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x8c], 2
test esi, esi
je 0x1005231c
mov dword [esi], 0
mov dword [esi], 0xffffffff
jmp 0x1005231e
xor esi, esi
mov byte [esp + 0x8c], 1
mov dword [esp + 0x20], esi
mov byte [esp + 0x8c], 3
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.1001c690
test al, al
je 0x10052363
cmp dword [esp + 0x28], 0
ja 0x100523f5
jb 0x1005235c
cmp dword [esp + 0x24], 0x100000
jae 0x100523f5
mov ecx, ebx
call fcn.1002a1c0
xor bl, bl
mov byte [esp + 0x8c], 1
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test esi, esi
je 0x10052395
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1005238f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1005238f
mov dword [esi], 0xffffffff
push esi
call edi
add esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x60], 8
jb 0x100523b8
push dword [esp + 0x4c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
mov al, bl
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10081b94
add esp, 0x7c
ret 4
mov eax, dword [edi + 0x70]
or eax, dword [edi + 0x74]
jne 0x10052404
mov bl, 1
jmp 0x10052365
xorps xmm0, xmm0
push 4
movq qword [esp + 0x1c], xmm0
call ebp
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x8c], 4
test eax, eax
je 0x10052432
mov dword [eax], 0
mov dword [eax], 0
jmp 0x10052434
xor eax, eax
mov byte [esp + 0x8c], 3
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.10052970
mov byte [esp + 0x8c], 5
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.10068220
test al, al
jne 0x10052474
xor bl, bl
jmp 0x100524fe
push 0
mov edx, edi
lea ecx, [esp + 0x68]
call fcn.10013d90
mov byte [esp + 0x90], 6
lea eax, [esp + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.10012160
mov byte [esp + 0x94], 7
mov byte [esp + 0x94], 6
lea ecx, [esp + 0x6c]
call fcn.10052100
mov ecx, dword [ebx]
add esp, 8
mov dword [esp + 0x14], eax
mov ebp, edx
test ecx, ecx
je 0x100524dd
push ecx
push ecx
call fcn.1004fc00
add esp, 4
mov ecx, eax
call fcn.100500e0
mov eax, dword [esp + 0x14]
mov dword [ebx], 0
cmp eax, dword [edi + 0x70]
jne 0x100524eb
cmp ebp, dword [edi + 0x74]
jne 0x100524eb
mov bl, 1
jmp 0x100524ed
xor bl, bl
mov byte [esp + 0x8c], 5
lea ecx, [esp + 0x64]
call fcn.10001e90
mov byte [esp + 0x8c], 3
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10052365
or ebp, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebp
lock xadd dword [ecx], eax
jne 0x10052365
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebp
dec ebp
jne 0x10052365
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x10052365