Function at 0x1000ba40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 4], ecx
movzx edx, byte [ebp + 8]
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0x1000eeb0
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
cmp edx, 1
mov dword [esi + 0x2c], edx
je 0x1000bb5b
mov eax, edx
cmp edx, 2
jne 0x1000bc6c
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov edx, edi
sub edx, ecx
sar edx, 4
mov dword [esi + 0x18], edx
mov edx, edi
sub edx, ecx
je 0x1000bae3
js 0x1000bff7
mov dword [esi + 0x40], 0
lea eax, [esi + 0x18]
lea ecx, [esi + 8]
push eax
call fcn.1000c050
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax]
mov dword [esi + 0x14], edi
cmp edx, edi
jne 0x1000bb2f
jmp 0x1000bc6c
movzx ecx, byte [edx]
mov byte [eax], cl
vmovsd xmm0, qword [edx + 8]
vmovsd qword [eax + 8], xmm0
mov byte [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
add dword [esi + 0xc], 0x10
add edx, 0x10
cmp edx, edi
je 0x1000bc6c
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x1000bb00
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edx
call fcn.1000c1a0
mov edx, dword [esi]
mov edi, dword [esi + 0x14]
add edx, 0x10
cmp edx, edi
jne 0x1000bb2f
jmp 0x1000bc6c
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
test ecx, ecx
je 0x1000bb8e
cmp ecx, 0x10000000
jae 0x1000c003
mov dword [esi + 0x40], 0
lea eax, [esi + 0x18]
lea ecx, [esi + 8]
push eax
call fcn.1000c050
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esi + 0x14], edx
nop word cs:[eax + eax]
cmp eax, edx
je 0x1000bc6c
mov edi, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x1000bbe0
movzx ecx, byte [edi + 0x28]
mov byte [eax], cl
vmovsd xmm0, qword [edi + 0x30]
vmovsd qword [eax + 8], xmm0
mov byte [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
add dword [esi + 0xc], 0x10
jmp 0x1000bbfb
lea edx, [edi + 0x28]
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edi
call fcn.1000c1a0
mov edi, dword [esi]
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 8]
cmp byte [ecx + 0xd], 0
je 0x1000bc30
nop word cs:[eax + eax]
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000bba0
mov ecx, edi
mov edi, eax
cmp ecx, dword [eax + 8]
je 0x1000bc10
mov eax, edi
jmp 0x1000bba0
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x1000bc30
jmp 0x1000bba0
mov edi, dword [esi + 0x20]
mov ebx, dword [edi]
mov ecx, edi
push dword [ebx + 4]
push edi
call fcn.1000c3f0
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [edi + 4], 0
movzx eax, byte [esi + 0x18]
lea ecx, [esi + 0x20]
push eax
call fcn.1000ba40
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp edi, eax
je 0x1000be1f
movzx ecx, byte [eax - 0x10]
mov byte [esi + 0x18], cl
vmovsd xmm0, qword [eax - 8]
vmovsd qword [esi + 0x20], xmm0
mov byte [eax - 0x10], 0
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov ecx, dword [esi + 0xc]
movzx eax, byte [ecx - 0x10]
add ecx, 0xfffffff8
push eax
call fcn.1000ba40
add dword [esi + 0xc], 0xfffffff0
movzx eax, byte [esi + 0x18]
cmp eax, 1
je 0x1000bd70
cmp eax, 2
jne 0x1000bc5f
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov dword [esi + 0x14], edi
cmp edx, edi
jne 0x1000bd0b
jmp 0x1000bd32
movzx ecx, byte [edx]
mov byte [eax], cl
vmovsd xmm0, qword [edx + 8]
vmovsd qword [eax + 8], xmm0
mov byte [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
add dword [esi + 0xc], 0x10
add edx, 0x10
cmp edx, edi
je 0x1000bd32
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x1000bce0
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edx
call fcn.1000c1a0
mov edi, dword [esi + 0x14]
mov edx, dword [esi]
add edx, 0x10
cmp edx, edi
jne 0x1000bd0b
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
cmp ebx, edi
je 0x1000bc5f
mov dword [esi], eax
nop word cs:[eax + eax]
movzx eax, byte [ebx]
lea ecx, [ebx + 8]
push eax
call fcn.1000ba40
add ebx, 0x10
cmp ebx, edi
jne 0x1000bd50
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x1000bc5f
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esi + 0x14], edx
nop word [eax + eax]
cmp eax, edx
je 0x1000bc40
mov edi, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x1000bdc0
movzx ecx, byte [edi + 0x28]
mov byte [eax], cl
vmovsd xmm0, qword [edi + 0x30]
vmovsd qword [eax + 8], xmm0
mov byte [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
add dword [esi + 0xc], 0x10
jmp 0x1000bddb
lea edx, [edi + 0x28]
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edi
call fcn.1000c1a0
mov edi, dword [esi]
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 8]
cmp byte [ecx + 0xd], 0
je 0x1000be10
nop word cs:[eax + eax]
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000bd80
mov ecx, edi
mov edi, eax
cmp ecx, dword [eax + 8]
je 0x1000bdf0
mov eax, edi
jmp 0x1000bd80
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x1000be10
jmp 0x1000bd80
movzx eax, byte [esi + 0x2c]
dec eax
cmp eax, 7
ja case.0x1000be2d.4
jmp dword [eax*4 + 0x1000c020]
mov ebx, dword [esi + 4]
mov edi, dword [ebx]
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
push edi
call fcn.1000c3f0
push 0x38
push dword [edi]
call fcn.100f1e8b
add esp, 8
push 8
push dword [ebx]
jmp 0x1000bf88
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1000be97
mov ecx, dword [edi]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x1000be8d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x1000bff1
add eax, 0x24
mov ebx, eax
mov ecx, edx
push ebx
push ecx
call fcn.100f1e8b
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0x18
mov eax, dword [esi + 4]
push dword [eax]
jmp 0x1000bf88
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax]
test ebx, ebx
je 0x1000bf85
mov dword [esi], eax
mov edi, dword [eax + 4]
cmp ebx, edi
je 0x1000bf3e
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [ebx + 8]
push eax
call fcn.1000ba40
add ebx, 0x10
cmp ebx, edi
jne 0x1000bed0
mov edi, dword [esi]
mov ebx, dword [edi]
jmp 0x1000bf40
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x1000bf39
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x1000bf16
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x1000bff1
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100f1e8b
add esp, 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 4]
mov edi, dword [eax]
push 0x10
push edi
jmp 0x1000bf88
mov edi, dword [esi]
mov eax, dword [edi + 8]
sub eax, ebx
cmp eax, 0x1000
jb 0x1000bf62
mov ecx, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, ecx
cmp ebx, 0x20
jae 0x1000bff1
add eax, 0x23
mov ebx, ecx
push eax
push ebx
call fcn.100f1e8b
add esp, 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 4]
mov eax, dword [eax]
push 0xc
push eax
call fcn.100f1e8b
add esp, 8
mov edi, dword [esi + 8]
test edi, edi
je 0x1000bfde
mov ebx, dword [esi + 0xc]
cmp edi, ebx
je 0x1000bfb6
nop
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.1000ba40
add edi, 0x10
cmp edi, ebx
jne 0x1000bfa0
mov edi, dword [esi + 8]
mov eax, dword [esi + 0x10]
sub eax, edi
cmp eax, 0x1000
jb 0x1000bfd4
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x1000bff1
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.100f1e8b
add esp, 8
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x40], 0
call fcn.1000c040
mov dword [esi + 0x40], 0
call fcn.1000c040
nop
push ebp
sub esp, 8
lea esi, [ebp - 0x44]
mov ebp, dword [esi + 0x30]
call sub.VCRUNTIME140.dll___std_terminate
nop
xor al, 0xbe
add byte [eax], dl
mov ah, 0xbe
add byte [eax], dl
pop ebx
mov esi, -1080881152
add byte [eax], dl
xchg ebx, eax
mov edi, -1080881152
add byte [eax], dl
xchg ebx, eax
mov edi, -1092022272
add byte [eax], dl