Function at 0x414030
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], 0x41d2c0
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.004773d0
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.00401800
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.00414ef0
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 0x414872
mov dword [esi + 0xc], edi
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401b10
test al, al
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
jne 0x414872
movsx eax, byte [esi + edi + 0x58]
cmp eax, 4
ja case.default.0x414177
jmp dword [eax*4 + 0x414a4c]
cmp edi, 3
jne 0x414526
jmp 0x414760
cmp edi, 3
je case.default.0x414177
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4144c4
movzx eax, byte [eax]
jmp 0x4144c9
test ecx, ecx
jne 0x414396
cmp edi, 2
jb 0x414396
sete al
cmp byte [esi + 0x5b], 0
setne cl
and cl, al
or cl, byte [esi + 0x88]
xor eax, eax
cmp cl, 1
jne 0x41486a
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 0x4143b3
movzx edx, byte [esi + 0x4b]
mov eax, edx
test dl, dl
jns 0x414203
mov eax, dword [esi + 0x44]
movzx ebx, byte [esi + 0x3b]
mov edi, ebx
test bl, bl
jns 0x414210
mov edi, dword [esi + 0x34]
mov ecx, eax
add ecx, edi
je 0x414760
test eax, eax
je 0x4144fc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edi, edi
je 0x4145d2
cmp eax, ebx
je 0x414662
movzx eax, byte [eax]
mov dword [esi], eax
jmp 0x41466c
mov dword [esi], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401b10
test al, al
jne 0x414333
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x414273
movzx ebx, byte [eax]
jmp 0x41427a
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
test bl, bl
js 0x41428d
movzx eax, bl
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
jne 0x4142e3
movzx eax, byte [esi + 0x7b]
test al, al
jns 0x414298
mov eax, dword [esi + 0x74]
test eax, eax
je 0x414333
cmp dword [esi], 0
je 0x414333
cmp byte [esi + 0x16], bl
jne 0x414333
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x5c]
jne 0x4142d1
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.00415076
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 0x414313
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
jne 0x414308
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
mov dword [esi + 0x10], ebx
call fcn.00415001
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 0x414329
inc eax
mov dword [ecx + 0xc], eax
jmp 0x41424d
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x41424d
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x4c], eax
je 0x414366
cmp dword [esi], 0
je 0x414366
cmp eax, dword [esi + 0x5c]
jne 0x41435c
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.00415076
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 0x4144a9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401b10
test al, al
jne 0x414920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4143d4
movzx eax, byte [eax]
jmp 0x4143d9
mov cl, byte [esi + 0x2b]
test cl, cl
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, eax
test edi, edi
je 0x4146e6
mov dword [esi], ebx
mov edx, ecx
shr dl, 7
lea ebx, [esi + 0x58]
cmp byte [edi + ebx - 1], 1
ja 0x4143cd
test dl, dl
je 0x41459a
mov edi, dword [esi + 0x24]
jmp 0x41459d
mov ebx, dword [esi]
jmp 0x4146e6
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp byte [esi + 0x17], al
jne 0x414920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4143f7
add ecx, 0xc
inc eax
mov dword [ecx], eax
jmp 0x4143fc
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp dword [esi + 0x54], 0
jle 0x4144a9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401b10
test al, al
jne 0x414920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x41442c
movzx eax, byte [eax]
jmp 0x414431
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x414920
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 4
je 0x414920
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x414468
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.00415001
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x41447a
movzx eax, byte [eax]
jmp 0x41447f
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 0x4143ef
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4143fc
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 0x41486a
jmp 0x414920
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
js 0x414920
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x414920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x414515
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x41451a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4146ad
movzx eax, byte [eax]
jmp 0x4146b5
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.0041dde6
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401b10
test al, al
jne 0x414760
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x41454c
movzx eax, byte [eax]
jmp 0x414551
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
mov edi, dword [esi + 0xc]
js 0x4147ca
movzx eax, al
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
test byte [ecx + eax*2], 8
je 0x4147ca
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x414587
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
jmp 0x41458c
mov eax, dword [ecx]
call dword [eax + 0x24]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.0041dde6
jmp 0x414526
movzx edi, cl
mov ebx, dword [esi]
mov byte [esi + 0xb], cl
test edi, edi
je 0x4145e2
add edi, 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 0x4145ce
mov ecx, edi
mov edi, dword [esi + 0x10]
test byte [edi + ebx*2], 8
je 0x4145ce
inc edx
mov edi, ecx
cmp edx, ecx
jne 0x4145b3
mov edx, edi
mov ebx, dword [esi]
jmp 0x4145e4
cmp eax, ebx
je 0x414791
movzx eax, byte [eax]
jmp 0x414799
mov edx, ebx
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 0x4146e3
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 0x41465b
mov ebx, dword [esi]
mov ch, byte [edi]
cmp ch, byte [ebx]
jne 0x4146e1
inc edi
inc ebx
cmp edi, dword [esi + 0x10]
jne 0x41464a
mov ebx, edx
jmp 0x4146e3
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 0x414676
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 0x41469c
cmp edi, dword [esi + 0x10]
je 0x4147d2
inc edi
mov dword [ecx + 0xc], edi
jmp 0x41484d
cmp edi, dword [esi + 0x10]
je 0x4147d9
movzx eax, byte [edi]
jmp 0x4147de
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test bl, bl
jns 0x4146bf
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x414760
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x41481d
inc eax
mov dword [ecx + 0xc], eax
jmp 0x414825
mov ebx, dword [esi]
mov cl, byte [esi + 0xb]
test cl, cl
jns 0x4146ef
mov ecx, dword [esi + 0x24]
jmp 0x4146f5
movzx ecx, cl
lea eax, [esi + 0x20]
add eax, ecx
cmp ebx, eax
je 0x414759
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
call fcn.00401b10
mov ebx, dword [esi]
test al, al
jne 0x414759
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x41472b
movzx eax, byte [eax]
jmp 0x414732
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi]
cmp byte [ebx], al
jne 0x414759
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x414749
inc eax
mov dword [ecx + 0xc], eax
jmp 0x414750
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 0x4146e6
bt dword [ebp + 0x18], 9
jb 0x41476b
mov eax, dword [esi + 4]
mov edi, dword [esi + 0xc]
jmp 0x41486a
movzx eax, byte [esi + 0x2b]
lea ecx, [esi + 0x20]
test al, al
mov edi, dword [esi + 0xc]
jns 0x41477f
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
add ecx, eax
mov eax, dword [esi + 4]
cmp ebx, ecx
je 0x41486a
jmp 0x414920
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x4b]
lea ecx, [esi + 0x40]
test dl, dl
jns 0x4147a3
mov ecx, dword [esi + 0x40]
cmp byte [ecx], al
mov edi, dword [esi + 0xc]
jne 0x4147c4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x414845
inc eax
mov dword [ecx + 0xc], eax
jmp 0x41484d
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
mov eax, dword [esi + 4]
jmp 0x41486a
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x41484a
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test dl, dl
jns 0x4147eb
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x414920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x414806
inc eax
mov dword [ecx + 0xc], eax
jmp 0x41480e
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 0x41482f
movzx eax, dl
jmp 0x414837
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 0x414834
mov eax, dword [esi + 0x34]
jmp 0x414837
movzx eax, bl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
cmp eax, 2
lea eax, [esi + 0x30]
jmp 0x414865
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x4b]
test dl, dl
jns 0x414856
mov eax, dword [esi + 0x44]
jmp 0x414859
movzx eax, dl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
cmp eax, 2
lea eax, [esi + 0x40]
cmovae ecx, eax
mov eax, ecx
inc edi
mov ecx, eax
jmp 0x414136
test ecx, ecx
je 0x4148f4
xor edx, edx
inc edx
mov ecx, dword [esi + 4]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x414887
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x4148f4
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], edx
call fcn.00401b10
mov edx, dword [esi]
test al, al
jne 0x414920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4148bb
movzx eax, byte [eax]
jmp 0x4148c2
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xb], 0
jns 0x4148d0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
cmp byte [ecx + edx], al
jne 0x414920
inc edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4148e9
inc eax
mov dword [ecx + 0xc], eax
jmp 0x414879
mov eax, dword [ecx]
mov dword [esi], edx
call dword [eax + 0x24]
mov edx, dword [esi]
jmp 0x414879
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
mov bl, 1
cmp eax, ecx
je 0x414928
lea edi, [esi + 0x8c]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x70]
push eax
call fcn.004150f0
add esp, 0x10
cmp dword [edi], 0
je 0x414928
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x6b], 0
jns 0x414939
push dword [esi + 0x60]
call fcn.00473386
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x41494a
push dword [esi + 0x30]
call fcn.00473386
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x41495b
push dword [esi + 0x40]
call fcn.00473386
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x41496c
push dword [esi + 0x20]
call fcn.00473386
add esp, 4
cmp byte [esi + 0x7b], 0
jns 0x41497d
push dword [esi + 0x70]
call fcn.00473386
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test eax, eax
je 0x4149a0
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