Function at 0x100662ff
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x53c
mov eax, 0x10113fff
call fcn.100d350e
mov ebx, ecx
mov dword [ebp - 0x538], ebx
call fcn.100656ac
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x230]
push 0x200
call fcn.100b1680
test eax, eax
jne 0x10066dc3
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0x20]
call fcn.10066f33
test al, al
jne 0x10066351
xor eax, eax
inc eax
jmp 0x10066dc3
mov eax, dword [ebx + 0x18]
lea edx, [ebp - 0x514]
push edx
push 2
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10066dc3
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
call fcn.100d3370
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
cmp dword [ebp - 0x510], edx
ja 0x10066395
jb 0x10066349
cmp dword [ebp - 0x514], eax
jb 0x10066349
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
add eax, 1
mov ecx, dword [ebx + 0x20]
adc edx, 0
call fcn.100d3370
mov ecx, edx
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x52c], ecx
cmp dword [ebp - 0x510], ecx
jb 0x10066433
ja 0x100663c9
cmp dword [ebp - 0x514], eax
jb 0x10066433
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x20]
mov edi, dword [esi]
push 0
push 0
call fcn.100d3370
push edx
push eax
push esi
call dword [edi + 0x10]
test eax, eax
jne 0x10066dc3
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x430]
mov esi, 0x200
push esi
call fcn.100b1680
test eax, eax
jne 0x10066433
push esi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100d550c
add esp, 0xc
test eax, eax
jne 0x10066433
mov eax, dword [ebp - 0x508]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x52c]
mov dword [ebx + 0x64], eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x40]
call fcn.10067f42
lea ecx, [ebp - 0x498]
call fcn.10065060
and dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x534], edi
lea esi, [ebx + 0x6c]
mov byte [ebp - 4], 1
push 0x1000
mov ecx, esi
call fcn.1002801f
mov edx, dword [esi]
mov ecx, dword [ebx + 0x18]
push 0x1000
call fcn.100b1680
test eax, eax
jne 0x10066da6
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
call fcn.10065ccb
cmp eax, dword [ebx + 0x20]
jl 0x10066da3
mov dword [ebx + 0x58], eax
cmp eax, 0xf
ja 0x10066da3
sub eax, dword [ebx + 0x20]
xor edx, edx
push edi
mov ecx, eax
inc edx
shl edx, cl
lea ecx, [ebp - 0x498]
push edi
push edx
push dword [ebx + 0x20]
mov dword [ebp - 0x508], edx
push dword [esi]
call fcn.100670b3
test al, al
je 0x10066da3
cmp dword [ebp - 0x498], 0x454c4946
jne 0x10066da3
lea ecx, [ebp - 0x498]
call fcn.10067382
cmp dword [ebp - 0x464], edi
je 0x10066da3
lea eax, [ebp - 0x534]
push eax
push dword [ebx + 0x3c]
lea ecx, [ebp - 0x498]
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push edi
push dword [ebx + 0x18]
call fcn.10065deb
mov edi, dword [ebp - 0x534]
test eax, eax
jne 0x10066da6
test edi, edi
je 0x10066da3
mov eax, dword [ebp - 0x480]
mov edx, dword [ebx + 0x3c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x540], ecx
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x53c], eax
mov eax, dword [ebx + 0x38]
call fcn.100d3370
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x50c], ecx
mov ecx, dword [ebp - 0x524]
shrd dword [ebp - 0x50c], ecx, 4
shr ecx, 4
cmp ecx, edx
jb 0x1006658e
ja 0x10066da3
cmp dword [ebp - 0x50c], eax
ja 0x10066da3
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
mov edx, eax
shl edx, cl
mov dword [ebp - 0x50c], edx
cmp edx, 0x8000
ja 0x10066da6
mov eax, dword [ebp - 0x510]
mov edx, dword [ebp - 0x524]
call fcn.100d2f30
mov dword [ebp - 0x530], eax
mov dword [ebp - 0x52c], edx
test edx, edx
jne 0x10066da3
cmp eax, 0x40000000
ja 0x10066da3
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x100665fd
mov eax, dword [ecx]
lea edx, [ebp - 0x540]
push edx
lea edx, [ebp - 0x530]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x10066da6
push 0x8000
mov ecx, esi
call fcn.1002801f
mov esi, dword [ebp - 0x530]
lea eax, [ebx + 0xc]
mov ecx, eax
mov dword [ebp - 0x51c], eax
call fcn.10065655
push esi
lea ecx, [ebx + 0xc]
call fcn.10038906
xorps xmm0, xmm0
movlpd qword [ebp - 0x528], xmm0
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x10066670
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x544], 0
mov dword [ebp - 0x548], eax
and eax, 0x3ff
or eax, 0
jne 0x10066670
mov eax, dword [ecx]
lea edx, [ebp - 0x528]
push edx
lea edx, [ebp - 0x548]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x10066da6
mov ecx, dword [ebp - 0x540]
mov edx, 0x8000
sub ecx, dword [ebp - 0x528]
mov esi, edx
mov eax, dword [ebp - 0x53c]
sbb eax, dword [ebp - 0x524]
test eax, eax
ja 0x1006669b
jb 0x10066699
cmp ecx, edx
jae 0x1006669b
mov esi, ecx
cmp esi, dword [ebp - 0x50c]
jb 0x10066765
mov edx, dword [ebx + 0x6c]
mov ecx, edi
push esi
call fcn.100b1680
test eax, eax
jne 0x10066da6
add dword [ebp - 0x528], esi
adc dword [ebp - 0x524], eax
xor ecx, ecx
mov dword [ebp - 0x510], ecx
mov eax, dword [ebx + 0x6c]
add eax, ecx
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x52c], eax
call fcn.10065060
xor eax, eax
mov byte [ebp - 4], 0x10
cmp dword [ebx + 0x10], 3
jne 0x100666f3
lea eax, [ebx + 0x74]
push eax
push dword [ebx + 0x10]
lea ecx, [ebp - 0x500]
push dword [ebp - 0x508]
push dword [ebx + 0x20]
push dword [ebp - 0x52c]
call fcn.100670b3
test al, al
je 0x10066752
lea eax, [ebp - 0x500]
push eax
lea ecx, [ebx + 0xc]
call fcn.100654a1
lea ecx, [ebp - 0x500]
mov byte [ebp - 4], 1
call fcn.10065295
mov eax, dword [ebp - 0x50c]
sub esi, eax
mov ecx, dword [ebp - 0x510]
add ecx, eax
mov dword [ebp - 0x510], ecx
cmp esi, eax
jae 0x100666ce
jmp 0x10066633
lea ecx, [ebp - 0x500]
call fcn.10065295
xor ebx, ebx
inc ebx
jmp 0x10066da8
mov ecx, dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x510], eax
test ecx, ecx
je 0x10066808
mov edx, dword [ebp - 0x51c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x508], eax
mov esi, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, esi
or eax, edx
mov dword [ebp - 0x548], esi
je 0x100667f0
movzx eax, dx
test eax, eax
ja 0x1006675d
jb 0x100667a8
cmp esi, ecx
ja 0x1006675d
mov ecx, dword [ebx + 0xc]
shr edx, 0x10
mov ecx, dword [ecx + esi*4]
cmp word [ecx + 4], dx
jne 0x100667c4
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jne 0x100667c4
inc eax
mov dl, al
jmp 0x100667c9
xor eax, eax
xor dl, dl
inc eax
mov esi, dword [ebp - 0x508]
test byte [esi + 6], al
je 0x100667df
test byte [ecx + 6], al
je 0x100667e4
test dl, dl
je 0x1006675d
jmp 0x100667e6
test byte [ecx + 6], al
je 0x100667e6
xor dl, dl
test dl, dl
je 0x100667f0
push esi
call fcn.1006629b
mov eax, dword [ebp - 0x510]
mov ecx, dword [ebx + 0x10]
inc eax
mov dword [ebp - 0x510], eax
cmp eax, ecx
jb 0x10066778
xor esi, esi
test ecx, ecx
je 0x10066827
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
call fcn.10067382
mov ecx, dword [ebx + 0x10]
inc esi
cmp esi, ecx
jb 0x1006680e
mov edi, dword [ebp - 0x534]
and dword [ebp - 0x50c], 0
or edx, 0xffffffff
test ecx, ecx
je 0x10066ab1
mov edi, dword [ebp - 0x50c]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edi*4]
mov dword [ebp - 0x52c], esi
cmp dword [esi], 0x454c4946
jne 0x10066a99
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x10066a99
cmp edi, 0x10
jae 0x10066874
cmp byte [ebx + 0x94], al
je 0x10066a99
xor ecx, ecx
inc ecx
test byte [esi + 6], cl
jne 0x10066889
cmp byte [ebx + 0x95], 0
je 0x10066a99
mov eax, dword [esi + 0x28]
mov dword [esi + 0x10], eax
mov al, byte [esi + 6]
shr al, 1
mov dword [ebp - 0x524], edx
test cl, al
jne 0x100668df
xor edx, edx
cmp dword [esi + 0x34], edx
jbe 0x100668df
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x510], eax
mov ebx, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x538]
cmp dword [eax + 0xc], 0
je 0x100668d9
mov eax, dword [ebp - 0x510]
inc edx
add eax, 8
mov dword [ebp - 0x510], eax
cmp edx, dword [esi + 0x34]
jb 0x100668ae
jmp 0x100668df
mov dword [ebp - 0x524], edx
cmp dword [esi + 0x28], 0
jne 0x1006697c
mov al, cl
cmp edi, 0x10
jae 0x10066921
xor al, al
xor edi, edi
mov byte [ebp - 0x501], al
cmp dword [esi + 0x34], edi
jbe 0x1006691b
push edi
mov ecx, esi
call fcn.10065dc0
or eax, edx
jne 0x10066919
inc edi
cmp edi, dword [esi + 0x34]
jb 0x100668ff
mov al, byte [ebp - 0x501]
jmp 0x1006691b
mov al, 1
mov edi, dword [ebp - 0x50c]
test al, al
je 0x1006697c
lea ecx, [esi + 0x24]
call fcn.100655a9
or ecx, 0xffffffff
mov dword [ebp - 0x510], eax
lea edx, [ebp - 0x30]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, str._NONAME__
mov eax, edx
mov byte [ebp - 0x30], 0x5b
sub ecx, eax
inc edx
mov al, byte [ecx + edx]
mov byte [edx], al
test al, al
jne 0x1006694b
mov ecx, edi
call fcn.10018085
mov ecx, dword [ebp - 0x510]
lea eax, [ebp - 0x30]
push eax
add ecx, 8
call fcn.10019e7e
mov eax, dword [ebp - 0x510]
and dword [eax + 0x10], 0
mov byte [eax + 0x14], 3
xor eax, eax
mov dword [ebp - 0x510], eax
cmp dword [esi + 0x28], eax
jbe 0x10066a96
push eax
mov ecx, esi
call fcn.100659e1
test eax, eax
js 0x100669a1
dec dword [esi + 0x10]
jmp 0x10066a7a
mov cl, byte [esi + 6]
or eax, 0xffffffff
mov edx, dword [ebp - 0x524]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x510]
shr cl, 1
test edx, edx
mov dword [ebp - 0x20], eax
mov eax, edx
push 0xffffffffffffffff
pop edx
cmovs eax, edx
mov dword [ebp - 0x24], edi
and cl, 1
push 0xfffffffffffffffe
pop ecx
cmovne eax, ecx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x1c], eax
jge 0x100669e3
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
sub esp, 0x14
lea esi, [ebp - 0x24]
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1006557e
mov esi, dword [ebp - 0x52c]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x508], edi
cmp dword [esi + 0x34], edi
jbe 0x10066a7a
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x10066a1e
cmp edi, dword [ebp - 0x524]
je 0x10066a6e
cmp dword [ebp - 0x50c], 8
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + edi*8]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ecx*4]
lea ecx, [ecx + 8]
jne 0x10066a44
mov edx, str._Bad
call fcn.10018ee2
test al, al
jne 0x10066a6e
sub esp, 0x14
mov dword [ebp - 0x1c], edi
lea esi, [ebp - 0x24]
mov byte [ebx + 0xbc], 1
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1006557e
mov esi, dword [ebp - 0x52c]
mov edi, dword [ebp - 0x508]
inc edi
mov dword [ebp - 0x508], edi
cmp edi, dword [esi + 0x34]
jb 0x10066a0d
mov eax, dword [ebp - 0x510]
mov edi, dword [ebp - 0x50c]
inc eax
mov dword [ebp - 0x510], eax
cmp eax, dword [esi + 0x28]
jb 0x1006698d
or edx, 0xffffffff
mov ecx, dword [ebx + 0x10]
inc edi
mov dword [ebp - 0x50c], edi
cmp edi, ecx
jb 0x1006683f
mov edi, dword [ebp - 0x534]
cmp ecx, 9
lea ecx, [ebx + 0xc]
jbe 0x10066be2
mov eax, dword [ecx]
xor esi, esi
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x508], edx
cmp dword [edx + 0x34], esi
jbe 0x10066be2
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + esi*8]
mov eax, dword [edx + 0x18]
mov edx, str._SDS
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x52c], ecx
add ecx, 8
call fcn.10018ee2
test al, al
jne 0x10066b07
mov edx, dword [ebp - 0x508]
inc esi
cmp esi, dword [edx + 0x34]
jb 0x10066ad3
jmp 0x10066bdf
and dword [ebp - 0x510], 0
mov ecx, dword [ebp - 0x508]
lea eax, [ebp - 0x510]
push eax
push dword [ebx + 0x3c]
mov byte [ebp - 4], 0x14
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push esi
push dword [ebx + 0x18]
call fcn.10065deb
mov esi, eax
test esi, esi
je 0x10066b52
mov ecx, dword [ebp - 0x510]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x10066b4b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, esi
jmp 0x10066da8
mov esi, dword [ebp - 0x510]
test esi, esi
je 0x10066bcd
mov eax, dword [ebp - 0x52c]
cmp byte [eax + 4], 0
je 0x10066b70
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x10066b75
mov ecx, dword [eax + 0x14]
xor eax, eax
test eax, eax
ja 0x10066bcd
jb 0x10066b83
cmp ecx, 0x20000000
jae 0x10066bcd
lea eax, [ecx + 1]
mov edx, 0x40000
test edx, eax
je 0x10066bcd
sub ecx, edx
mov dword [ebp - 0x508], ecx
push ecx
lea ecx, [ebx + 0x80]
call fcn.1002801f
push dword [ebp - 0x508]
mov edx, dword [ebx + 0x80]
mov ecx, esi
call fcn.100b1680
mov ebx, dword [ebp - 0x538]
test eax, eax
jne 0x10066bcd
mov ecx, ebx
call fcn.1006762e
mov byte [ebp - 4], 0x17
jmp 0x10066bd5
mov byte [ebp - 4], 0x18
test esi, esi
je 0x10066bdb
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
mov esi, dword [ebx + 4]
xor edx, edx
mov byte [ebp - 0x515], 0
mov byte [ebp - 0x501], 0
mov dword [ebp - 0x508], edx
test esi, esi
je 0x10066cb7
xor edi, edi
mov esi, dword [ebx]
mov ecx, dword [ecx]
mov eax, dword [esi + edi]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + edi + 4]
mov dword [ebp - 0x510], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x52c], eax
movzx eax, ax
cmp ecx, 5
jne 0x10066c3b
test eax, eax
jne 0x10066c3b
or eax, 0xffffffff
jmp 0x10066c95
push eax
push ecx
mov ecx, ebx
call fcn.100658c4
test eax, eax
js 0x10066c6e
mov ebx, dword [ebp - 0x51c]
imul ecx, eax, 0x14
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x538]
mov ecx, dword [ecx + esi]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp - 0x52c]
shr edx, 0x10
cmp word [ecx + 4], dx
je 0x10066c8f
mov ecx, dword [ebp - 0x510]
xor eax, eax
inc eax
test byte [ecx + 6], al
je 0x10066c86
mov byte [ebp - 0x515], al
push 0xfffffffffffffffe
jmp 0x10066c8e
mov byte [ebp - 0x501], al
push 0xfffffffffffffffd
pop eax
mov edx, dword [ebp - 0x508]
mov dword [esi + edi + 0xc], eax
lea ecx, [ebx + 0xc]
mov esi, dword [ebx + 4]
inc edx
add edi, 0x14
mov dword [ebp - 0x508], edx
cmp edx, esi
jb 0x10066c05
mov edi, dword [ebp - 0x534]
cmp byte [ebx + 0x94], 0
je 0x10066d06
mov dword [ebx + 0xb0], esi
lea ecx, [ebp - 0x520]
push str._SYSTEM_
inc esi
call fcn.100188dc
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebx + 0x98]
call fcn.100654e3
cmp dword [ebp - 0x520], 0
mov byte [ebp - 4], 1
je 0x10066d06
push dword [ebp - 0x520]
call fcn.100d349e
pop ecx
cmp byte [ebp - 0x515], 0
je 0x10066d55
mov dword [ebx + 0xb4], esi
lea ecx, [ebp - 0x520]
push str._LOST_
inc esi
call fcn.100188dc
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebx + 0x98]
call fcn.100654e3
cmp dword [ebp - 0x520], 0
mov byte [ebp - 4], 1
je 0x10066d55
push dword [ebp - 0x520]
call fcn.100d349e
pop ecx
cmp byte [ebp - 0x501], 0
je 0x10066d9f
push str._UNKNOWN_
lea ecx, [ebp - 0x520]
mov dword [ebx + 0xb8], esi
call fcn.100188dc
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebx + 0x98]
call fcn.100654e3
cmp dword [ebp - 0x520], 0
je 0x10066d9f
push dword [ebp - 0x520]
call fcn.100d349e
pop ecx
xor ebx, ebx
jmp 0x10066da8
xor eax, eax
inc eax
mov ebx, eax
mov byte [ebp - 4], 0x1d
test edi, edi
je 0x10066db6
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
lea ecx, [ebp - 0x498]
call fcn.10065295
mov eax, ebx
call fcn.100d34b8
ret