Function at 0x438030
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], 0x4098e0
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.0040f7f0
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.0042ecf0
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 + 4], 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 + 4]
call fcn.00438d80
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 + 8], ecx
ja 0x438757
mov dword [esi + 0x10], edi
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040a680
test al, al
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x10]
jne 0x438757
movsx eax, byte [esi + edi + 0x58]
cmp eax, 4
ja case.default.0x438179
jmp dword [eax*4 + 0x44c324]
cmp edi, 3
je 0x438289
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040a680
test al, al
jne 0x438289
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4381ef
movzx eax, byte [eax]
test al, al
mov edi, dword [esi + 0x10]
js 0x4384ab
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
movsx eax, al
test byte [ecx + eax*2], 8
je 0x4384ab
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4381f6
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.0040af70
jmp 0x438189
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4381ad
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4381e1
mov ah, byte [ebx]
cmp ah, byte [edi]
jne 0x43868b
inc ebx
inc edi
cmp ebx, dword [esi + 0x1c]
jne 0x4381fd
jmp 0x4389b7
cmp edi, 3
jne 0x4384ce
mov eax, ecx
jmp 0x43828f
test ecx, ecx
jne 0x438528
cmp edi, 2
jb 0x438528
sete al
cmp byte [esi + 0x5b], 0
setne cl
and cl, al
or cl, byte [esi + 0x88]
xor eax, eax
cmp cl, 1
jne 0x43828f
mov al, byte [esi + 0x2b]
mov edx, eax
shr dl, 7
test al, al
mov ecx, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, ecx
mov dword [esi + 4], ebx
jmp 0x438546
movzx edx, byte [esi + 0x4b]
mov eax, edx
test dl, dl
jns 0x438272
mov eax, dword [esi + 0x44]
movzx ebx, byte [esi + 0x3b]
mov ecx, ebx
test bl, bl
jns 0x43827f
mov ecx, dword [esi + 0x34]
mov edi, eax
add edi, ecx
jne 0x438560
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x10]
inc edi
mov ecx, eax
jmp 0x438138
mov dword [esi + 4], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040a680
test al, al
jne 0x43838c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x43832b
movzx ebx, byte [eax]
test bl, bl
js 0x4382d5
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 8]
movsx ecx, bl
test byte [eax + ecx*2], 4
jne 0x43833e
movzx eax, byte [esi + 0x7b]
test al, al
jns 0x4382e0
mov eax, dword [esi + 0x74]
cmp dword [esi + 4], 0
je 0x43838c
test eax, eax
je 0x43838c
cmp byte [esi + 0x16], bl
jne 0x43838c
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x5c]
je 0x438356
lea ecx, [eax + 4]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov dword [esi + 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x438334
inc eax
mov dword [ecx + 0xc], eax
jmp 0x43829e
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
jmp 0x4382c2
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x43829e
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
je 0x43836f
mov edx, ecx
lea ecx, [eax + 1]
mov dword [edx], ecx
mov byte [eax], bl
inc dword [esi + 4]
jmp 0x438315
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.00438f90
add esp, 0xc
mov eax, dword [esi + 0x18]
jmp 0x438303
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
mov dword [esi + 0x1c], ebx
call fcn.00438ea0
mov ebx, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
jmp 0x438348
cmp dword [esi + 4], 0
je 0x4383ae
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x4c], eax
je 0x4383ae
cmp eax, dword [esi + 0x5c]
je 0x438642
lea ecx, [eax + 4]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 4]
mov dword [eax], ecx
cmp dword [esi + 0x54], 0
jle 0x4384b3
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040a680
test al, al
jne 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4385ca
movzx eax, byte [eax]
cmp byte [esi + 0x17], al
jne 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4385d4
inc eax
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x54], 0
jle 0x4384b3
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040a680
test al, al
jne 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x43849d
movzx eax, byte [eax]
test al, al
js 0x43880e
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
movsx eax, al
test byte [ecx + eax*2], 4
je 0x43880e
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x438463
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.00438ea0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4384a4
movzx eax, byte [eax]
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 0x4383fa
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4383fe
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x43842c
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x438473
mov eax, dword [esi + 8]
jmp 0x43828f
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x28]
cmp ecx, dword [edx]
mov edi, dword [esi + 0x10]
jne 0x43828f
jmp 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x43860a
movzx eax, byte [eax]
test al, al
js 0x43880e
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 8]
movsx eax, al
test byte [ecx + eax*2], 8
je 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x43865e
lea edx, [eax + 1]
mov dword [ecx + 0xc], edx
movzx eax, byte [eax]
movsx eax, al
lea ecx, [esi + 0x60]
push eax
call fcn.0040af70
jmp 0x438189
mov al, byte [esi + 0x2b]
test al, al
mov ecx, dword [esi + 0x20]
lea ebx, [esi + 0x20]
cmovs ebx, ecx
test edi, edi
je 0x438691
mov dword [esi + 4], ebx
mov edx, eax
shr dl, 7
lea ebx, [esi + 0x58]
cmp byte [edi + ebx - 1], 1
ja 0x4385c2
test dl, dl
mov byte [esi + 0xf], al
jne 0x4388a6
jmp 0x4388ae
test eax, eax
je 0x438614
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x438900
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4388f8
jmp 0x4389fd
mov ebx, dword [esi + 4]
mov edx, ebx
test eax, eax
je 0x43866b
add eax, ebx
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 8]
mov dword [esi + 0x1c], edx
mov edx, ebx
movzx ebx, byte [edx]
test bl, bl
js 0x438668
mov edi, dword [esi + 0x1c]
test byte [edi + ebx*2], 8
je 0x438668
inc edx
cmp edx, eax
jne 0x4385a0
jmp 0x438a22
mov ebx, dword [esi + 4]
jmp 0x438691
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4383e0
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4383fe
lea ecx, [esi + 0x40]
test dl, dl
js 0x438945
cmp byte [ecx], al
jne 0x438967
jmp 0x43894d
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x10]
cmp eax, 1
lea eax, [esi + 0x30]
cmova ecx, eax
jmp case.default.0x438179
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4384e2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x43893d
jmp 0x438a0a
lea ecx, [esi + 0x30]
test bl, bl
js 0x4389be
cmp byte [ecx], al
je 0x4389c6
jmp 0x438289
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.00438f90
add esp, 0xc
mov eax, dword [esi + 0x18]
jmp 0x4383a3
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x438517
mov ebx, dword [esi + 4]
mov edi, edx
sub edi, ebx
movzx eax, byte [esi + 0x6b]
mov ebx, eax
test al, al
js 0x4388b6
mov dword [esi + 0x84], ebx
cmp edi, ebx
jbe 0x4388be
mov ebx, dword [esi + 4]
mov al, byte [esi + 0xf]
test al, al
movzx eax, al
cmovs eax, dword [esi + 0x24]
lea edx, [esi + 0x20]
cmovns ecx, edx
add eax, ecx
cmp ebx, eax
je 0x438708
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi + 4], ebx
call fcn.0040a680
mov ebx, dword [esi + 4]
test al, al
jne 0x438708
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4386f4
movzx eax, byte [eax]
cmp byte [ebx], al
jne 0x438708
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4386fe
inc eax
mov dword [ecx + 0xc], eax
inc ebx
mov al, byte [esi + 0x2b]
mov ecx, dword [esi + 0x20]
jmp 0x438691
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi + 4]
jmp 0x4386d6
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi + 4]
jmp 0x4386eb
bt dword [ebp + 0x18], 9
jae 0x438289
movzx eax, byte [esi + 0x2b]
lea ecx, [esi + 0x20]
test al, al
mov edi, dword [esi + 0x10]
jns 0x438727
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
add ecx, eax
mov eax, dword [esi + 8]
cmp ebx, ecx
je 0x43828f
jmp 0x43880e
test dl, dl
js 0x4389ed
jmp 0x4389f5
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x10]
cmp eax, 1
lea eax, [esi + 0x40]
jmp 0x438602
test ecx, ecx
je 0x4387e2
xor edx, edx
inc edx
mov ecx, dword [esi + 8]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x438770
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x4387e2
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi + 4], edx
call fcn.0040a680
mov edx, dword [esi + 4]
test al, al
jne 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4387cb
movzx eax, byte [eax]
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xb], 0
jns 0x4387b2
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
cmp byte [ecx + edx], al
jne 0x43880e
inc edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4387d5
inc eax
mov dword [ecx + 0xc], eax
jmp 0x438762
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [esi + 4]
jmp 0x4387a4
mov eax, dword [ecx]
mov dword [esi + 4], edx
call dword [eax + 0x24]
mov edx, dword [esi + 4]
jmp 0x438762
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
mov bl, 1
cmp eax, ecx
je 0x438816
lea edi, [esi + 0x8c]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x70]
push eax
call fcn.00439080
add esp, 0x10
cmp dword [edi], 0
je 0x438816
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x6b], 0
jns 0x438827
push dword [esi + 0x60]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x438838
push dword [esi + 0x30]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x438849
push dword [esi + 0x40]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x43885a
push dword [esi + 0x20]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x7b], 0
jns 0x43886b
push dword [esi + 0x70]
call fcn.0040bae0
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test eax, eax
je 0x438890
mov dword [esi + 0x230], 0
push eax
mov dword [esi + 4], ebx
call dword [esi + 0x50]
mov ebx, dword [esi + 4]
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
mov eax, dword [esi + 0x24]
jmp 0x438586
movzx eax, al
jmp 0x438586
mov ebx, dword [esi + 0x64]
jmp 0x43867d
mov dword [esi + 0x80], edi
lea edi, [esi + 0x60]
mov dword [esi + 0x1c], edi
test al, al
jns 0x4388d4
mov edi, dword [esi + 0x60]
mov dword [esi + 0x1c], edi
mov edi, dword [esi + 0x80]
test edi, edi
je 0x4389b7
mov ebx, dword [esi + 0x1c]
add ebx, dword [esi + 0x84]
mov dword [esi + 0x1c], ebx
sub ebx, edi
mov edi, dword [esi + 4]
jmp 0x4381fd
movzx eax, byte [eax]
jmp 0x4385de
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x438a31
movzx eax, byte [eax]
lea ecx, [esi + 0x40]
test dl, dl
jns 0x43891b
mov ecx, dword [esi + 0x40]
cmp byte [ecx], al
mov edi, dword [esi + 0x10]
jne 0x438a17
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x43895e
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x438a43
movzx eax, byte [eax]
jmp 0x43862a
mov ecx, dword [esi + 0x40]
jmp 0x4385e9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x438a3e
inc eax
mov dword [ecx + 0xc], eax
jmp 0x438739
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x438a4b
movzx eax, byte [eax]
mov dl, byte [esi + 0x3b]
lea ecx, [esi + 0x30]
test dl, dl
jns 0x438988
mov ecx, dword [esi + 0x30]
cmp byte [ecx], al
jne 0x43880e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x438a55
inc eax
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test dl, dl
js 0x4389e5
movzx eax, dl
jmp 0x4385f6
mov ebx, edx
jmp 0x43868e
mov ecx, dword [esi + 0x30]
jmp 0x438635
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x438a62
inc eax
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test bl, bl
jns 0x438a29
mov eax, dword [esi + 0x34]
jmp 0x4385f6
mov eax, dword [esi + 0x44]
jmp 0x438746
movzx eax, dl
jmp 0x438746
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x4b]
jmp 0x4385de
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x3b]
jmp 0x43862a
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
jmp 0x4384ab
mov edx, eax
jmp 0x438668
movzx eax, bl
jmp 0x4385f6
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x4b]
jmp 0x438911
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x4b]
jmp 0x438739
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x43897b
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x3b]
jmp 0x4389a5
mov eax, dword [ecx]
call dword [eax + 0x24]
mov bl, byte [esi + 0x3b]
jmp 0x4389db