Function at 0x4315a0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], 0
mov esi, dword [ebp + 0x44]
mov edi, dword [esi + 8]
movsx eax, byte [edi]
xor ecx, ecx
xor edx, edx
lea ebx, [eax + eax*2]
mov dword [esp + 0x14], edx
mov al, byte [ebx + 0x472622]
mov byte [esi + 0x48], al
movsx eax, byte [ebx + 0x472621]
mov dword [esp + 0x1c], eax
movsx eax, byte [ebx + 0x472620]
dec eax
cmp eax, 9
ja case.default.0x4315ec
jmp dword [eax*4 + 0x431c38]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x38], ecx
mov word [esi + 0x40], cx
mov word [esi + 0x42], cx
mov eax, dword [edi]
test ah, 0xf
je 0x431611
mov edx, 1
mov dword [esp + 0x14], edx
cmp edx, 1
jne case.0x431653.21
mov eax, dword [esi + 0x4c]
test eax, 0x10000000
jne 0x431635
or eax, 0x10000000
test eax, 0x20000000
mov dword [esi + 0x4c], eax
jne case.0x431653.19
jmp case.0x431653.21
test eax, 0x20000000
je case.0x431653.21
movsx eax, byte [ebx + 0x472622]
add eax, 0xffffffed
cmp eax, 0x20
ja case.0x431653.21
xor edx, edx
mov dl, byte [eax + 0x431c6c]
jmp dword [edx*4 + 0x431c60]
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 8]
xor eax, eax
mov dword [esi + 0x38], edx
mov al, byte [edi + 3]
xor edx, edx
mov word [esi + 0x40], ax
mov dl, byte [edi + 2]
mov word [esi + 0x42], dx
jmp 0x431711
mov dword [esi + 0xc], ecx
mov dword [esi + 0x38], ecx
mov word [esi + 0x40], cx
mov word [esi + 0x42], cx
jmp 0x431711
xor eax, eax
mov ax, word [edi + 2]
mov dword [esi + 0x38], ecx
mov dword [esi + 0xc], eax
mov word [esi + 0x40], cx
mov word [esi + 0x42], cx
jmp 0x431711
xor edx, edx
mov dx, word [edi + 2]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x38], edx
mov word [esi + 0x40], cx
mov word [esi + 0x42], cx
jmp 0x431711
xor eax, eax
xor edx, edx
mov al, byte [edi + 1]
mov dword [esi + 0xc], eax
mov dx, word [edi + 2]
mov dword [esi + 0x38], edx
mov word [esi + 0x40], cx
mov word [esi + 0x42], cx
jmp 0x431711
xor eax, eax
xor edx, edx
mov al, byte [edi + 1]
mov dword [esi + 0xc], eax
mov dl, byte [edi + 2]
mov dword [esi + 0x38], edx
movzx ax, byte [edi + 3]
mov word [esi + 0x40], ax
mov word [esi + 0x42], cx
jmp 0x431711
push 0x4f1
push 0x491de0
push 2
push 0xc0000008
call fcn.0042ea90
add esp, 0x10
xor ecx, ecx
cmp dword [esp + 0x14], ecx
je 0x43187d
mov eax, dword [edi]
mov dword [esp + 0x1c], 0x1c
test ah, 1
je 0x431794
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 0xf]
mov dl, byte [edi + 0xe]
xor eax, eax
push ecx
mov ax, word [edi + 0xc]
mov ecx, dword [ebp + 0x54]
push edx
push eax
push ecx
call fcn.00431d40
mov dword [esi + 0xc], eax
mov cl, byte [ebx + 0x472622]
add esp, 0x10
cmp cl, 0xb
je 0x43177c
cmp cl, 0xd
je 0x43177c
cmp cl, 0xe
je 0x43177c
cmp eax, 1
jl 0x43176d
cmp eax, 0x7fff
jle 0x431794
test dword [esi + 0x4c], 0x40000000
je 0x4318c5
jmp 0x431794
test eax, eax
jl 0x431787
cmp eax, 0x7fff
jle 0x431794
test dword [esi + 0x4c], 0x40000000
je 0x4318c5
mov eax, dword [edi]
test ah, 2
je 0x4317fd
xor edx, edx
xor eax, eax
mov dl, byte [edi + 0x13]
mov al, byte [edi + 0x12]
xor ecx, ecx
push edx
mov cx, word [edi + 0x10]
mov edx, dword [ebp + 0x54]
push eax
push ecx
push edx
call fcn.00431d40
mov dword [esi + 0x38], eax
mov cl, byte [ebx + 0x472622]
add esp, 0x10
cmp cl, 0xa
jne 0x4317e5
mov al, byte [esi + 0x38]
cmp al, 0x80
mov byte [esi + 0x44], al
jl 0x4317d6
cmp al, 0x7f
jle 0x4317fd
test dword [esi + 0x4c], 0x40000000
je 0x4318c5
jmp 0x4317fd
test eax, eax
jl 0x4317f0
cmp eax, 0x7fff
jle 0x4317fd
test dword [esi + 0x4c], 0x40000000
je 0x4318c5
mov eax, dword [edi]
test ah, 4
je 0x43183f
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 0x17]
mov cl, byte [edi + 0x16]
xor edx, edx
push eax
mov dx, word [edi + 0x14]
mov eax, dword [ebp + 0x54]
push ecx
push edx
push eax
call fcn.00431d40
add esp, 0x10
mov word [esi + 0x40], ax
test ax, ax
jl 0x431832
cmp ax, 0x7fff
jle 0x43183f
test dword [esi + 0x4c], 0x40000000
je 0x4318c5
mov eax, dword [edi]
test ah, 8
je 0x43187d
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 0x1b]
mov dl, byte [edi + 0x1a]
xor eax, eax
push ecx
mov ax, word [edi + 0x18]
mov ecx, dword [ebp + 0x54]
push edx
push eax
push ecx
call fcn.00431d40
add esp, 0x10
mov word [esi + 0x42], ax
test ax, ax
jl 0x431874
cmp ax, 0xff
jle 0x43187d
test dword [esi + 0x4c], 0x40000000
je 0x4318c5
mov bl, byte [ebx + 0x472622]
movsx eax, bl
cmp eax, 0x33
ja case.0x431893.0
xor edx, edx
mov dl, byte [eax + 0x431d04]
jmp dword [edx*4 + 0x431c90]
or dword [esi + 0x4c], 0x200000
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
add ecx, edx
test eax, eax
mov dword [esi + 8], ecx
mov edi, ecx
je 0x4315b9
jmp 0x4318fc
mov eax, 0xc0000044
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
push 0xc0000042
push 0xc0000042
push 1
call fcn.0042eac0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, 0xc000003e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
test eax, eax
jne case.0x431653.19
and dword [esi + 0x4c], 0xdfffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x4c]
or eax, 0x200000
mov dword [esi + 0x4c], eax
mov eax, 1
mov word [esi + 0x40], ax
mov dword [esp + 0x10], eax
jmp 0x4318a9
mov ecx, dword [esi + 0x38]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 3
xor eax, edx
sub eax, edx
je 0x43194e
mov edx, 4
sub edx, eax
mov eax, edx
add eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
add edi, 4
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x3c], edi
jmp case.0x431893.15
mov ebx, dword [esi + 0x4c]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
and ebx, 0xffdfffff
mov dword [esi + 0x4c], ebx
mov word [esi + 0x46], 0
mov dword [esi + 4], edi
mov eax, dword [edx + eax]
and eax, 0xff
mov ecx, ebx
cmp byte [eax + eax*2 + 0x472622], 2
jne 0x4318a9
or ecx, 0x80000000
mov dword [esi + 0x4c], ecx
jmp 0x4318a9
movsx eax, word [esi + 0x46]
mov ecx, dword [esi + 4]
mov byte [esi + 0x45], 0
add ecx, eax
mov dword [esp + 0x1c], 0
mov dword [esi + 8], ecx
jmp case.0x431893.15
mov dl, byte [esi + 0x45]
sub di, word [esi + 4]
inc dl
mov al, dl
mov byte [esi + 0x45], dl
cmp al, 1
jne 0x4319da
mov word [esi + 0x46], di
mov edx, dword [esp + 0x1c]
movsx eax, al
add edi, edx
mov word [esi + eax*2 + 0x26], di
mov dx, word [esi + 0xc]
movsx ecx, byte [esi + 0x45]
mov word [esi + ecx*2 + 0x14], dx
jmp 0x4318a9
mov al, byte [esi + 0x45]
movsx ecx, al
mov dx, word [esi + ecx*2 + 0x14]
lea ecx, [esi + ecx*2 + 0x14]
cmp dx, 1
jne 0x431a19
dec al
mov byte [esi + 0x45], al
jmp 0x4318a9
dec edx
xor eax, eax
mov word [ecx], dx
mov ecx, dword [esi + 4]
movsx edx, byte [esi + 0x45]
mov dword [esp + 0x1c], 0
mov ax, word [esi + edx*2 + 0x26]
add eax, ecx
mov dword [esi + 8], eax
jmp 0x4318a9
mov eax, dword [esi + 0x4c]
and al, 0xfd
or al, 1
mov dword [esi + 0x4c], eax
jmp 0x4318a9
mov ecx, dword [esi + 0x4c]
and ecx, 0xfffffffe
or ecx, 2
mov dword [esi + 0x4c], ecx
jmp 0x4318a9
mov edx, dword [esi + 0x4c]
and edx, 0xffffffe7
or edx, 4
mov dword [esi + 0x4c], edx
jmp 0x4318a9
mov eax, dword [esi + 0x4c]
and al, 0xeb
or al, 8
mov dword [esi + 0x4c], eax
jmp 0x4318a9
mov ecx, dword [esi + 0x4c]
and ecx, 0xfffffff3
or ecx, 0x10
mov dword [esi + 0x4c], ecx
jmp 0x4318a9
mov al, byte [esi + 0x38]
cmp al, 0x80
mov byte [esi + 0x44], al
jl case.0x431893.0
cmp al, 0x7f
jg case.0x431893.0
jmp 0x4318a9
cmp bl, 0xb
jne 0x431ab3
mov edi, dword [esi + 0xc]
jmp 0x431ab6
mov edi, dword [esi + 0x38]
mov eax, dword [ebp + 0x11c]
test ah, 2
jne 0x431b24
mov edx, dword [ebp + 0x2c]
lea ecx, [edi + edx]
mov edx, dword [ebp + 0x30]
cmp ecx, edx
jb 0x431b1c
mov eax, dword [ebp + 0xb4]
test eax, eax
jl 0x431b1c
mov al, byte [ebp + 0x113]
cmp al, 2
je 0x431ae6
cmp al, 0x26
jne 0x431b1c
cmp byte [ebp + 0x10c], 1
jne 0x431af3
cmp ecx, edx
je 0x431b1c
mov eax, dword [esi + 0x38]
cmp eax, 0x200
jg 0x431b02
mov eax, 0x200
push eax
push ebp
call fcn.00432220
add esp, 8
test eax, eax
jne 0x4318d2
add dword [ebp + 0x2c], edi
jmp 0x4318a9
mov dword [ebp + 0x2c], ecx
jmp 0x4318a9
mov eax, dword [ebp + 0xbc]
test eax, eax
jne 0x431b3a
mov ebx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x30]
add edi, ebx
mov eax, edi
jmp 0x431b71
add edi, eax
mov dword [ebp + 0xbc], edi
jmp 0x4318a9
mov eax, dword [ebp + 0x34]
mov ecx, dword [esi + 0x38]
lea eax, [eax + ecx - 1]
mov ecx, dword [ebp + 0x11c]
test ch, 2
jne 0x431b64
mov dword [ebp + 0x2c], eax
jmp 0x4318a9
mov ecx, dword [ebp + 0xbc]
test ecx, ecx
mov ecx, dword [ebp + 0x30]
jne 0x431b8d
cmp eax, ecx
ja 0x431b7d
mov dword [ebp + 0x2c], eax
jmp 0x4318a9
sub eax, ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0xbc], eax
jmp 0x4318a9
cmp eax, ecx
jbe 0x431b9e
sub eax, ecx
mov dword [ebp + 0xbc], eax
jmp 0x4318a9
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0xbc], 0
jmp 0x4318a9
mov eax, dword [ebp + 0x11c]
test ah, 2
jne 0x431bdb
mov edx, dword [esi + 0x38]
mov edi, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x34]
sub edi, edx
mov ecx, edi
mov dword [ebp + 0x2c], edi
cmp ecx, eax
jae 0x4318a9
mov dword [ebp + 0x2c], eax
jmp 0x4318a9
mov eax, dword [ebp + 0xbc]
test eax, eax
jne 0x431c05
mov eax, dword [esi + 0x38]
mov edi, dword [ebp + 0x2c]
sub edi, eax
mov eax, dword [ebp + 0x34]
mov ecx, edi
mov dword [ebp + 0x2c], edi
cmp ecx, eax
jae 0x4318a9
mov dword [ebp + 0x2c], eax
jmp 0x4318a9
sub eax, dword [esi + 0x38]
test eax, eax
jle 0x431c17
mov dword [ebp + 0xbc], eax
jmp 0x4318a9
mov ecx, dword [ebp + 0x30]
add eax, ecx
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
mov dword [ebp + 0x2c], eax
jae 0x431c29
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0xbc], 0
jmp 0x4318a9