Function at 0x1000f540
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001963d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1001f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
push dword [ebp + 0x2c]
mov dword [ebp - 4], 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
call fcn.1000ee30
mov al, byte [ebp + 0x38]
mov ecx, edi
mov byte [ebp - 4], 1
mov byte [edi + 0x49], al
mov al, byte [ebp + 0x3c]
mov byte [edi + 0x4b], al
mov eax, dword [edi + 0x14]
sub eax, 0x1a
mov dword [edi], vtable.GUIWindow.0
push eax
mov eax, dword [edi + 0x10]
sub eax, 8
mov byte [edi + 0x48], 0
push eax
push 0
mov byte [edi + 0x4a], 0
call fcn.1000f300
push 0
push 0
push 1
mov ecx, edi
call fcn.1000f300
mov eax, dword [edi + 0x10]
mov ecx, edi
push 5
sar eax, 1
push eax
push 2
call fcn.1000f3c0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.10008f00
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x38]
mov dword [ebp - 0x10], 2
call fcn.10009320
sub esp, 0x14
mov ecx, dword [eax]
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, esp
mov byte [ebp - 4], 1
mov dword [eax], 4
mov dword [eax + 4], 0x8f
mov dword [eax + 8], 0x8f
mov dword [eax + 0xc], 0x8f
mov dword [eax + 0x10], 1
call fcn.1000d360
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
lea ecx, [edi + 0x38]
call fcn.10009320
cmp byte [ebp + 0x34], 0
mov ecx, dword [eax]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x14], esi
lea ebx, [esi + 0x30]
je 0x1000f6d1
mov eax, dword [ebx]
mov ecx, dword [edi + 0x10]
push 1
push 1
push 0
push 1
shl eax, 4
sub ecx, eax
sub ecx, 0x10
push ecx
push edi
push 0x1000f4c0
sub esp, 0x18
mov esi, esp
push 1
push 0x1001a6b0
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 1], 0
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.1000cc30
mov dword [eax + 0x38], 0x18
mov dword [eax + 0x30], 0x10
mov dword [eax + 0x34], 0x10
mov dword [eax + 0x3c], 0
cmp byte [ebp + 0x30], 0
je 0x1000f72f
mov eax, dword [ebx]
mov ecx, dword [edi + 0x10]
push 1
push 1
push 0
shl eax, 4
sub ecx, eax
push 3
sub ecx, 0x10
push ecx
push edi
push 0x1000f500
sub esp, 0x18
mov ecx, esi
mov eax, esp
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.1000cc30
mov dword [eax + 0x38], 0x92
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
cmp byte [ebp + 0x38], 0
je 0x1000f78d
mov eax, dword [ebx]
mov ecx, esi
mov edx, dword [edi + 0x10]
push 1
push 1
push 1
shl eax, 4
push 3
sub edx, eax
sub edx, 0x10
push edx
push edi
push 0x1000f520
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.1000cc30
mov dword [eax + 0x38], 0x85
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1000f7c3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f7b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000f7b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38