Function at 0x10013800
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, esp
mov dword [esi + 0x220], ebp
lea ebx, [esi + 0x228]
mov dword [ebx - 4], esp
xor eax, eax
dec eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0x1001c860
mov eax, dword fs:[0]
mov dword [ebx], eax
mov dword fs:[0], ebx
mov eax, 0x190
lea edi, [esi + 0x90]
push eax
push 0xff
push edi
call fcn.10021e70
add esp, 0xc
mov dword [esi + 0x4c], edi
mov dword [esi + 0x18], edi
mov eax, 0x190
add edi, eax
mov dword [esi + 0x5c], edi
xor ecx, ecx
dec ecx
mov dword [esi + 0x58], ecx
mov al, 0xff
lea edx, [esi + 0x54]
mov dword [edx], ecx
lea ecx, [esi + 0x17]
mov byte [ecx], al
lea ecx, [esi + 0x16]
mov byte [ecx], al
mov dword [esi + 0x50], fcn.10004950
mov dword [ebx + 8], 1
xor eax, eax
lea ebx, [esi + 0x70]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
lea edi, [esi + 0x20]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
lea edx, [esi + 0x40]
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx + 8], eax
lea ecx, [esi + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
movzx eax, byte [ebp + 0x10]
mov dword [esi], eax
lea eax, [esi + 0x54]
push eax
push ecx
push edx
push edi
push ebx
lea ecx, [esi + 0x16]
push ecx
lea ecx, [esi + 0x17]
push ecx
lea eax, [esi + 0x58]
push eax
push dword [ebp + 0x14]
push dword [esi]
call fcn.100144dc
add esp, 0x28
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ecx], eax
shr edx, 9
and edx, 1
mov dword [esi + 0x88], edx
xor ecx, ecx
xor edi, edi
cmp edi, 3
mov dword [esi + 4], ecx
ja 0x10014041
mov dword [esi + 0xc], edi
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10007830
test al, al
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
jne 0x10014041
movsx eax, byte [esi + edi + 0x58]
cmp eax, 4
ja case.default.0x10013947
jmp dword [eax*4 + 0x1001421c]
cmp edi, 3
jne 0x10013cfe
jmp 0x10013f2f
cmp edi, 3
je case.default.0x10013947
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013c9c
movzx eax, byte [eax]
jmp 0x10013ca1
test ecx, ecx
jne 0x10013b66
cmp edi, 2
jb 0x10013b66
sete al
cmp byte [esi + 0x5b], 0
setne cl
and cl, al
or cl, byte [esi + 0x88]
xor eax, eax
cmp cl, 1
jne 0x10014039
mov cl, byte [esi + 0x2b]
mov edx, ecx
shr dl, 7
test cl, cl
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, eax
mov dword [esi], ebx
jmp 0x10013b83
movzx edx, byte [esi + 0x4b]
mov eax, edx
test dl, dl
jns 0x100139d3
mov eax, dword [esi + 0x44]
movzx ebx, byte [esi + 0x3b]
mov edi, ebx
test bl, bl
jns 0x100139e0
mov edi, dword [esi + 0x34]
mov ecx, eax
add ecx, edi
je 0x10013f2f
test eax, eax
je 0x10013cd4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edi, edi
je 0x10013e21
cmp eax, ebx
je 0x10013e31
movzx eax, byte [eax]
mov dword [esi], eax
jmp 0x10013e3b
mov dword [esi], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10007830
test al, al
jne 0x10013b03
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013a43
movzx ebx, byte [eax]
jmp 0x10013a4a
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
test bl, bl
js 0x10013a5d
movzx eax, bl
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
jne 0x10013ab3
movzx eax, byte [esi + 0x7b]
test al, al
jns 0x10013a68
mov eax, dword [esi + 0x74]
cmp byte [esi + 0x16], bl
jne 0x10013b03
cmp dword [esi], 0
je 0x10013b03
test eax, eax
je 0x10013b03
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x5c]
jne 0x10013aa1
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.100146ad
add esp, 0xc
mov eax, dword [esi + 0x18]
lea ecx, [eax + 4]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [esi], 0
jmp 0x10013ae3
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
jne 0x10013ad8
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
mov dword [esi + 0x10], ebx
call fcn.10014638
mov ebx, dword [esi + 0x10]
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
mov edx, ecx
lea ecx, [eax + 1]
mov dword [edx], ecx
mov byte [eax], bl
inc dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013af9
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10013a1d
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10013a1d
cmp dword [esi], 0
je 0x10013b36
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x4c], eax
je 0x10013b36
cmp eax, dword [esi + 0x5c]
jne 0x10013b2c
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.100146ad
add esp, 0xc
mov eax, dword [esi + 0x18]
lea ecx, [eax + 4]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
cmp dword [esi + 0x54], 0
jle 0x10013c77
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10007830
test al, al
jne 0x100140ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013ba7
movzx eax, byte [eax]
jmp 0x10013bac
mov cl, byte [esi + 0x2b]
test cl, cl
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, eax
test edi, edi
je 0x10013eb5
mov dword [esi], ebx
mov edx, ecx
shr dl, 7
lea ebx, [esi + 0x58]
cmp byte [edi + ebx - 1], 1
ja 0x10013ba0
test dl, dl
mov byte [esi + 0xb], cl
je 0x10013d72
mov ecx, dword [esi + 0x24]
jmp 0x10013d75
mov ebx, dword [esi]
jmp 0x10013eb5
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp byte [esi + 0x17], al
jne 0x100140ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013c92
inc eax
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x54], 0
jle 0x10013c77
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10007830
test al, al
jne 0x100140ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013bfa
movzx eax, byte [eax]
jmp 0x10013bff
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x100140ef
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
je 0x100140ef
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x10013c36
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.10014638
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013c48
movzx eax, byte [eax]
jmp 0x10013c4d
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [ebp + 0x2c]
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov dword [edi], edx
mov byte [ecx], al
dec dword [esi + 0x54]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x10013bc6
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10013bca
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x28]
cmp ecx, dword [edx]
mov edi, dword [esi + 0xc]
jne 0x10014039
jmp 0x100140ef
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10013bca
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x100140ef
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x100140ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013ced
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x10013cf2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013e7c
movzx eax, byte [eax]
jmp 0x10013e84
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.1001d19a
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10007830
test al, al
jne 0x10013f2f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013d24
movzx eax, byte [eax]
jmp 0x10013d29
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
mov edi, dword [esi + 0xc]
js 0x10013f99
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x10013f99
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013d5f
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x10013d64
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.1001d19a
jmp 0x10013cfe
movzx ecx, cl
mov ebx, dword [esi]
mov edx, ebx
test ecx, ecx
je 0x10013da3
add ecx, ebx
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 8]
mov dword [esi + 0x10], edx
mov edx, ebx
movzx ebx, byte [edx]
test bl, bl
js 0x10013da1
mov edi, dword [esi + 0x10]
test byte [edi + ebx*2], 8
je 0x10013da1
inc edx
cmp edx, ecx
jne 0x10013d8a
mov edx, ecx
mov ebx, dword [esi]
mov ecx, edx
sub ecx, ebx
mov dword [esi + 0x6c], ecx
mov cl, byte [esi + 0x6b]
test cl, cl
mov edi, dword [esi + 0x64]
mov dword [esi + 0x10], edi
mov byte [esi + 0x1f], cl
movzx edi, cl
mov ecx, edi
mov dword [esi + 0x80], edi
cmovs ecx, dword [esi + 0x10]
mov dword [esi + 0x84], ecx
cmp dword [esi + 0x6c], ecx
ja 0x10013eb2
mov edi, dword [esi + 0x60]
mov ecx, dword [esi + 0x10]
add ecx, edi
cmp byte [esi + 0x1f], 0
mov ebx, dword [esi + 0x80]
lea ebx, [esi + ebx + 0x60]
cmovs ebx, ecx
mov ecx, ebx
lea ebx, [esi + 0x60]
cmovns edi, ebx
add edi, dword [esi + 0x84]
sub edi, dword [esi + 0x6c]
mov dword [esi + 0x10], ecx
cmp edi, ecx
je 0x10013e1a
mov ebx, dword [esi]
mov ch, byte [edi]
cmp ch, byte [ebx]
jne 0x10013eb0
inc edi
inc ebx
cmp edi, dword [esi + 0x10]
jne 0x10013e09
mov ebx, edx
jmp 0x10013eb2
cmp eax, ebx
je 0x10013f60
movzx eax, byte [eax]
jmp 0x10013f68
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi], eax
mov dl, byte [esi + 0x4b]
lea ebx, [esi + 0x40]
test dl, dl
jns 0x10013e45
mov ebx, dword [esi + 0x40]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
cmp byte [ebx], al
jne 0x10013e6b
cmp edi, dword [esi + 0x10]
je 0x10013fa1
inc edi
mov dword [ecx + 0xc], edi
jmp 0x1001401c
cmp edi, dword [esi + 0x10]
je 0x10013fa8
movzx eax, byte [edi]
jmp 0x10013fad
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test bl, bl
jns 0x10013e8e
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x10013f2f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013fec
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10013ff4
mov ebx, dword [esi]
mov cl, byte [esi + 0xb]
test cl, cl
jns 0x10013ebe
mov ecx, dword [esi + 0x24]
jmp 0x10013ec4
movzx ecx, cl
lea eax, [esi + 0x20]
add eax, ecx
cmp ebx, eax
je 0x10013f28
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
call fcn.10007830
mov ebx, dword [esi]
test al, al
jne 0x10013f28
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013efa
movzx eax, byte [eax]
jmp 0x10013f01
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi]
cmp byte [ebx], al
jne 0x10013f28
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013f18
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10013f1f
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi]
inc ebx
mov cl, byte [esi + 0x2b]
mov eax, dword [esi + 0x20]
jmp 0x10013eb5
bt dword [ebp + 0x18], 9
jb 0x10013f3a
mov eax, dword [esi + 4]
mov edi, dword [esi + 0xc]
jmp 0x10014039
movzx eax, byte [esi + 0x2b]
lea ecx, [esi + 0x20]
test al, al
mov edi, dword [esi + 0xc]
jns 0x10013f4e
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
add ecx, eax
mov eax, dword [esi + 4]
cmp ebx, ecx
je 0x10014039
jmp 0x100140ef
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x4b]
lea ecx, [esi + 0x40]
test dl, dl
jns 0x10013f72
mov ecx, dword [esi + 0x40]
cmp byte [ecx], al
mov edi, dword [esi + 0xc]
jne 0x10013f93
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10014014
inc eax
mov dword [ecx + 0xc], eax
jmp 0x1001401c
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
mov eax, dword [esi + 4]
jmp 0x10014039
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10014019
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test dl, dl
jns 0x10013fba
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x100140ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013fd5
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10013fdd
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x3b]
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test dl, dl
js 0x10013ffe
movzx eax, dl
jmp 0x10014006
mov eax, dword [ecx]
call dword [eax + 0x24]
mov bl, byte [esi + 0x3b]
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test bl, bl
jns 0x10014003
mov eax, dword [esi + 0x34]
jmp 0x10014006
movzx eax, bl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
cmp eax, 1
lea eax, [esi + 0x30]
jmp 0x10014034
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x4b]
test dl, dl
jns 0x10014025
mov eax, dword [esi + 0x44]
jmp 0x10014028
movzx eax, dl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
cmp eax, 1
lea eax, [esi + 0x40]
cmova ecx, eax
mov eax, ecx
inc edi
mov ecx, eax
jmp 0x10013906
test ecx, ecx
je 0x100140c3
xor edx, edx
inc edx
mov ecx, dword [esi + 4]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x10014056
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x100140c3
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], edx
call fcn.10007830
mov edx, dword [esi]
test al, al
jne 0x100140ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001408a
movzx eax, byte [eax]
jmp 0x10014091
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xb], 0
jns 0x1001409f
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
cmp byte [ecx + edx], al
jne 0x100140ef
inc edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x100140b8
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10014048
mov eax, dword [ecx]
mov dword [esi], edx
call dword [eax + 0x24]
mov edx, dword [esi]
jmp 0x10014048
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
mov bl, 1
cmp eax, ecx
je 0x100140f7
lea edi, [esi + 0x8c]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x70]
push eax
call fcn.10014727
add esp, 0x10
cmp dword [edi], 0
je 0x100140f7
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x6b], 0
jns 0x10014108
push dword [esi + 0x60]
call fcn.1001e3ab
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x10014119
push dword [esi + 0x30]
call fcn.1001e3ab
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x1001412a
push dword [esi + 0x40]
call fcn.1001e3ab
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x1001413b
push dword [esi + 0x20]
call fcn.1001e3ab
add esp, 4
cmp byte [esi + 0x7b], 0
jns 0x1001414c
push dword [esi + 0x70]
call fcn.1001e3ab
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test eax, eax
je 0x1001416f
mov dword [esi + 0x230], 0
push eax
mov dword [esi], ebx
call dword [esi + 0x50]
mov ebx, dword [esi]
add esp, 4
mov eax, dword [esi + 0x228]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret