Function at 0x1003ed60
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x1008b36e
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 eax, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x8c], 1
lea eax, [esp + 0xa0]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0
push eax
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.10001ec0
mov byte [esp + 0x8c], 2
mov edx, esi
push 0xfde9
lea ecx, [esp + 0x18]
call fcn.10013d90
add esp, 4
mov byte [esp + 0x8c], 3
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.10016830
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x28], 0x10
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1003ee4e
push dword [esp + 0x14]
call ebx
add esp, 4
push 0xfde9
mov edx, edi
mov dword [esp + 0x2c], 0xf
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10013d90
add esp, 4
mov byte [esp + 0x8c], 4
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.10016830
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x28], 0x10
jb 0x1003eea4
push dword [esp + 0x14]
call ebx
add esp, 4
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x50]
lea edx, [esp + 0x44]
mov dword [esp + 0x30], 0xf
cmovae edx, dword [esp + 0x44]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.1003c6b0
mov byte [esp + 0x94], 5
lea ecx, [esp + 0x5c]
call fcn.1000a4e0
push 0xfde9
lea edx, [esp + 0x60]
lea ecx, [esp + 0x20]
call fcn.10013d90
add esp, 0xc
mov byte [esp + 0x8c], 6
lea ecx, [esp + 0xa0]
push 0xffffffffffffffff
push 0
push eax
call fcn.10016830
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x28], 0x10
jb 0x1003ef30
push dword [esp + 0x14]
call ebx
add esp, 4
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], 0
cmovae eax, dword [esp + 0x3c]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [eax], 0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x4c]
cmp edi, esi
ja 0x1003efa0
cmp dword [esp + 0x50], esi
je 0x1003efa0
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.100021c0
test al, al
je 0x1003ef99
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], edi
cmovae eax, dword [esp + 0x3c]
mov byte [eax + edi], 0
mov esi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0xa0]
mov edx, dword [esp + 0xa0]
cmp ecx, 0x10
cmovae eax, edx
add esi, eax
lea ecx, [ecx]
cmp ecx, 0x10
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x3c]
cmovae eax, edx
cmp esi, eax
je 0x1003f020
mov al, byte [esi - 1]
dec esi
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x34], al
cmovae ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
add eax, ecx
cmp dword [esp + 0x50], 0x10
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
test eax, eax
je 0x1003f001
sub eax, ecx
push dword [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.10040280
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
jmp 0x1003efc0
lea eax, [esp + 0xa0]
push eax
call fcn.1003b3f0
mov edi, dword [esp + 0x4c]
xor esi, esi
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb0], edi
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x50], eax
mov dword [esp + 0xb4], ebp
test edi, edi
je 0x1003f0d5
nop
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
cmp ecx, 1
jne 0x1003f0d0
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0xa0]
cmp ebp, 0x10
lea ecx, [esp + 0xa0]
cmovae eax, edx
cmovae ecx, edx
mov bl, byte [eax + esi - 1]
lea eax, [esp + 0xa0]
cmovae eax, edx
mov al, byte [eax + esi]
mov byte [ecx + esi - 1], al
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 0x10
cmovae eax, dword [esp + 0xa0]
mov byte [eax + esi], bl
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
inc esi
cmp esi, edi
jb 0x1003f060
xor esi, esi
test edi, edi
je 0x1003f155
jmp 0x1003f0e0
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
cmp ecx, 2
jne 0x1003f150
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0xa0]
cmp ebp, 0x10
lea ecx, [esp + 0xa0]
cmovae eax, edx
cmovae ecx, edx
mov bl, byte [eax + esi - 1]
lea eax, [esp + 0xa0]
cmovae eax, edx
mov al, byte [eax + esi]
mov byte [ecx + esi - 1], al
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 0x10
cmovae eax, dword [esp + 0xa0]
mov byte [eax + esi], bl
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
inc esi
cmp esi, edi
jb 0x1003f0e0
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [esp + 0xb4], 0x10
jae 0x1003f193
mov eax, dword [esp + 0xb0]
inc eax
je 0x1003f1b7
push eax
lea eax, [esp + 0xa4]
push eax
push ebx
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1003f1b7
mov byte [esp + 0x8c], 8
mov eax, dword [esp + 0xa0]
mov dword [ebx], eax
mov byte [esp + 0x8c], 5
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0xb0]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0xb4]
mov dword [ebx + 0x14], eax
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
mov dword [esp + 0x30], 1
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x68], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1003f20f
push dword [esp + 0x54]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0x8c], 1
cmp dword [esp + 0x50], 0x10
jb 0x1003f23e
push dword [esp + 0x3c]
call esi
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x8c], 0
cmp dword [esp + 0xb4], 0x10
jb 0x1003f271
push dword [esp + 0xa0]
call esi
add esp, 4
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
mov eax, ebx
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 0x24