Function at 0x100138b0
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], 0x1001c920
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.10021f30
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.10004980
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.1001458c
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 0x100140f1
mov dword [esi + 0xc], edi
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.100078c0
test al, al
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
jne 0x100140f1
movsx eax, byte [esi + edi + 0x58]
cmp eax, 4
ja case.default.0x100139f7
jmp dword [eax*4 + 0x100142cc]
cmp edi, 3
jne 0x10013dae
jmp 0x10013fdf
cmp edi, 3
je case.default.0x100139f7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013d4c
movzx eax, byte [eax]
jmp 0x10013d51
test ecx, ecx
jne 0x10013c16
cmp edi, 2
jb 0x10013c16
sete al
cmp byte [esi + 0x5b], 0
setne cl
and cl, al
or cl, byte [esi + 0x88]
xor eax, eax
cmp cl, 1
jne 0x100140e9
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 0x10013c33
movzx edx, byte [esi + 0x4b]
mov eax, edx
test dl, dl
jns 0x10013a83
mov eax, dword [esi + 0x44]
movzx ebx, byte [esi + 0x3b]
mov edi, ebx
test bl, bl
jns 0x10013a90
mov edi, dword [esi + 0x34]
mov ecx, eax
add ecx, edi
je 0x10013fdf
test eax, eax
je 0x10013d84
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edi, edi
je 0x10013ed1
cmp eax, ebx
je 0x10013ee1
movzx eax, byte [eax]
mov dword [esi], eax
jmp 0x10013eeb
mov dword [esi], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.100078c0
test al, al
jne 0x10013bb3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013af3
movzx ebx, byte [eax]
jmp 0x10013afa
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
test bl, bl
js 0x10013b0d
movzx eax, bl
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
jne 0x10013b63
movzx eax, byte [esi + 0x7b]
test al, al
jns 0x10013b18
mov eax, dword [esi + 0x74]
cmp byte [esi + 0x16], bl
jne 0x10013bb3
cmp dword [esi], 0
je 0x10013bb3
test eax, eax
je 0x10013bb3
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x5c]
jne 0x10013b51
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.1001475d
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 0x10013b93
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
jne 0x10013b88
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
mov dword [esi + 0x10], ebx
call fcn.100146e8
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 0x10013ba9
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10013acd
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10013acd
cmp dword [esi], 0
je 0x10013be6
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x4c], eax
je 0x10013be6
cmp eax, dword [esi + 0x5c]
jne 0x10013bdc
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.1001475d
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 0x10013d27
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.100078c0
test al, al
jne 0x1001419f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013c57
movzx eax, byte [eax]
jmp 0x10013c5c
mov cl, byte [esi + 0x2b]
test cl, cl
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, eax
test edi, edi
je 0x10013f65
mov dword [esi], ebx
mov edx, ecx
shr dl, 7
lea ebx, [esi + 0x58]
cmp byte [edi + ebx - 1], 1
ja 0x10013c50
test dl, dl
mov byte [esi + 0xb], cl
je 0x10013e22
mov ecx, dword [esi + 0x24]
jmp 0x10013e25
mov ebx, dword [esi]
jmp 0x10013f65
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp byte [esi + 0x17], al
jne 0x1001419f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013d42
inc eax
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x54], 0
jle 0x10013d27
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.100078c0
test al, al
jne 0x1001419f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013caa
movzx eax, byte [eax]
jmp 0x10013caf
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x1001419f
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
je 0x1001419f
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x10013ce6
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.100146e8
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013cf8
movzx eax, byte [eax]
jmp 0x10013cfd
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 0x10013c76
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10013c7a
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 0x100140e9
jmp 0x1001419f
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10013c7a
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x1001419f
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x1001419f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013d9d
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x10013da2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013f2c
movzx eax, byte [eax]
jmp 0x10013f34
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.1001d25a
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.100078c0
test al, al
jne 0x10013fdf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013dd4
movzx eax, byte [eax]
jmp 0x10013dd9
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
mov edi, dword [esi + 0xc]
js 0x10014049
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x10014049
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013e0f
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x10013e14
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.1001d25a
jmp 0x10013dae
movzx ecx, cl
mov ebx, dword [esi]
mov edx, ebx
test ecx, ecx
je 0x10013e53
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 0x10013e51
mov edi, dword [esi + 0x10]
test byte [edi + ebx*2], 8
je 0x10013e51
inc edx
cmp edx, ecx
jne 0x10013e3a
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 0x10013f62
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 0x10013eca
mov ebx, dword [esi]
mov ch, byte [edi]
cmp ch, byte [ebx]
jne 0x10013f60
inc edi
inc ebx
cmp edi, dword [esi + 0x10]
jne 0x10013eb9
mov ebx, edx
jmp 0x10013f62
cmp eax, ebx
je 0x10014010
movzx eax, byte [eax]
jmp 0x10014018
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 0x10013ef5
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 0x10013f1b
cmp edi, dword [esi + 0x10]
je 0x10014051
inc edi
mov dword [ecx + 0xc], edi
jmp 0x100140cc
cmp edi, dword [esi + 0x10]
je 0x10014058
movzx eax, byte [edi]
jmp 0x1001405d
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test bl, bl
jns 0x10013f3e
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x10013fdf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001409c
inc eax
mov dword [ecx + 0xc], eax
jmp 0x100140a4
mov ebx, dword [esi]
mov cl, byte [esi + 0xb]
test cl, cl
jns 0x10013f6e
mov ecx, dword [esi + 0x24]
jmp 0x10013f74
movzx ecx, cl
lea eax, [esi + 0x20]
add eax, ecx
cmp ebx, eax
je 0x10013fd8
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
call fcn.100078c0
mov ebx, dword [esi]
test al, al
jne 0x10013fd8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013faa
movzx eax, byte [eax]
jmp 0x10013fb1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi]
cmp byte [ebx], al
jne 0x10013fd8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10013fc8
inc eax
mov dword [ecx + 0xc], eax
jmp 0x10013fcf
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 0x10013f65
bt dword [ebp + 0x18], 9
jb 0x10013fea
mov eax, dword [esi + 4]
mov edi, dword [esi + 0xc]
jmp 0x100140e9
movzx eax, byte [esi + 0x2b]
lea ecx, [esi + 0x20]
test al, al
mov edi, dword [esi + 0xc]
jns 0x10013ffe
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
add ecx, eax
mov eax, dword [esi + 4]
cmp ebx, ecx
je 0x100140e9
jmp 0x1001419f
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x4b]
lea ecx, [esi + 0x40]
test dl, dl
jns 0x10014022
mov ecx, dword [esi + 0x40]
cmp byte [ecx], al
mov edi, dword [esi + 0xc]
jne 0x10014043
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x100140c4
inc eax
mov dword [ecx + 0xc], eax
jmp 0x100140cc
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
mov eax, dword [esi + 4]
jmp 0x100140e9
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x100140c9
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test dl, dl
jns 0x1001406a
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x1001419f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10014085
inc eax
mov dword [ecx + 0xc], eax
jmp 0x1001408d
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 0x100140ae
movzx eax, dl
jmp 0x100140b6
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 0x100140b3
mov eax, dword [esi + 0x34]
jmp 0x100140b6
movzx eax, bl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
cmp eax, 1
lea eax, [esi + 0x30]
jmp 0x100140e4
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x4b]
test dl, dl
jns 0x100140d5
mov eax, dword [esi + 0x44]
jmp 0x100140d8
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 0x100139b6
test ecx, ecx
je 0x10014173
xor edx, edx
inc edx
mov ecx, dword [esi + 4]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x10014106
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x10014173
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], edx
call fcn.100078c0
mov edx, dword [esi]
test al, al
jne 0x1001419f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001413a
movzx eax, byte [eax]
jmp 0x10014141
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xb], 0
jns 0x1001414f
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
cmp byte [ecx + edx], al
jne 0x1001419f
inc edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10014168
inc eax
mov dword [ecx + 0xc], eax
jmp 0x100140f8
mov eax, dword [ecx]
mov dword [esi], edx
call dword [eax + 0x24]
mov edx, dword [esi]
jmp 0x100140f8
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
mov bl, 1
cmp eax, ecx
je 0x100141a7
lea edi, [esi + 0x8c]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x70]
push eax
call fcn.100147d7
add esp, 0x10
cmp dword [edi], 0
je 0x100141a7
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x6b], 0
jns 0x100141b8
push dword [esi + 0x60]
call fcn.1001e46b
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x100141c9
push dword [esi + 0x30]
call fcn.1001e46b
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x100141da
push dword [esi + 0x40]
call fcn.1001e46b
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x100141eb
push dword [esi + 0x20]
call fcn.1001e46b
add esp, 4
cmp byte [esi + 0x7b], 0
jns 0x100141fc
push dword [esi + 0x70]
call fcn.1001e46b
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test eax, eax
je 0x1001421f
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