Function at 0x4763b0
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], 0x47f2a0
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.005af210
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.00413ad0
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.0047708c
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 0x476bf1
mov dword [esi + 0xc], edi
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0042c3b0
test al, al
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
jne 0x476bf1
movsx eax, byte [esi + edi + 0x58]
cmp eax, 4
ja case.default.0x4764f7
jmp dword [eax*4 + 0x476dcc]
cmp edi, 3
jne 0x4768ae
jmp 0x476adf
cmp edi, 3
je case.default.0x4764f7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x47684c
movzx eax, byte [eax]
jmp 0x476851
test ecx, ecx
jne 0x476716
cmp edi, 2
jb 0x476716
sete al
cmp byte [esi + 0x5b], 0
setne cl
and cl, al
or cl, byte [esi + 0x88]
xor eax, eax
cmp cl, 1
jne 0x476be9
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 0x476733
movzx edx, byte [esi + 0x4b]
mov eax, edx
test dl, dl
jns 0x476583
mov eax, dword [esi + 0x44]
movzx ebx, byte [esi + 0x3b]
mov edi, ebx
test bl, bl
jns 0x476590
mov edi, dword [esi + 0x34]
mov ecx, eax
add ecx, edi
je 0x476adf
test eax, eax
je 0x476884
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edi, edi
je 0x4769d1
cmp eax, ebx
je 0x4769e1
movzx eax, byte [eax]
mov dword [esi], eax
jmp 0x4769eb
mov dword [esi], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0042c3b0
test al, al
jne 0x4766b3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4765f3
movzx ebx, byte [eax]
jmp 0x4765fa
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
test bl, bl
js 0x47660d
movzx eax, bl
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
jne 0x476663
movzx eax, byte [esi + 0x7b]
test al, al
jns 0x476618
mov eax, dword [esi + 0x74]
cmp byte [esi + 0x16], bl
jne 0x4766b3
cmp dword [esi], 0
je 0x4766b3
test eax, eax
je 0x4766b3
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x5c]
jne 0x476651
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.0047725d
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 0x476693
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
jne 0x476688
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
mov dword [esi + 0x10], ebx
call fcn.004771e8
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 0x4766a9
inc eax
mov dword [ecx + 0xc], eax
jmp 0x4765cd
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4765cd
cmp dword [esi], 0
je 0x4766e6
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x4c], eax
je 0x4766e6
cmp eax, dword [esi + 0x5c]
jne 0x4766dc
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.0047725d
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 0x476827
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0042c3b0
test al, al
jne 0x476c9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476757
movzx eax, byte [eax]
jmp 0x47675c
mov cl, byte [esi + 0x2b]
test cl, cl
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, eax
test edi, edi
je 0x476a65
mov dword [esi], ebx
mov edx, ecx
shr dl, 7
lea ebx, [esi + 0x58]
cmp byte [edi + ebx - 1], 1
ja 0x476750
test dl, dl
mov byte [esi + 0xb], cl
je 0x476922
mov ecx, dword [esi + 0x24]
jmp 0x476925
mov ebx, dword [esi]
jmp 0x476a65
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp byte [esi + 0x17], al
jne 0x476c9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476842
inc eax
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x54], 0
jle 0x476827
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0042c3b0
test al, al
jne 0x476c9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4767aa
movzx eax, byte [eax]
jmp 0x4767af
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x476c9f
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
je 0x476c9f
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x4767e6
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.004771e8
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4767f8
movzx eax, byte [eax]
jmp 0x4767fd
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 0x476776
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x47677a
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 0x476be9
jmp 0x476c9f
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x47677a
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x476c9f
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x476c9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x47689d
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x4768a2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476a2c
movzx eax, byte [eax]
jmp 0x476a34
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.0047fcf6
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0042c3b0
test al, al
jne 0x476adf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4768d4
movzx eax, byte [eax]
jmp 0x4768d9
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
mov edi, dword [esi + 0xc]
js 0x476b49
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x476b49
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x47690f
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x476914
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.0047fcf6
jmp 0x4768ae
movzx ecx, cl
mov ebx, dword [esi]
mov edx, ebx
test ecx, ecx
je 0x476953
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 0x476951
mov edi, dword [esi + 0x10]
test byte [edi + ebx*2], 8
je 0x476951
inc edx
cmp edx, ecx
jne 0x47693a
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 0x476a62
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 0x4769ca
mov ebx, dword [esi]
mov ch, byte [edi]
cmp ch, byte [ebx]
jne 0x476a60
inc edi
inc ebx
cmp edi, dword [esi + 0x10]
jne 0x4769b9
mov ebx, edx
jmp 0x476a62
cmp eax, ebx
je 0x476b10
movzx eax, byte [eax]
jmp 0x476b18
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 0x4769f5
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 0x476a1b
cmp edi, dword [esi + 0x10]
je 0x476b51
inc edi
mov dword [ecx + 0xc], edi
jmp 0x476bcc
cmp edi, dword [esi + 0x10]
je 0x476b58
movzx eax, byte [edi]
jmp 0x476b5d
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test bl, bl
jns 0x476a3e
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x476adf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476b9c
inc eax
mov dword [ecx + 0xc], eax
jmp 0x476ba4
mov ebx, dword [esi]
mov cl, byte [esi + 0xb]
test cl, cl
jns 0x476a6e
mov ecx, dword [esi + 0x24]
jmp 0x476a74
movzx ecx, cl
lea eax, [esi + 0x20]
add eax, ecx
cmp ebx, eax
je 0x476ad8
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
call fcn.0042c3b0
mov ebx, dword [esi]
test al, al
jne 0x476ad8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476aaa
movzx eax, byte [eax]
jmp 0x476ab1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi]
cmp byte [ebx], al
jne 0x476ad8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476ac8
inc eax
mov dword [ecx + 0xc], eax
jmp 0x476acf
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 0x476a65
bt dword [ebp + 0x18], 9
jb 0x476aea
mov eax, dword [esi + 4]
mov edi, dword [esi + 0xc]
jmp 0x476be9
movzx eax, byte [esi + 0x2b]
lea ecx, [esi + 0x20]
test al, al
mov edi, dword [esi + 0xc]
jns 0x476afe
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
add ecx, eax
mov eax, dword [esi + 4]
cmp ebx, ecx
je 0x476be9
jmp 0x476c9f
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x4b]
lea ecx, [esi + 0x40]
test dl, dl
jns 0x476b22
mov ecx, dword [esi + 0x40]
cmp byte [ecx], al
mov edi, dword [esi + 0xc]
jne 0x476b43
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476bc4
inc eax
mov dword [ecx + 0xc], eax
jmp 0x476bcc
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
mov eax, dword [esi + 4]
jmp 0x476be9
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x476bc9
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test dl, dl
jns 0x476b6a
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x476c9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476b85
inc eax
mov dword [ecx + 0xc], eax
jmp 0x476b8d
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 0x476bae
movzx eax, dl
jmp 0x476bb6
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 0x476bb3
mov eax, dword [esi + 0x34]
jmp 0x476bb6
movzx eax, bl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
cmp eax, 1
lea eax, [esi + 0x30]
jmp 0x476be4
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x4b]
test dl, dl
jns 0x476bd5
mov eax, dword [esi + 0x44]
jmp 0x476bd8
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 0x4764b6
test ecx, ecx
je 0x476c73
xor edx, edx
inc edx
mov ecx, dword [esi + 4]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x476c06
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x476c73
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], edx
call fcn.0042c3b0
mov edx, dword [esi]
test al, al
jne 0x476c9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476c3a
movzx eax, byte [eax]
jmp 0x476c41
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xb], 0
jns 0x476c4f
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
cmp byte [ecx + edx], al
jne 0x476c9f
inc edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x476c68
inc eax
mov dword [ecx + 0xc], eax
jmp 0x476bf8
mov eax, dword [ecx]
mov dword [esi], edx
call dword [eax + 0x24]
mov edx, dword [esi]
jmp 0x476bf8
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
mov bl, 1
cmp eax, ecx
je 0x476ca7
lea edi, [esi + 0x8c]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x70]
push eax
call fcn.004772d7
add esp, 0x10
cmp dword [edi], 0
je 0x476ca7
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x6b], 0
jns 0x476cb8
push dword [esi + 0x60]
call fcn.005aade6
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x476cc9
push dword [esi + 0x30]
call fcn.005aade6
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x476cda
push dword [esi + 0x40]
call fcn.005aade6
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x476ceb
push dword [esi + 0x20]
call fcn.005aade6
add esp, 4
cmp byte [esi + 0x7b], 0
jns 0x476cfc
push dword [esi + 0x70]
call fcn.005aade6
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test eax, eax
je 0x476d1f
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