Function at 0x419540
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x48]
mov dword [ebp - 4], 0
mov edi, dword [esi + 8]
movsx eax, byte [edi]
xor ecx, ecx
lea edx, [eax + eax*2 + 0x44dc72]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dl, byte [edx]
mov byte [esi + 0x48], dl
movsx edx, byte [eax + eax*2 + 0x44dc71]
movsx eax, byte [eax + eax*2 + 0x44dc70]
dec eax
mov dword [ebp + 8], edx
cmp eax, 9
ja case.default.0x41958d
jmp dword [eax*4 + 0x419bdc]
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 case.0x4195ec.20
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0xc], 1
test eax, 0x10000000
jne 0x4195cf
or eax, 0x10000000
test eax, 0x20000000
mov dword [esi + 0x4c], eax
jne case.0x4195ec.19
jmp case.0x4195ec.20
test eax, 0x20000000
je case.0x4195ec.20
mov eax, dword [ebp - 8]
movsx eax, byte [eax]
add eax, 0xffffffed
cmp eax, 0x20
ja case.0x4195ec.20
xor edx, edx
mov dl, byte [eax + 0x419c0c]
jmp dword [edx*4 + 0x419c04]
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 eax, dword [ebp - 0xc]
mov dl, byte [edi + 2]
cmp eax, ecx
mov word [esi + 0x42], dx
je 0x419834
mov eax, dword [edi]
mov dword [ebp + 8], 0x1c
test ah, 1
je 0x41974d
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 [ebx + 0x58]
push edx
push eax
push ecx
call fcn.00419cb0
mov edx, dword [ebp - 8]
mov dword [esi + 0xc], eax
add esp, 0x10
mov cl, byte [edx]
cmp cl, 0xb
je 0x419735
cmp cl, 0xd
je 0x419735
cmp cl, 0xe
je 0x419735
cmp eax, 1
jl 0x419680
cmp eax, 0x7fffffff
jle 0x41974d
test dword [esi + 0x4c], 0x40000000
je 0x419b8f
jmp 0x41974d
mov dword [esi + 0xc], ecx
mov dword [esi + 0x38], ecx
mov word [esi + 0x40], cx
mov word [esi + 0x42], cx
jmp 0x419834
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 0x419834
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 0x419834
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 0x419834
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 0x419834
push 0x50b
push 0x458284
push 2
push 0xc0000008
call fcn.00410a90
add esp, 0x10
jmp 0x419834
test eax, eax
jl 0x419740
cmp eax, 0x7fff
jle 0x41974d
test dword [esi + 0x4c], 0x40000000
je 0x419b8f
mov eax, dword [edi]
test ah, 2
je 0x4197b0
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 0x13]
mov cl, byte [edi + 0x12]
xor edx, edx
push eax
mov dx, word [edi + 0x10]
mov eax, dword [ebx + 0x58]
push ecx
push edx
push eax
call fcn.00419cb0
mov ecx, dword [ebp - 8]
mov dword [esi + 0x38], eax
add esp, 0x10
cmp byte [ecx], 0xa
jne 0x419798
cmp al, 0x80
mov byte [esi + 0x44], al
jl 0x419789
cmp al, 0x7f
jle 0x4197b0
test dword [esi + 0x4c], 0x40000000
je 0x419b8f
jmp 0x4197b0
test eax, eax
jl 0x4197a3
cmp eax, 0x7fff
jle 0x4197b0
test dword [esi + 0x4c], 0x40000000
je 0x419b8f
mov eax, dword [edi]
test ah, 4
je 0x4197f2
xor edx, edx
xor eax, eax
mov dl, byte [edi + 0x17]
mov al, byte [edi + 0x16]
xor ecx, ecx
push edx
mov cx, word [edi + 0x14]
mov edx, dword [ebx + 0x58]
push eax
push ecx
push edx
call fcn.00419cb0
add esp, 0x10
mov word [esi + 0x40], ax
test ax, ax
jl 0x4197e5
cmp ax, 0x7fff
jle 0x4197f2
test dword [esi + 0x4c], 0x40000000
je 0x419b8f
mov eax, dword [edi]
test ah, 8
je 0x419834
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 0x1b]
mov cl, byte [edi + 0x1a]
xor edx, edx
push eax
mov dx, word [edi + 0x18]
mov eax, dword [ebx + 0x58]
push ecx
push edx
push eax
call fcn.00419cb0
add esp, 0x10
mov word [esi + 0x42], ax
test ax, ax
jl 0x419827
cmp ax, 0xff
jle 0x419834
test dword [esi + 0x4c], 0x40000000
je 0x419b8f
mov ecx, dword [ebp - 8]
mov al, byte [ecx]
movsx ecx, al
cmp ecx, 0x33
ja case.0x41984d.0
xor edx, edx
mov dl, byte [ecx + 0x419c78]
jmp dword [edx*4 + 0x419c30]
or dword [esi + 0x4c], 0x200000
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
add ecx, edx
test eax, eax
mov dword [esi + 8], ecx
mov edi, ecx
je 0x419559
jmp 0x419bc3
mov eax, dword [esi + 0x4c]
or eax, 0x200000
mov dword [esi + 0x4c], eax
mov eax, 1
mov word [esi + 0x40], ax
mov dword [ebp - 4], eax
jmp 0x419862
mov ecx, dword [esi + 0x38]
mov eax, ecx
and eax, 0x80000003
jns 0x4198a9
dec eax
or eax, 0xfffffffc
inc eax
je 0x4198b4
mov edx, 4
sub edx, eax
mov eax, edx
add ecx, eax
mov eax, dword [ebp + 8]
add eax, ecx
add edi, 4
mov dword [ebp + 8], eax
mov dword [esi + 0x3c], edi
jmp case.0x41984d.14
mov eax, dword [esi + 0x4c]
mov edx, dword [ebp + 8]
and eax, 0xffdfffff
mov word [esi + 0x46], 0
mov dword [esi + 0x4c], eax
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
mov eax, dword [eax + edx]
and eax, 0xff
cmp byte [eax + eax*2 + 0x44dc72], 2
jne 0x419862
or ecx, 0x80000000
mov dword [esi + 0x4c], ecx
jmp 0x419862
movsx eax, word [esi + 0x46]
mov ecx, dword [esi + 4]
mov byte [esi + 0x45], 0
add eax, ecx
mov dword [ebp + 8], 0
mov dword [esi + 8], eax
jmp case.0x41984d.14
mov dl, byte [esi + 0x45]
sub di, word [esi + 4]
inc dl
mov al, dl
mov byte [esi + 0x45], dl
cmp al, 1
jne 0x419938
mov word [esi + 0x46], di
mov ecx, dword [ebp + 8]
movsx edx, al
add ecx, edi
mov word [esi + edx*2 + 0x26], cx
mov cx, word [esi + 0xc]
movsx eax, byte [esi + 0x45]
mov word [esi + eax*2 + 0x14], cx
jmp 0x419862
mov al, byte [esi + 0x45]
movsx edx, al
lea ecx, [esi + edx*2 + 0x14]
mov dx, word [esi + edx*2 + 0x14]
cmp dx, 1
jne 0x419976
dec al
mov byte [esi + 0x45], al
jmp 0x419862
dec edx
mov dword [ebp + 8], 0
mov word [ecx], dx
xor ecx, ecx
movsx eax, byte [esi + 0x45]
mov cx, word [esi + eax*2 + 0x26]
mov eax, dword [esi + 4]
add ecx, eax
mov dword [esi + 8], ecx
jmp 0x419862
mov edx, dword [esi + 0x4c]
and edx, 0xfffffffd
or edx, 1
mov dword [esi + 0x4c], edx
jmp 0x419862
mov eax, dword [esi + 0x4c]
and al, 0xfe
or al, 2
mov dword [esi + 0x4c], eax
jmp 0x419862
mov ecx, dword [esi + 0x4c]
and ecx, 0xffffffe7
or ecx, 4
mov dword [esi + 0x4c], ecx
jmp 0x419862
mov edx, dword [esi + 0x4c]
and edx, 0xffffffeb
or edx, 8
mov dword [esi + 0x4c], edx
jmp 0x419862
mov eax, dword [esi + 0x4c]
and al, 0xf3
or al, 0x10
mov dword [esi + 0x4c], eax
jmp 0x419862
mov al, byte [esi + 0x38]
cmp al, 0x80
mov byte [esi + 0x44], al
jl case.0x41984d.0
cmp al, 0x7f
jg case.0x41984d.0
jmp 0x419862
cmp al, 0xb
jne 0x419a0e
mov edi, dword [esi + 0xc]
jmp 0x419a11
mov edi, dword [esi + 0x38]
mov eax, dword [ebx + 0x11c]
test ah, 2
jne 0x419a7e
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
add ecx, edi
cmp ecx, edx
jb 0x419a76
mov eax, dword [ebx + 0xb8]
test eax, eax
jl 0x419a76
mov al, byte [ebx + 0x113]
cmp al, 2
je 0x419a40
cmp al, 0x26
jne 0x419a76
cmp byte [ebx + 0x10c], 1
jne 0x419a4d
cmp ecx, edx
je 0x419a76
mov eax, dword [esi + 0x38]
cmp eax, 0x200
jg 0x419a5c
mov eax, 0x200
push eax
push ebx
call fcn.0040f610
add esp, 8
test eax, eax
jne 0x419b9b
add dword [ebx + 0x2c], edi
jmp 0x419862
mov dword [ebx + 0x2c], ecx
jmp 0x419862
mov eax, dword [ebx + 0xc0]
test eax, eax
jne 0x419a92
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x34]
add eax, edi
jmp 0x419ac9
add eax, edi
mov dword [ebx + 0xc0], eax
jmp 0x419862
mov edx, dword [esi + 0x38]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x11c]
test ch, 2
lea eax, [edx + eax - 1]
jne 0x419abc
mov dword [ebx + 0x2c], eax
jmp 0x419862
mov ecx, dword [ebx + 0xc0]
test ecx, ecx
mov ecx, dword [ebx + 0x34]
jne 0x419ae5
cmp eax, ecx
ja 0x419ad5
mov dword [ebx + 0x2c], eax
jmp 0x419862
sub eax, ecx
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0xc0], eax
jmp 0x419862
cmp eax, ecx
jbe 0x419af6
sub eax, ecx
mov dword [ebx + 0xc0], eax
jmp 0x419862
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0xc0], 0
jmp 0x419862
mov eax, dword [ebx + 0x11c]
test ah, 2
jne 0x419b33
mov ecx, dword [esi + 0x38]
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x38]
sub edi, ecx
mov ecx, edi
mov dword [ebx + 0x2c], edi
cmp ecx, eax
jae 0x419862
mov dword [ebx + 0x2c], eax
jmp 0x419862
mov eax, dword [ebx + 0xc0]
mov edx, dword [esi + 0x38]
test eax, eax
jne 0x419b5d
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x38]
sub edi, edx
mov ecx, edi
mov dword [ebx + 0x2c], edi
cmp ecx, eax
jae 0x419862
mov dword [ebx + 0x2c], eax
jmp 0x419862
sub eax, edx
test eax, eax
jle 0x419b6e
mov dword [ebx + 0xc0], eax
jmp 0x419862
mov ecx, dword [ebx + 0x34]
add eax, ecx
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
mov dword [ebx + 0x2c], eax
jae 0x419b80
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0xc0], 0
jmp 0x419862
pop edi
pop esi
mov eax, 0xc0000044
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0xc0000042
push 0xc0000042
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc000003e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
test eax, eax
jne case.0x4195ec.19
and dword [esi + 0x4c], 0xdfffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret